Searched refs:sign (Results 1 - 25 of 79) sorted by relevance

1234

/haiku/src/system/libroot/posix/musl/math/
H A D__math_divzero.c3 double __math_divzero(uint32_t sign) argument
5 return fp_barrier(sign ? -1.0 : 1.0) / 0.0;
H A D__math_divzerof.c3 float __math_divzerof(uint32_t sign) argument
5 return fp_barrierf(sign ? -1.0f : 1.0f) / 0.0f;
H A D__math_oflow.c3 double __math_oflow(uint32_t sign) argument
5 return __math_xflow(sign, 0x1p769);
H A D__math_oflowf.c3 float __math_oflowf(uint32_t sign) argument
5 return __math_xflowf(sign, 0x1p97f);
H A D__math_uflow.c3 double __math_uflow(uint32_t sign) argument
5 return __math_xflow(sign, 0x1p-767);
H A D__math_uflowf.c3 float __math_uflowf(uint32_t sign) argument
5 return __math_xflowf(sign, 0x1p-95f);
H A D__math_xflow.c3 double __math_xflow(uint32_t sign, double y) argument
5 return eval_as_double(fp_barrier(sign ? -y : y) * y);
H A D__math_xflowf.c3 float __math_xflowf(uint32_t sign, float y) argument
5 return eval_as_float(fp_barrierf(sign ? -y : y) * y);
H A Dtanf.c30 unsigned n, sign; local
33 sign = ix >> 31;
46 return __tandf((sign ? x+t1pio2 : x-t1pio2), 1);
48 return __tandf((sign ? x+t2pio2 : x-t2pio2), 0);
52 return __tandf((sign ? x+t3pio2 : x-t3pio2), 1);
54 return __tandf((sign ? x+t4pio2 : x-t4pio2), 0);
H A Dsqrt.c86 int32_t sign = (int)0x80000000; local
98 if (((ix0&~sign)|ix1) == 0)
120 ix0 += ix0 + ((ix1&sign)>>31);
126 ix0 += ix0 + ((ix1&sign)>>31);
138 ix0 += ix0 + ((ix1&sign)>>31);
143 r = sign;
149 if ((t1&sign) == sign && (s1&sign) == 0)
157 ix0 += ix0 + ((ix1&sign)>>3
[all...]
H A Dsincosf.c32 unsigned n, sign; local
35 sign = ix >> 31;
56 if (sign) {
66 *sin = -__sindf(sign ? x + s2pio2 : x - s2pio2);
67 *cos = -__cosdf(sign ? x + s2pio2 : x - s2pio2);
74 if (sign) {
83 *sin = __sindf(sign ? x + s4pio2 : x - s4pio2);
84 *cos = __cosdf(sign ? x + s4pio2 : x - s4pio2);
H A Dcosf.c30 unsigned n, sign; local
33 sign = ix >> 31;
46 return -__cosdf(sign ? x+c2pio2 : x-c2pio2);
48 if (sign)
56 return __cosdf(sign ? x+c4pio2 : x-c4pio2);
58 if (sign)
H A Dsinf.c30 int n, sign; local
33 sign = ix >> 31;
46 if (sign)
51 return __sindf(sign ? -(x + s2pio2) : -(x - s2pio2));
55 if (sign)
60 return __sindf(sign ? x + s4pio2 : x - s4pio2);
H A Djnf.c22 int nm1, sign, i; local
26 sign = ix>>31;
37 sign ^= 1;
43 sign &= n; /* even n: 0, odd n: signbit(x) */
159 return sign ? -b : b;
165 int nm1, sign, i; local
169 sign = ix>>31;
173 if (sign && ix != 0) /* x < 0 */
182 sign = n&1;
185 sign
[all...]
H A Dtanh.c11 int sign; local
15 sign = u.i >> 63;
44 return sign ? -t : t;
H A Dtanhf.c7 int sign; local
11 sign = u.i >> 31;
38 return sign ? -t : t;
H A Datanf.c44 uint32_t ix,sign; local
48 sign = ix>>31;
54 return sign ? -z : z;
93 return sign ? -z : z;
/haiku/src/tests/libs/icon/flat_icon/
H A DFlatIconFormat.py10 sign = (-1) ** ((value & 0x800000) >> 23)
13 return sign * exponent * (1 + mantissa)
22 sign = 0
24 sign = 1
37 return (sign << 23) + ((exponent+32) << 17) + math.floor(mantissa * 2 ** 17)
/haiku/src/apps/glteapot/
H A DTeapotApp.cpp22 TeapotApp::TeapotApp(const char* sign) argument
24 BApplication(sign)
H A DTeapotApp.h16 TeapotApp(const char* sign);
/haiku/src/system/libroot/posix/glibc/arch/generic/
H A Dmpn2flt.c29 __mpn_construct_float (mp_srcptr frac_ptr, int expt, int sign) argument
33 u.ieee.negative = sign;
H A Dmpn2ldbl.c30 __mpn_construct_long_double (mp_srcptr frac_ptr, int expt, int sign) argument
34 u.ieee.negative = sign;
/haiku/src/system/libroot/os/arch/sparc/
H A Dfpu_implode.c162 * to the sign of the overflowing result. If false, overflow is to go
166 toinf(struct fpemu *fe, int sign) argument
182 inf = sign == 0;
186 inf = sign;
204 int sign, exp; local
206 sign = fp->fp_sign;
228 if (i >= ((uint32_t)0x80000000 + sign))
230 return (sign ? -i : i);
237 return (0x7fffffff + sign);
253 int sign, ex local
305 uint32_t sign = fp->fp_sign << 31; local
393 uint32_t sign = fp->fp_sign << 31; local
455 uint32_t sign = fp->fp_sign << 31; local
[all...]
/haiku/src/system/libroot/posix/glibc/include/
H A Dgmp.h18 extern float __mpn_construct_float (mp_srcptr frac_ptr, int expt, int sign);
24 int sign);
/haiku/src/system/libroot/posix/glibc/misc/
H A Defgcvt.c63 APPEND (FUNC_PREFIX, fcvt) (value, ndigit, decpt, sign)
65 int ndigit, *decpt, *sign;
69 if (APPEND (FUNC_PREFIX, fcvt_r) (value, ndigit, decpt, sign,
78 (void) APPEND (FUNC_PREFIX, fcvt_r) (value, ndigit, decpt, sign,
86 APPEND (FUNC_PREFIX, ecvt) (value, ndigit, decpt, sign)
88 int ndigit, *decpt, *sign;
90 (void) APPEND (FUNC_PREFIX, ecvt_r) (value, ndigit, decpt, sign,

Completed in 82 milliseconds

1234