Add a couple more cast macros

This commit is contained in:
RichardG867
2025-09-20 11:20:33 -03:00
parent 7c25ca22e3
commit cfa00e9e55

View File

@@ -87,6 +87,8 @@
#define AS_I16(x) (*((int16_t *) &(x)))
#define AS_I32(x) (*((int32_t *) &(x)))
#define AS_I64(x) (*((int64_t *) &(x)))
#define AS_FLOAT(x) (*((float *) &(x)))
#define AS_DOUBLE(x) (*((double *) &(x)))
#if defined(__GNUC__) || defined(__clang__)
# define UNLIKELY(x) __builtin_expect((x), 0)