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))
398
398
#define rint(A) floor((A)+(((A) < 0)? -0.5 : 0.5))