Use more gcc attributes
git-svn-id: svn://svn.cc65.org/cc65/trunk@289 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user