9#define INT24_MAX 0x7FFFFF
30 memcpy(value, ptr, 3);
34 value[2] = in >= 0 ? 0 : 0xFF;
35 value[1] = (in >> 8) & 0xFF;
51#if defined(USE_INT24_FROM_INT)
60 value[2] = (in >> 16) & 0xFF;
61 value[1] = (in >> 8) & 0xFF;
75 operator int()
const {
95 int newInt = ((((
int32_t)0xFF & value[2]) << 16) | (((
int32_t)0xFF & value[1]) << 8) | ((
int32_t)0xFF & value[0]));
96 if ((newInt & 0x00800000) > 0) {
142 template<>
class numeric_limits<
audio_tools::int24_3bytes_t> {
#define INT24_MAX
Definition int24_3bytes_t.h:9
Definition InitializerList.h:7