46 #define _cairo_uint32s_to_uint64(h,l) ((uint64_t) (h) << 32 | (l)) 78 q.hi = i < 0 ? -1 : 0;
116 #define uint32_lo(i) ((i) & 0xffff) 117 #define uint32_hi(i) ((i) >> 16) 118 #define uint32_carry16 ((1) << 16) 125 uint16_t ah, al, bh, bl;
126 uint32_t r0, r1, r2, r3;
133 r0 = (uint32_t) al * bl;
134 r1 = (uint32_t) al * bh;
135 r2 = (uint32_t) ah * bl;
136 r3 = (uint32_t) ah * bh;
141 r3 += uint32_carry16;
143 s.hi = r3 + uint32_hi(r1);
144 s.lo = (uint32_lo (r1) << 16) + uint32_lo (r0);
166 s.hi += a.lo * b.hi + a.hi * b.lo;
181 a.hi = a.hi << shift | a.lo >> (32 - shift);
182 a.lo = a.lo << shift;
198 a.lo = a.lo >> shift | a.hi << (32 - shift);
199 a.hi = a.hi >> shift;
204 #define _cairo_uint32_rsa(a,n) ((uint32_t) (((int32_t) (a)) >> (n))) 212 a.hi = _cairo_uint32_rsa (a.hi, 31);
217 a.lo = a.lo >> shift | a.hi << (32 - shift);
218 a.hi = _cairo_uint32_rsa (a.hi, shift);
226 return (a.hi < b.hi ||
227 (a.hi == b.hi && a.lo < b.lo));
233 return a.hi == b.hi && a.lo == b.lo;
285 while (bit.hi | bit.lo)
319 if (num_neg != den_neg)
410 #define uint64_lo32(i) ((i) & 0xffffffff) 411 #define uint64_hi32(i) ((i) >> 32) 412 #define uint64_lo(i) ((i) & 0xffffffff) 413 #define uint64_hi(i) ((i) >> 32) 414 #define uint64_shift32(i) ((i) << 32) 415 #define uint64_carry32 (((uint64_t) 1) << 32) 419 #define uint64_lo32(i) ((i).lo) 420 #define uint64_hi32(i) ((i).hi) 460 uint32_t ah, al, bh, bl;
592 #define _cairo_msbset64(q) (q & ((uint64_t) 1 << 63)) 594 #define _cairo_msbset64(q) (q.hi & ((uint32_t) 1 << 31)) 665 if (num_neg != den_neg)
786 result.
rem = remainder;
819 if (num_neg != den_neg)
const char * cairo_impl64
#define _cairo_int64_to_uint64(i)
#define _cairo_uint64_le(a, b)
int _cairo_uint128_lt(cairo_uint128_t a, cairo_uint128_t b)
cairo_uint128_t _cairo_uint32_to_uint128(uint32_t i)
cairo_uint128_t _cairo_uint128_not(cairo_uint128_t a)
#define _cairo_uint64_rsa(a, b)
cairo_uint128_t _cairo_uint128_negate(cairo_uint128_t a)
#define _cairo_uint32x32_64_mul(a, b)
#define _cairo_uint64_not(a)
#define _cairo_uint128_to_uint64(a)
#define _cairo_msbset64(q)
int _cairo_uint128_eq(cairo_uint128_t a, cairo_uint128_t b)
cairo_int128_t _cairo_int64x64_128_mul(cairo_int64_t a, cairo_int64_t b)
#define _cairo_uint64_lsl(a, b)
cairo_uint128_t _cairo_uint128_mul(cairo_uint128_t a, cairo_uint128_t b)
cairo_uquorem64_t _cairo_uint_96by64_32x64_divrem(cairo_uint128_t num, cairo_uint64_t den)
_cairo_uint_96by64_32x64_divrem:
cairo_uint128_t _cairo_uint64_to_uint128(cairo_uint64_t i)
#define _cairo_uint64_gt(a, b)
#define _cairo_uint32s_to_uint64(h, l)
#define _cairo_uint128_to_uint32(a)
#define _cairo_uint64_to_uint32(i)
#define _cairo_uint64_mul(a, b)
#define _cairo_uint64_rsl(a, b)
cairo_uquorem128_t _cairo_uint128_divrem(cairo_uint128_t num, cairo_uint128_t den)
cairo_uint128_t _cairo_uint128_sub(cairo_uint128_t a, cairo_uint128_t b)
#define _cairo_int64_negative(a)
#define _cairo_uint32_to_uint64(i)
#define _cairo_int32x32_64_mul(a, b)
cairo_uquorem64_t _cairo_uint64_divrem(cairo_uint64_t num, cairo_uint64_t den)
#define uint64_shift32(i)
#define _cairo_int64_negate(a)
cairo_uint128_t _cairo_uint128_lsl(cairo_uint128_t a, int shift)
#define _cairo_int128_negative(a)
cairo_uint128_t _cairo_uint128_rsa(cairo_int128_t a, int shift)
cairo_quorem64_t _cairo_int64_divrem(cairo_int64_t num, cairo_int64_t den)
const char * cairo_impl128
cairo_quorem64_t _cairo_int_96by64_32x64_divrem(cairo_int128_t num, cairo_int64_t den)
#define _cairo_uint64_add(a, b)
#define _cairo_uint128_le(a, b)
cairo_x function declarations, which provide the fallback high precision arithmetic implementation...
cairo_uint128_t _cairo_uint64x64_128_mul(cairo_uint64_t a, cairo_uint64_t b)
#define _cairo_uint64_negate(a)
cairo_int128_t _cairo_int32_to_int128(int32_t i)
#define _cairo_int128_negate(a)
#define _cairo_uint64_lt(a, b)
int _cairo_int128_lt(cairo_int128_t a, cairo_int128_t b)
#define _cairo_uint64_ge(a, b)
#define _cairo_uint128_ne(a, b)
#define _cairo_int32_to_int64(i)
cairo_uint128_t _cairo_uint128_rsl(cairo_uint128_t a, int shift)
cairo_uint128_t _cairo_uint128_add(cairo_uint128_t a, cairo_uint128_t b)
#define _cairo_uint64_sub(a, b)
#define _cairo_int64_lt(a, b)
#define _cairo_uint64_eq(a, b)
cairo_int128_t _cairo_int64_to_int128(cairo_int64_t i)
cairo_quorem128_t _cairo_int128_divrem(cairo_int128_t num, cairo_int128_t den)