uint128 43 src/dps8/dps8.h # define construct_128(h, l) ((uint128) { (h), (l) }) uint128 9238 src/dps8/dps8_eis.c uint128 extBits = lshift_128 (construct_128 (MASK64, MASK64), (uint) bits); uint128 9239 src/dps8/dps8_eis.c uint128 or = or_128 (n128, extBits); uint128 9242 src/dps8/dps8_eis.c uint128 extBits = ((uint128)-1 << bits); uint128 9247 src/dps8/dps8_eis.c uint128 zeroBits = complement_128 (lshift_128 (construct_128 (MASK64, MASK64), (uint) bits)); uint128 9248 src/dps8/dps8_eis.c uint128 and = and_128 (n128, zeroBits); uint128 9251 src/dps8/dps8_eis.c uint128 zeroBits = ~((uint128)-1 << bits); uint128 325 src/dps8/dps8_hw_consts.h uint128 v = or_128 (w, construct_128 (0xFFFFFFFFFFFFFF80, 0)); uint128 328 src/dps8/dps8_hw_consts.h uint128 v = and_128 (w, MASK72); uint128 339 src/dps8/dps8_hw_consts.h return ((int128) w) | (int128) (((uint128) -1ll) << 72); uint128 6775 src/dps8/dps8_ins.c uint128 bigsecs = divide_128_32 (big, 1000000u, & remainder); uint128 1177 src/dps8/dps8_math.c uint128 ut = rshift_128 (cast_128 (t), 44); uint128 2384 src/dps8/dps8_math.c int128 m1l = m1 & (((uint128)1<<64)-1); uint128 2393 src/dps8/dps8_math.c m3h = (int128) (((uint128) m3h) << 1); // m3h is hi by 64, align it for addition. The result is 135 bits so this cannot overflow. uint128 2647 src/dps8/dps8_math.c word72 m3 = ((uint128)m1 << (63-8)) / ((uint128)m2 >> 8); uint128 2800 src/dps8/dps8_math.c uint128 zFrac = (((uint128) (cpu.rA & MASK35)) << 35) | ((cpu.rQ >> 1) & MASK35); uint128 2817 src/dps8/dps8_math.c uint128 2822 src/dps8/dps8_math.c uint128 2825 src/dps8/dps8_math.c uint128 dFrac = cpu.CY & MASK35; uint128 2852 src/dps8/dps8_math.c uint128 sn = zFrac; uint128 2856 src/dps8/dps8_math.c uint128 s2n = sn << 1; uint128 2882 src/dps8/dps8_math.c if (quot & ~((uint128) MASK35)) { uint128 2930 src/dps8/dps8_math.c uint128 zFrac = lshift_128 (construct_128 (0, cpu.rA & MASK35), 35); uint128 2934 src/dps8/dps8_math.c uint128 zFrac = ((uint128) (cpu . rA & MASK35) << 35) | ((cpu . rQ >> 1) & MASK35); uint128 2946 src/dps8/dps8_math.c zFrac = (uint128) (((int128) (~zFrac)) + 1); uint128 2971 src/dps8/dps8_math.c uint128 dFrac = convert_to_word72 (0, cpu.CY & MASK35); uint128 2984 src/dps8/dps8_math.c dFrac = (uint128) (((int128) (~dFrac)) + 1); uint128 3030 src/dps8/dps8_math.c uint128 remainder; uint128 3031 src/dps8/dps8_math.c uint128 quot = divide_128 (zFrac, dFrac, & remainder); uint128 3035 src/dps8/dps8_math.c uint128 quot = zFrac / dFrac; uint128 3036 src/dps8/dps8_math.c uint128 remainder = zFrac % dFrac; uint128 38 src/dps8/dps8_math128.c bool iszero_128 (uint128 w) uint128 45 src/dps8/dps8_math128.c bool isnonzero_128 (uint128 w) uint128 52 src/dps8/dps8_math128.c bool iseq_128 (uint128 a, uint128 b) uint128 57 src/dps8/dps8_math128.c bool isgt_128 (uint128 a, uint128 b) uint128 65 src/dps8/dps8_math128.c bool islt_128 (uint128 a, uint128 b) uint128 73 src/dps8/dps8_math128.c bool isge_128 (uint128 a, uint128 b) uint128 97 src/dps8/dps8_math128.c uint128 and_128 (uint128 a, uint128 b) uint128 99 src/dps8/dps8_math128.c return (uint128) {a.h & b.h, a.l & b.l}; uint128 102 src/dps8/dps8_math128.c int128 and_s128 (int128 a, uint128 b) uint128 107 src/dps8/dps8_math128.c uint128 or_128 (uint128 a, uint128 b) uint128 109 src/dps8/dps8_math128.c return (uint128) {a.h | b.h, a.l | b.l}; uint128 112 src/dps8/dps8_math128.c uint128 xor_128 (uint128 a, uint128 b) uint128 114 src/dps8/dps8_math128.c return (uint128) {a.h ^ b.h, a.l ^ b.l}; uint128 117 src/dps8/dps8_math128.c uint128 complement_128 (uint128 a) uint128 119 src/dps8/dps8_math128.c return (uint128) {~ a.h, ~ a.l}; uint128 122 src/dps8/dps8_math128.c uint128 add_128 (uint128 a, uint128 b) uint128 145 src/dps8/dps8_math128.c uint128 subtract_128 (uint128 a, uint128 b) uint128 150 src/dps8/dps8_math128.c uint128 res = construct_128 (a.h - b.h, a.l - b.l); uint128 157 src/dps8/dps8_math128.c uint128 negate_128 (uint128 a) uint128 164 src/dps8/dps8_math128.c uint128 t = add_128 (complement_128 (cast_128 (a)), construct_128 (0, 1)); uint128 168 src/dps8/dps8_math128.c uint128 lshift_128 (uint128 a, unsigned int n) uint128 199 src/dps8/dps8_math128.c uint128 t = lshift_128 (cast_128 (a), n); uint128 203 src/dps8/dps8_math128.c uint128 rshift_128 (uint128 a, unsigned int n) uint128 271 src/dps8/dps8_math128.c uint128 t = rshift_128 (cast_128 (a), n); uint128 475 src/dps8/dps8_math128.c uint128 multiply_128 (uint128 a, uint128 b) uint128 516 src/dps8/dps8_math128.c uint128 divide_128 (uint128 a, uint128 b, uint128 * remp) uint128 571 src/dps8/dps8_math128.c uint128 divide_128_16 (uint128 a, uint16_t b, uint16_t * remp) uint128 607 src/dps8/dps8_math128.c uint128 divide_128_32 (uint128 a, uint32_t b, uint32_t * remp) uint128 658 src/dps8/dps8_math128.c uint128 a = construct_128 (ah, al); uint128 659 src/dps8/dps8_math128.c uint128 b = construct_128 (bh, bl); uint128 660 src/dps8/dps8_math128.c uint128 r = and_128 (a, b); uint128 674 src/dps8/dps8_math128.c uint128 a = construct_128 (ah, al); uint128 675 src/dps8/dps8_math128.c uint128 b = construct_128 (bh, bl); uint128 676 src/dps8/dps8_math128.c uint128 r = or_128 (a, b); uint128 690 src/dps8/dps8_math128.c uint128 a = construct_128 (ah, al); uint128 691 src/dps8/dps8_math128.c uint128 r = complement_128 (a); uint128 705 src/dps8/dps8_math128.c uint128 a = construct_128 (ah, al); uint128 706 src/dps8/dps8_math128.c uint128 b = construct_128 (bh, bl); uint128 707 src/dps8/dps8_math128.c uint128 r = add_128 (a, b); uint128 721 src/dps8/dps8_math128.c uint128 a = construct_128 (ah, al); uint128 722 src/dps8/dps8_math128.c uint128 b = construct_128 (bh, bl); uint128 723 src/dps8/dps8_math128.c uint128 r = subtract_128 (a, b); uint128 737 src/dps8/dps8_math128.c uint128 a = construct_128 (ah, al); uint128 738 src/dps8/dps8_math128.c uint128 r = negate_128 (a); uint128 752 src/dps8/dps8_math128.c uint128 a = construct_128 (ah, al); uint128 753 src/dps8/dps8_math128.c uint128 b = construct_128 (bh, bl); uint128 768 src/dps8/dps8_math128.c uint128 a = construct_128 (ah, al); uint128 769 src/dps8/dps8_math128.c uint128 r = lshift_128 (a, n); uint128 783 src/dps8/dps8_math128.c uint128 a = construct_128 (ah, al); uint128 784 src/dps8/dps8_math128.c uint128 r = rshift_128 (a, n); uint128 798 src/dps8/dps8_math128.c uint128 a = construct_128 (ah, al); uint128 799 src/dps8/dps8_math128.c uint128 b = construct_128 (bh, bl); uint128 800 src/dps8/dps8_math128.c uint128 r = multiply_128 (a, b); uint128 831 src/dps8/dps8_math128.c uint128 a = construct_128 (ah, al); uint128 833 src/dps8/dps8_math128.c uint128 res = divide_128_16 (a, b, & rem); uint128 848 src/dps8/dps8_math128.c uint128 a = construct_128 (ah, al); uint128 850 src/dps8/dps8_math128.c uint128 res = divide_128_32 (a, b, & rem); uint128 30 src/dps8/dps8_math128.h bool iszero_128 (uint128 w); uint128 31 src/dps8/dps8_math128.h bool isnonzero_128 (uint128 w); uint128 32 src/dps8/dps8_math128.h bool iseq_128 (uint128 a, uint128 b); uint128 33 src/dps8/dps8_math128.h bool isgt_128 (uint128 a, uint128 b); uint128 34 src/dps8/dps8_math128.h bool islt_128 (uint128 a, uint128 b); uint128 35 src/dps8/dps8_math128.h bool isge_128 (uint128 a, uint128 b); uint128 38 src/dps8/dps8_math128.h uint128 and_128 (uint128 a, uint128 b); uint128 39 src/dps8/dps8_math128.h int128 and_s128 (int128 a, uint128 b); uint128 40 src/dps8/dps8_math128.h uint128 or_128 (uint128 a, uint128 b); uint128 41 src/dps8/dps8_math128.h uint128 xor_128 (uint128 a, uint128 b); uint128 42 src/dps8/dps8_math128.h uint128 add_128 (uint128 a, uint128 b); uint128 43 src/dps8/dps8_math128.h uint128 subtract_128 (uint128 a, uint128 b); uint128 44 src/dps8/dps8_math128.h uint128 multiply_128 (uint128 a, uint128 b); uint128 46 src/dps8/dps8_math128.h uint128 divide_128_16 (uint128 a, uint16_t b, uint16_t * rem); uint128 47 src/dps8/dps8_math128.h uint128 divide_128_32 (uint128 a, uint32_t b, uint32_t * rem); uint128 48 src/dps8/dps8_math128.h uint128 divide_128 (uint128 a, uint128 b, uint128 * rem); uint128 49 src/dps8/dps8_math128.h uint128 complement_128 (uint128 a); uint128 50 src/dps8/dps8_math128.h uint128 negate_128 (uint128 a); uint128 52 src/dps8/dps8_math128.h uint128 lshift_128 (uint128 a, unsigned int n); uint128 54 src/dps8/dps8_math128.h uint128 rshift_128 (uint128 a, unsigned int n); uint128 1183 src/dps8/dps8_scu.c uint128 big = construct_128 (0, cpu.instrCnt); uint128 1191 src/dps8/dps8_scu.c uint128 days = construct_128 (0, scu[0].elapsed_days); uint128 1912 src/dps8/dps8_utils.c static void print_uint128o_r (uint128 n, char * p) uint128 1939 src/dps8/dps8_utils.c print_uint128o_r ((uint128) n, p); uint128 1943 src/dps8/dps8_utils.c static void print_uint128_r (uint128 n, char * p) uint128 1978 src/dps8/dps8_utils.c print_uint128_r ((uint128) n, p);