qbdefs.h File Reference

This graph shows which files directly or indirectly include this file:

Defines

#define QB_ROUNDUP(x, y)   ((((x) + ((y) - 1)) / (y)) * (y))
#define QB_ABS(i)   (((i) < 0) ? -(i) : (i))
#define QB_MAX(a, b)   (((a) > (b)) ? (a) : (b))
#define QB_MIN(a, b)   (((a) < (b)) ? (a) : (b))
#define QB_FALSE   0
#define QB_TRUE   (!QB_FALSE)
#define qb_bit_value(bit)   (1 << (bit))
#define qb_bit_set(barray, bit)   (barray |= qb_bit_value(bit))
#define qb_bit_clear(barray, bit)   (barray &= ~(qb_bit_value(bit)))
#define qb_bit_is_set(barray, bit)   (barray & qb_bit_value(bit))
#define qb_bit_is_clear(barray, bit)   (!(barray & qb_bit_value(bit)))
#define HZ   100
#define QB_TIME_MS_IN_SEC   1000ULL
#define QB_TIME_US_IN_SEC   1000000ULL
#define QB_TIME_NS_IN_SEC   1000000000ULL
#define QB_TIME_US_IN_MSEC   1000ULL
#define QB_TIME_NS_IN_MSEC   1000000ULL
#define QB_TIME_NS_IN_USEC   1000ULL
#define QB_GNUC_DEPRECATED
#define QB_GNUC_DEPRECATED_FOR(f)   QB_GNUC_DEPRECATED
#define QB_GNUC_MAY_ALIAS

Detailed Description

Author:
Angus Salkeld <asalkeld@redhat.com>

These are some convience macros and defines.


Define Documentation

#define HZ   100
#define QB_ABS (  )     (((i) < 0) ? -(i) : (i))
#define qb_bit_clear ( barray,
bit   )     (barray &= ~(qb_bit_value(bit)))
Examples:
simplelog.c.
#define qb_bit_is_clear ( barray,
bit   )     (!(barray & qb_bit_value(bit)))
#define qb_bit_is_set ( barray,
bit   )     (barray & qb_bit_value(bit))
Examples:
simplelog.c.
#define qb_bit_set ( barray,
bit   )     (barray |= qb_bit_value(bit))
Examples:
simplelog.c.
#define qb_bit_value ( bit   )     (1 << (bit))
#define QB_FALSE   0
#define QB_GNUC_DEPRECATED
#define QB_GNUC_DEPRECATED_FOR (  )     QB_GNUC_DEPRECATED
#define QB_GNUC_MAY_ALIAS
#define QB_MAX ( a,
 )     (((a) > (b)) ? (a) : (b))
#define QB_MIN ( a,
 )     (((a) < (b)) ? (a) : (b))
Examples:
simplelog.c.
#define QB_ROUNDUP ( x,
 )     ((((x) + ((y) - 1)) / (y)) * (y))
#define QB_TIME_MS_IN_SEC   1000ULL
#define QB_TIME_NS_IN_MSEC   1000000ULL
#define QB_TIME_NS_IN_SEC   1000000000ULL
#define QB_TIME_NS_IN_USEC   1000ULL
#define QB_TIME_US_IN_MSEC   1000ULL
#define QB_TIME_US_IN_SEC   1000000ULL
#define QB_TRUE   (!QB_FALSE)
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines

Generated on 18 Mar 2016 for libqb by  doxygen 1.6.1