Defines | |
#define | __BEGIN_DECLS |
#define | __END_DECLS |
#define | INTMAX_MAX INT32_MAX |
#define | UINTMAX_MAX UINT32_MAX |
#define | UINTMAX_C(v) UINT32_C(v) |
#define | INTMAX_C(v) INT32_C(v) |
#define | PRINTF_LEAST32_MODIFIER PRINTF_INT32_MODIFIER |
#define | PRINTF_LEAST16_MODIFIER PRINTF_INT16_MODIFIER |
#define | UINT_LEAST8_MAX UINT8_MAX |
#define | INT_LEAST8_MAX INT8_MAX |
#define | UINT_LEAST16_MAX UINT16_MAX |
#define | INT_LEAST16_MAX INT16_MAX |
#define | UINT_LEAST32_MAX UINT32_MAX |
#define | INT_LEAST32_MAX INT32_MAX |
#define | INT_LEAST8_MIN INT8_MIN |
#define | INT_LEAST16_MIN INT16_MIN |
#define | INT_LEAST32_MIN INT32_MIN |
#define | UINT_FAST8_MAX UINT_LEAST8_MAX |
#define | INT_FAST8_MAX INT_LEAST8_MAX |
#define | UINT_FAST16_MAX UINT_LEAST16_MAX |
#define | INT_FAST16_MAX INT_LEAST16_MAX |
#define | UINT_FAST32_MAX UINT_LEAST32_MAX |
#define | INT_FAST32_MAX INT_LEAST32_MAX |
#define | INT_FAST8_MIN INT_LEAST8_MIN |
#define | INT_FAST16_MIN INT_LEAST16_MIN |
#define | INT_FAST32_MIN INT_LEAST32_MIN |
#define | STDINT_H_UINTPTR_T_DEFINED |
#define | always_inline noinline |
#define | UNUSED(parameter) (parameter) |
#define | IGNORE(parameter) (void)(parameter) |
#define | LIKELY(expression) (expression) |
#define | UNLIKELY(expression) (expression) |
#define | DEPRECATED |
Typedefs | |
typedef uint32_t | uintmax_t |
typedef int8_t | int_least8_t |
typedef uint8_t | uint_least8_t |
typedef int16_t | int_least16_t |
typedef uint16_t | uint_least16_t |
typedef int32_t | int_least32_t |
typedef uint32_t | uint_least32_t |
typedef int_least8_t | int_fast8_t |
typedef uint_least8_t | uint_fast8_t |
typedef int_least16_t | int_fast16_t |
typedef uint_least16_t | uint_fast16_t |
typedef int_least32_t | int_fast32_t |
typedef uint_least32_t | uint_fast32_t |
Variables | |
size_t typedef int32_t | intmax_t |
#define UNUSED | ( | parameter | ) | (parameter) |
#define IGNORE | ( | parameter | ) | (void)(parameter) |
IGNORE provides a common mechanism for innocuously ignoring a parameter that is sometimes used and sometimes not. It should "practically" result in nothing of concern happening. It's commonly used by macros that disable functionality based on compilation settings (e.g., BU_ASSERT()) and shouldn't normally need to be used directly by code.
We can't use (void)(sizeof((parameter)) because MSVC2010 will reportedly report a warning about the value being unused. (Consequently calls into question (void)(parameter) but untested.)
Possible alternative: ((void)(1 ? 0 : sizeof((parameter)) - sizeof((parameter))))
#define LIKELY | ( | expression | ) | (expression) |
LIKELY provides a common mechanism for providing branch prediction hints to the compiler so that it can better optimize. It should be used when it's exceptionally likely that an expected code path will almost always be executed. Use it like this:
if (LIKELY(x == 1)) { ... expected code path ... }
#define UNLIKELY | ( | expression | ) | (expression) |
UNLIKELY provides a common mechanism for providing branch prediction hints to the compiler so that it can better optimize. It should be used when it's exceptionaly unlikely that a given code path will ever be executed. Use it like this:
if (UNLIKELY(x == 0)) { ... unexpected code path ... }
Definition at line 302 of file dvec.h.
Referenced by bn_angle_measure(), bn_dist_pt3_line3(), bn_dist_pt3_lseg3(), bn_distsq_line3_pt3(), bn_isect_line3_line3(), bn_isect_line_lseg(), bn_isect_lseg3_lseg3(), bn_mat_fromto(), and bn_vec_ortho().
#define DEPRECATED |
typedef int8_t int_least8_t |
typedef uint8_t uint_least8_t |
typedef int16_t int_least16_t |
typedef uint16_t uint_least16_t |
typedef int32_t int_least32_t |
typedef uint32_t uint_least32_t |
typedef int_least8_t int_fast8_t |
typedef uint_least8_t uint_fast8_t |
typedef int_least16_t int_fast16_t |
typedef uint_least16_t uint_fast16_t |
typedef int_least32_t int_fast32_t |
typedef uint_least32_t uint_fast32_t |