Use more gcc attributes

git-svn-id: svn://svn.cc65.org/cc65/trunk@289 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
cuz
2000-08-19 18:16:54 +00:00
parent 58e6c61a68
commit 66b40d1a84
6 changed files with 26 additions and 12 deletions

View File

@@ -38,13 +38,17 @@
#include "attrib.h"
/*****************************************************************************/
/* Code */
/*****************************************************************************/
unsigned BitFind (unsigned long Val);
unsigned BitFind (unsigned long Val) attribute ((const));
/* Find the first bit that is set in Val. Val must *not* be zero */
void BitSet (void* Data, unsigned Bit);
@@ -53,10 +57,10 @@ void BitSet (void* Data, unsigned Bit);
void BitReset (void* Data, unsigned Bit);
/* Reset a bit in a char array */
int BitIsSet (void* Data, unsigned Bit);
int BitIsSet (void* Data, unsigned Bit) attribute ((const));
/* Check if a bit is set in a char array */
int BitIsReset (void* Data, unsigned Bit);
int BitIsReset (void* Data, unsigned Bit) attribute ((const));
/* Check if a bit is reset in a char array */
void BitMerge (void* Target, const void* Source, unsigned Size);