Searched refs:fixint_t (Results 1 – 25 of 28) sorted by relevance
12
19 static __inline fixint_t __muloXi4(fixint_t a, fixint_t b, int *overflow) {20 const int N = (int)(sizeof(fixint_t) * CHAR_BIT);21 const fixint_t MIN = (fixint_t)((fixuint_t)1 << (N - 1));22 const fixint_t MAX = ~MIN;24 fixint_t result = (fixuint_t)a * b;35 fixint_t sa = a >> (N - 1);36 fixint_t abs_a = (a ^ sa) - sa;37 fixint_t sb = b >> (N - 1);38 fixint_t abs_b = (b ^ sb) - sb;
19 static __inline fixint_t __mulvXi3(fixint_t a, fixint_t b) {20 const int N = (int)(sizeof(fixint_t) * CHAR_BIT);21 const fixint_t MIN = (fixint_t)((fixuint_t)1 << (N - 1));22 const fixint_t MAX = ~MIN;33 fixint_t sa = a >> (N - 1);34 fixint_t abs_a = (a ^ sa) - sa;35 fixint_t sb = b >> (N - 1);36 fixint_t abs_b = (b ^ sb) - sb;
36 const fixint_t s = (fixint_t)(d - r - 1) >> (N - 1);65 const fixint_t s = (fixint_t)(d - r - 1) >> (N - 1);73 static __inline fixint_t __divXi3(fixint_t a, fixint_t b) {74 const int N = (int)(sizeof(fixint_t) * CHAR_BIT) - 1;75 fixint_t s_a = a >> N; // s_a = a < 0 ? -1 : 076 fixint_t s_b = b >> N; // s_b = b < 0 ? -1 : 085 static __inline fixint_t __modXi3(fixint_t a, fixint_t b) {86 const int N = (int)(sizeof(fixint_t) * CHAR_BIT) - 1;87 fixint_t s = b >> N; // s = b < 0 ? -1 : 0
16 static __inline fixint_t __fixint(fp_t a) {17 const fixint_t fixint_max = (fixint_t)((~(fixuint_t)0) / 2);18 const fixint_t fixint_min = -fixint_max - 1;22 const fixint_t sign = aRep & signBit ? -1 : 1;31 if ((unsigned)exponent >= sizeof(fixint_t) * CHAR_BIT)37 return (fixint_t)(sign * (significand >> (significandBits - exponent)));39 return (fixint_t)(sign * ((fixuint_t)significand << (exponent - significandBits)));
13 typedef ti_int fixint_t; typedef
15 typedef ti_int fixint_t; typedef
13 typedef di_int fixint_t; typedef
13 typedef si_int fixint_t; typedef
13 #define fixint_t si_int macro
13 #define fixint_t di_int macro
16 typedef di_int fixint_t; typedef
16 typedef si_int fixint_t; typedef
21 #define fixint_t ti_int macro
17 #define fixint_t di_int macro
19 #define fixint_t ti_int macro
11 typedef si_int fixint_t; typedef