Changeset View
Changeset View
Standalone View
Standalone View
sys/cddl/boot/zfs/zfsimpl.h
Show First 20 Lines • Show All 70 Lines • ▼ Show 20 Lines | |||||
/* | /* | ||||
* AVL comparator helpers | * AVL comparator helpers | ||||
*/ | */ | ||||
#define AVL_ISIGN(a) (((a) > 0) - ((a) < 0)) | #define AVL_ISIGN(a) (((a) > 0) - ((a) < 0)) | ||||
#define AVL_CMP(a, b) (((a) > (b)) - ((a) < (b))) | #define AVL_CMP(a, b) (((a) > (b)) - ((a) < (b))) | ||||
#define AVL_PCMP(a, b) \ | #define AVL_PCMP(a, b) \ | ||||
(((uintptr_t)(a) > (uintptr_t)(b)) - ((uintptr_t)(a) < (uintptr_t)(b))) | (((uintptr_t)(a) > (uintptr_t)(b)) - ((uintptr_t)(a) < (uintptr_t)(b))) | ||||
#ifndef NEED_SOLARIS_BOOLEAN /* Only defined when we'll define this elsewhere */ | |||||
typedef enum { B_FALSE, B_TRUE } boolean_t; | typedef enum { B_FALSE, B_TRUE } boolean_t; | ||||
#endif | |||||
/* CRC64 table */ | /* CRC64 table */ | ||||
#define ZFS_CRC64_POLY 0xC96C5795D7870F42ULL /* ECMA-182, reflected form */ | #define ZFS_CRC64_POLY 0xC96C5795D7870F42ULL /* ECMA-182, reflected form */ | ||||
/* | /* | ||||
* Macros for various sorts of alignment and rounding when the alignment | * Macros for various sorts of alignment and rounding when the alignment | ||||
* is known to be a power of 2. | * is known to be a power of 2. | ||||
*/ | */ | ||||
▲ Show 20 Lines • Show All 1,978 Lines • Show Last 20 Lines |