~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to include/my_global.h

  • Committer: Monty Taylor
  • Date: 2008-07-05 23:05:08 UTC
  • mto: This revision was merged to the branch mainline in revision 77.
  • Revision ID: monty@inaugust.com-20080705230508-9txkg702oln6hxjl
First large swath at getting handler stuff clean.

Show diffs side-by-side

added added

removed removed

Lines of Context:
393
393
#define set_if_smaller(a,b) do { if ((a) > (b)) (a)=(b); } while(0)
394
394
#define test_all_bits(a,b) (((a) & (b)) == (b))
395
395
#define set_bits(type, bit_count) (sizeof(type)*8 <= (bit_count) ? ~(type) 0 : ((((type) 1) << (bit_count)) - (type) 1))
396
 
#define array_elements(A) ((uint) (sizeof(A)/sizeof(A[0])))
 
396
#define array_elements(A) ((uint32_t) (sizeof(A)/sizeof(A[0])))
397
397
#ifndef HAVE_RINT
398
398
#define rint(A) floor((A)+(((A) < 0)? -0.5 : 0.5))
399
399
#endif