~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to include/my_bitmap.h

  • Committer: Brian Aker
  • Date: 2008-07-07 14:25:25 UTC
  • mto: (77.1.25 codestyle)
  • mto: This revision was merged to the branch mainline in revision 82.
  • Revision ID: brian@tangent.org-20080707142525-xzy2nl3ie2ebwfln
LL() cleanup

Show diffs side-by-side

added added

removed removed

Lines of Context:
168
168
*/
169
169
 
170
170
#define bit_is_set(I,B)   (sizeof(I) * CHAR_BIT > (B) ?                 \
171
 
                           (((I) & (ULL(1) << (B))) == 0 ? 0 : 1) : -1)
 
171
                           (((I) & (1ULL << (B))) == 0 ? 0 : 1) : -1)
172
172
#define bit_do_set(I,B)   (sizeof(I) * CHAR_BIT > (B) ?         \
173
 
                           ((I) |= (ULL(1) << (B)), 1) : -1)
 
173
                           ((I) |= (1ULL << (B)), 1) : -1)
174
174
#define bit_do_clear(I,B) (sizeof(I) * CHAR_BIT > (B) ?         \
175
 
                           ((I) &= ~(ULL(1) << (B)), 0) : -1)
 
175
                           ((I) &= ~(1ULL << (B)), 0) : -1)
176
176
 
177
177
#ifdef  __cplusplus
178
178
}