mirror of
https://github.com/MariaDB/server.git
synced 2025-01-22 23:04:20 +01:00
e215a35f09
Ouputs without transactions, does not dump a header. git-svn-id: file:///svn/tokudb@441 c7de825b-a66e-492c-adef-691d508d4ae1
21 lines
592 B
C
Executable file
21 lines
592 B
C
Executable file
#if !defined(TOKUDB_COMMON_H)
|
|
|
|
#define TOKUDB_COMMON_H
|
|
#include <stdlib.h>
|
|
#include <stdint.h>
|
|
#include <limits.h>
|
|
#include <db.h>
|
|
|
|
typedef uint8_t bool;
|
|
|
|
#define true ((bool)1)
|
|
#define false ((bool)0)
|
|
|
|
#define SET_BITS(bitvector, bits) ((bitvector) |= (bits))
|
|
#define REMOVE_BITS(bitvector, bits) ((bitvector) &= ~(bits))
|
|
#define IS_SET_ANY(bitvector, bits) ((bitvector) & (bits))
|
|
#define IS_SET_ALL(bitvector, bits) (((bitvector) & (bits)) == (bits))
|
|
|
|
#define IS_POWER_OF_2(num) ((num) > 0 && ((num) & ((num) - 1)) == 0)
|
|
|
|
#endif /* #if !defined(TOKUDB_COMMON_H) */
|