69#if defined(HAVE__BUILTIN_OP_OVERFLOW)
79 *result = (
int16) res;
87#if defined(HAVE__BUILTIN_OP_OVERFLOW)
97 *result = (
int16) res;
105#if defined(HAVE__BUILTIN_OP_OVERFLOW)
115 *result = (
int16) res;
123#if defined(HAVE__BUILTIN_OP_OVERFLOW)
153#if defined(HAVE__BUILTIN_OP_OVERFLOW)
163 *result = (
int32) res;
171#if defined(HAVE__BUILTIN_OP_OVERFLOW)
181 *result = (
int32) res;
189#if defined(HAVE__BUILTIN_OP_OVERFLOW)
199 *result = (
int32) res;
207#if defined(HAVE__BUILTIN_OP_OVERFLOW)
237#if defined(HAVE__BUILTIN_OP_OVERFLOW)
239#elif defined(HAVE_INT128)
247 *result = (
int64) res;
264#if defined(HAVE__BUILTIN_OP_OVERFLOW)
266#elif defined(HAVE_INT128)
274 *result = (
int64) res;
295#if defined(HAVE__BUILTIN_OP_OVERFLOW)
297#elif defined(HAVE_INT128)
305 *result = (
int64) res;
321 a != 0 &&
a != 1 &&
b != 0 &&
b != 1 &&
338#if defined(HAVE__BUILTIN_OP_OVERFLOW)
370#if defined(HAVE__BUILTIN_OP_OVERFLOW)
388#if defined(HAVE__BUILTIN_OP_OVERFLOW)
404#if defined(HAVE__BUILTIN_OP_OVERFLOW)
422#if defined(HAVE__BUILTIN_OP_OVERFLOW)
443#if defined(HAVE__BUILTIN_OP_OVERFLOW)
461#if defined(HAVE__BUILTIN_OP_OVERFLOW)
477#if defined(HAVE__BUILTIN_OP_OVERFLOW)
495#if defined(HAVE__BUILTIN_OP_OVERFLOW)
516#if defined(HAVE__BUILTIN_OP_OVERFLOW)
534#if defined(HAVE__BUILTIN_OP_OVERFLOW)
550#if defined(HAVE__BUILTIN_OP_OVERFLOW)
552#elif defined(HAVE_INT128)
565 if (
a != 0 &&
b != res /
a)
578#if defined(HAVE__BUILTIN_OP_OVERFLOW)
580#elif defined(HAVE_INT128)
610#if defined(HAVE__BUILTIN_OP_OVERFLOW)
628#if defined(HAVE__BUILTIN_OP_OVERFLOW)
644#if defined(HAVE__BUILTIN_OP_OVERFLOW)
649 if (
a != 0 &&
b != res /
a)
715 return (
a >
b) - (
a <
b);
721 return (
a >
b) - (
a <
b);
727 return (
a >
b) - (
a <
b);
733 return (
a >
b) - (
a <
b);
739 return (
a >
b) - (
a <
b);
static bool pg_mul_s64_overflow(int64 a, int64 b, int64 *result)
static bool pg_neg_s32_overflow(int32 a, int32 *result)
static int pg_cmp_s16(int16 a, int16 b)
static uint64 pg_abs_s64(int64 a)
static bool pg_sub_u32_overflow(uint32 a, uint32 b, uint32 *result)
static int pg_cmp_u32(uint32 a, uint32 b)
static bool pg_mul_size_overflow(size_t a, size_t b, size_t *result)
static bool pg_add_u32_overflow(uint32 a, uint32 b, uint32 *result)
static bool pg_neg_s16_overflow(int16 a, int16 *result)
static bool pg_sub_s64_overflow(int64 a, int64 b, int64 *result)
static bool pg_add_u64_overflow(uint64 a, uint64 b, uint64 *result)
static int pg_cmp_u16(uint16 a, uint16 b)
static bool pg_neg_u32_overflow(uint32 a, int32 *result)
static bool pg_sub_s16_overflow(int16 a, int16 b, int16 *result)
static bool pg_neg_u16_overflow(uint16 a, int16 *result)
static bool pg_neg_s64_overflow(int64 a, int64 *result)
static bool pg_mul_s32_overflow(int32 a, int32 b, int32 *result)
static bool pg_mul_u16_overflow(uint16 a, uint16 b, uint16 *result)
static bool pg_mul_u32_overflow(uint32 a, uint32 b, uint32 *result)
static bool pg_mul_s16_overflow(int16 a, int16 b, int16 *result)
static int pg_cmp_s64(int64 a, int64 b)
static bool pg_mul_u64_overflow(uint64 a, uint64 b, uint64 *result)
static bool pg_sub_u16_overflow(uint16 a, uint16 b, uint16 *result)
static bool pg_sub_size_overflow(size_t a, size_t b, size_t *result)
static bool pg_add_u16_overflow(uint16 a, uint16 b, uint16 *result)
static bool pg_add_s16_overflow(int16 a, int16 b, int16 *result)
static uint32 pg_abs_s32(int32 a)
static int pg_cmp_s32(int32 a, int32 b)
static int pg_cmp_u64(uint64 a, uint64 b)
static int pg_cmp_size(size_t a, size_t b)
static uint16 pg_abs_s16(int16 a)
static bool pg_sub_s32_overflow(int32 a, int32 b, int32 *result)
static bool pg_neg_u64_overflow(uint64 a, int64 *result)
static bool pg_add_s64_overflow(int64 a, int64 b, int64 *result)
static bool pg_add_size_overflow(size_t a, size_t b, size_t *result)
static bool pg_sub_u64_overflow(uint64 a, uint64 b, uint64 *result)
static bool pg_add_s32_overflow(int32 a, int32 b, int32 *result)