50#define _cairo_uint32s_to_uint64(h,l) ((uint64_t) (h) << 32 | (l))
82 q.hi = i < 0 ? -1 : 0;
120#define uint32_lo(i) ((i) & 0xffff)
121#define uint32_hi(i) ((i) >> 16)
122#define uint32_carry16 ((1) << 16)
129 uint16_t ah, al, bh, bl;
170 s.hi += a.lo * b.hi + a.hi * b.lo;
185 a.hi = a.hi << shift | a.lo >> (32 - shift);
186 a.lo = a.lo << shift;
202 a.lo = a.lo >> shift | a.hi << (32 - shift);
203 a.hi = a.hi >> shift;
208#define _cairo_uint32_rsa(a,n) ((uint32_t) (((int32_t) (a)) >> (n)))
221 a.
lo = a.
lo >> shift | a.
hi << (32 - shift);
230 return (a.hi < b.hi ||
231 (a.hi == b.hi && a.lo < b.lo));
237 return a.hi == b.hi && a.lo == b.lo;
289 while (bit.hi | bit.lo)
323 if (num_neg != den_neg)
414#define uint64_lo32(i) ((i) & 0xffffffff)
415#define uint64_hi32(i) ((i) >> 32)
416#define uint64_lo(i) ((i) & 0xffffffff)
417#define uint64_hi(i) ((i) >> 32)
418#define uint64_shift32(i) ((i) << 32)
419#define uint64_carry32 (((uint64_t) 1) << 32)
423#define uint64_lo32(i) ((i).lo)
424#define uint64_hi32(i) ((i).hi)
465 cairo_uint64_t r0, r1, r2, r3;
596#define _cairo_msbset64(q) (q & ((uint64_t) 1 << 63))
598#define _cairo_msbset64(q) (q.hi & ((uint32_t) 1 << 31))
669 if (num_neg != den_neg)
744 cairo_uint64_t remainder;
790 result.
rem = remainder;
800 cairo_uint64_t nonneg_den;
823 if (num_neg != den_neg)
cairo_x function declarations, which provide the fallback high precision arithmetic implementation.
#define _cairo_int64_negate(a)
#define _cairo_uint64_ge(a, b)
#define _cairo_uint64_gt(a, b)
#define _cairo_uint128_ne(a, b)
#define _cairo_uint64_le(a, b)
#define _cairo_uint128_le(a, b)
#define _cairo_int64_to_uint64(i)
#define _cairo_int64_negative(a)
#define _cairo_uint128_to_uint64(a)
#define _cairo_int128_negative(a)
#define _cairo_uint128_to_uint32(a)
#define _cairo_int128_negate(a)
#define _cairo_uint64_to_uint32(a)
cairo_uint64_t _cairo_uint64_mul(cairo_uint64_t a, cairo_uint64_t b)
cairo_uint128_t _cairo_uint128_lsl(cairo_uint128_t a, int shift)
cairo_int64_t _cairo_uint64_rsa(cairo_int64_t a, int shift)
cairo_uint64_t _cairo_uint64_add(cairo_uint64_t a, cairo_uint64_t b)
int _cairo_int64_lt(cairo_int64_t a, cairo_int64_t b)
cairo_uint64_t _cairo_uint32x32_64_mul(uint32_t a, uint32_t b)
cairo_uint64_t _cairo_uint64_sub(cairo_uint64_t a, cairo_uint64_t b)
cairo_uint128_t _cairo_uint32_to_uint128(uint32_t i)
int _cairo_uint64_eq(cairo_uint64_t a, cairo_uint64_t b)
cairo_uint128_t _cairo_uint128_negate(cairo_uint128_t a)
cairo_uint128_t _cairo_uint128_not(cairo_uint128_t a)
cairo_quorem64_t _cairo_int_96by64_32x64_divrem(cairo_int128_t num, cairo_int64_t den)
cairo_uint128_t _cairo_uint64_to_uint128(cairo_uint64_t i)
static cairo_uint64_t uint64_hi(cairo_uint64_t i)
const char * cairo_impl64
cairo_uint128_t _cairo_uint128_sub(cairo_uint128_t a, cairo_uint128_t b)
cairo_quorem128_t _cairo_int128_divrem(cairo_int128_t num, cairo_int128_t den)
#define _cairo_uint32_rsa(a, n)
#define _cairo_msbset64(q)
cairo_uquorem64_t _cairo_uint64_divrem(cairo_uint64_t num, cairo_uint64_t den)
int _cairo_uint128_eq(cairo_uint128_t a, cairo_uint128_t b)
cairo_uint128_t _cairo_uint128_rsl(cairo_uint128_t a, int shift)
const char * cairo_impl128
cairo_uint64_t _cairo_uint32_to_uint64(uint32_t i)
cairo_uquorem64_t _cairo_uint_96by64_32x64_divrem(cairo_uint128_t num, cairo_uint64_t den)
_cairo_uint_96by64_32x64_divrem:
cairo_int128_t _cairo_int64x64_128_mul(cairo_int64_t a, cairo_int64_t b)
static cairo_uint64_t uint64_lo(cairo_uint64_t i)
static cairo_uint64_t _cairo_uint32s_to_uint64(uint32_t h, uint32_t l)
cairo_uint64_t _cairo_uint64_lsl(cairo_uint64_t a, int shift)
cairo_int128_t _cairo_int32_to_int128(int32_t i)
cairo_uquorem128_t _cairo_uint128_divrem(cairo_uint128_t num, cairo_uint128_t den)
int _cairo_uint128_lt(cairo_uint128_t a, cairo_uint128_t b)
cairo_int128_t _cairo_int64_to_int128(cairo_int64_t i)
cairo_int64_t _cairo_int32_to_int64(int32_t i)
cairo_uint64_t _cairo_uint64_negate(cairo_uint64_t a)
static const cairo_uint64_t uint64_carry32
cairo_uint128_t _cairo_uint128_add(cairo_uint128_t a, cairo_uint128_t b)
static cairo_uint64_t uint64_shift32(cairo_uint64_t i)
cairo_uint64_t _cairo_uint64_not(cairo_uint64_t a)
cairo_quorem64_t _cairo_int64_divrem(cairo_int64_t num, cairo_int64_t den)
cairo_uint128_t _cairo_uint64x64_128_mul(cairo_uint64_t a, cairo_uint64_t b)
int _cairo_int128_lt(cairo_int128_t a, cairo_int128_t b)
int _cairo_uint64_lt(cairo_uint64_t a, cairo_uint64_t b)
cairo_uint64_t _cairo_uint64_rsl(cairo_uint64_t a, int shift)
cairo_int64_t _cairo_int32x32_64_mul(int32_t a, int32_t b)
cairo_uint128_t _cairo_uint128_mul(cairo_uint128_t a, cairo_uint128_t b)
cairo_uint128_t _cairo_uint128_rsa(cairo_int128_t a, int shift)