49 #define _cairo_uint32s_to_uint64(h,l) ((uint64_t) (h) << 32 | (l))
81 q.hi = i < 0 ? -1 : 0;
119 #define uint32_lo(i) ((i) & 0xffff)
120 #define uint32_hi(i) ((i) >> 16)
121 #define uint32_carry16 ((1) << 16)
128 uint16_t ah, al, bh, bl;
129 uint32_t r0, r1, r2, r3;
136 r0 = (uint32_t) al * bl;
137 r1 = (uint32_t) al * bh;
138 r2 = (uint32_t) ah * bl;
139 r3 = (uint32_t) ah * bh;
144 r3 += uint32_carry16;
146 s.hi = r3 + uint32_hi(r1);
147 s.lo = (uint32_lo (r1) << 16) + uint32_lo (r0);
169 s.hi += a.lo * b.hi + a.hi * b.lo;
184 a.hi = a.hi << shift | a.lo >> (32 - shift);
185 a.lo = a.lo << shift;
201 a.lo = a.lo >> shift | a.hi << (32 - shift);
202 a.hi = a.hi >> shift;
207 #define _cairo_uint32_rsa(a,n) ((uint32_t) (((int32_t) (a)) >> (n)))
215 a.hi = _cairo_uint32_rsa (a.hi, 31);
220 a.lo = a.lo >> shift | a.hi << (32 - shift);
221 a.hi = _cairo_uint32_rsa (a.hi, shift);
229 return (a.hi < b.hi ||
230 (a.hi == b.hi && a.lo < b.lo));
236 return a.hi == b.hi && a.lo == b.lo;
288 while (bit.hi | bit.lo)
322 if (num_neg != den_neg)
413 #define uint64_lo32(i) ((i) & 0xffffffff)
414 #define uint64_hi32(i) ((i) >> 32)
415 #define uint64_lo(i) ((i) & 0xffffffff)
416 #define uint64_hi(i) ((i) >> 32)
417 #define uint64_shift32(i) ((i) << 32)
418 #define uint64_carry32 (((uint64_t) 1) << 32)
422 #define uint64_lo32(i) ((i).lo)
423 #define uint64_hi32(i) ((i).hi)
463 uint32_t ah, al, bh, bl;
595 #define _cairo_msbset64(q) (q & ((uint64_t) 1 << 63))
597 #define _cairo_msbset64(q) (q.hi & ((uint32_t) 1 << 31))
668 if (num_neg != den_neg)
822 if (num_neg != den_neg)
cairo_x function declarations, which provide the fallback high precision arithmetic implementation.
#define _cairo_int64_lt(a, b)
#define _cairo_uint64_to_uint32(i)
#define _cairo_uint64_eq(a, b)
#define _cairo_int64_negate(a)
#define _cairo_uint64_add(a, b)
#define _cairo_uint64_negate(a)
#define _cairo_uint64_lt(a, b)
#define _cairo_int32x32_64_mul(a, b)
#define _cairo_uint64_mul(a, b)
#define _cairo_uint32x32_64_mul(a, b)
#define _cairo_uint64_ge(a, b)
#define _cairo_uint64_gt(a, b)
#define _cairo_uint64_lsl(a, b)
#define _cairo_int32_to_int64(i)
#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_uint64_sub(a, b)
#define _cairo_int64_negative(a)
#define _cairo_uint128_to_uint64(a)
#define _cairo_uint64_rsa(a, b)
#define _cairo_int128_negative(a)
#define _cairo_uint64_rsl(a, b)
#define _cairo_uint128_to_uint32(a)
#define _cairo_uint64_not(a)
#define _cairo_uint32_to_uint64(i)
#define _cairo_int128_negate(a)
#define uint64_shift32(i)
cairo_uint128_t _cairo_uint128_lsl(cairo_uint128_t a, int shift)
cairo_uint128_t _cairo_uint32_to_uint128(uint32_t i)
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)
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_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
#define _cairo_uint32s_to_uint64(h, l)
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)
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_uint128_t _cairo_uint128_add(cairo_uint128_t a, cairo_uint128_t b)
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)
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)
list x
Random number samples.