Searched refs:sign (Results 26 - 50 of 79) sorted by relevance

1234

/haiku/src/system/libroot/posix/glibc/misc/
H A Defgcvt_r.c58 APPEND (FUNC_PREFIX, fcvt_r) (value, ndigit, decpt, sign, buf, len)
60 int ndigit, *decpt, *sign;
77 *sign = signbit (value) != 0;
78 if (*sign)
102 *sign = 0;
157 APPEND (FUNC_PREFIX, ecvt_r) (value, ndigit, decpt, sign, buf, len)
159 int ndigit, *decpt, *sign;
206 *sign = isfinite (value) ? signbit (value) != 0 : 0;
210 decpt, sign, buf, len))
/haiku/src/system/libroot/posix/musl/math/
H A Dtgamma.c29 /* sin(pi x) with x > 0x1p-100, if sin(pi*x)==0 the sign is arbitrary */
114 int sign = u.i>>63; local
127 if (sign)
136 if (sign) {
146 absx = sign ? -x : x;
174 double __lgamma_r(double x, int *sign)
178 *sign = 1;
198 *sign = 1 - 2*!!signbit(x);
205 *sign = 1 - 2*!!signbit(x);
215 *sign
[all...]
H A Dfma.c9 struct num { uint64_t m; int e; int sign; }; member in struct:num
15 int sign = e & 0x800; local
26 return (struct num){ix,e,sign};
100 int sign = nx.sign^ny.sign; local
101 int samesign = !(sign^nz.sign);
115 sign = !sign;
[all...]
H A Dlrint.c57 uint64_t sign = asuint64(x) & (1ULL << 63); local
61 double_t toint = asdouble(asuint64(1/EPS) | sign);
H A D__tan.c71 int big, sign; local
76 sign = hx>>31;
77 if (sign) {
99 return sign ? -v : v;
H A Datan.c66 uint32_t ix,sign; local
70 sign = ix >> 31;
76 return sign ? -z : z;
115 return sign ? -z : z;
H A D__rem_pio2f.c48 int n, sign, e0; local
64 sign = u.i>>31;
69 if (sign) {
H A Djn.c44 int nm1, i, sign; local
48 sign = ix>>31;
63 sign ^= 1;
69 sign &= n; /* even n: 0, odd n: signbit(x) */
211 return sign ? -b : b;
218 int nm1, sign, i; local
222 sign = ix>>31;
227 if (sign && (ix|lx)!=0) /* x < 0 */
236 sign = n&1;
239 sign
[all...]
H A D__rem_pio2.c54 int sign, n, ex, ey, i; local
56 sign = u.i>>63;
62 if (!sign) {
74 if (!sign) {
91 if (!sign) {
105 if (!sign) {
169 if (sign) {
H A Derf.c47 * erf(x) = sign(x) * (c + P1(s)/Q1(s))
72 * erf(x) = sign(x)*(1.0 - erfc(x)) if x < 6, else
73 * erf(x) = sign(x)*(1.0 - tiny)
96 * erf(x) = sign(x) *(1 - tiny) (raise inexact)
217 int sign; local
220 sign = ix>>31;
224 return 1-2*sign + 1/x;
241 return sign ? -y : y;
248 int sign; local
251 sign
[all...]
H A Derff.c127 int sign; local
130 sign = ix>>31;
134 return 1-2*sign + 1/x;
151 return sign ? -y : y;
158 int sign; local
161 sign = ix>>31;
165 return 2*sign + 1/x;
175 if (sign || ix < 0x3e800000) /* x < 1/4 */
180 return sign ? 2 - erfc2(ix,x) : erfc2(ix,x);
182 return sign
[all...]
H A Dexpm1.c126 int k, sign = u.i>>63; local
132 if (sign)
143 if (!sign) {
153 k = invln2*x + (sign ? -0.5 : 0.5);
H A Dexpm1f.c36 int k, sign = u.i >> 31; local
42 if (sign)
53 if (!sign) {
63 k = invln2*x + (sign ? -0.5f : 0.5f);
H A Dasinl.c39 int sign = u.i.se >> 15; local
69 return sign ? -x : x;
H A Dsqrtf.c23 int32_t sign = (int)0x80000000; local
35 if ((ix&~sign) == 0)
H A Dtanhl.c13 unsigned sign = u.i.se & 0x8000; local
40 return sign ? -t : t;
H A Derfl.c56 * erf(x) = sign(x) * (c + P1(s)/Q1(s))
75 * erf(x) = sign(x)*(1.0 - erfc(x)) if x < 6.666, else
76 * erf(x) = sign(x)*(1.0 - tiny)
90 * erf(x) = sign(x) *(1 - tiny) (raise inexact)
291 int sign = u.i.se >> 15; local
295 return 1 - 2*sign + 1/x;
312 return sign ? -y : y;
320 int sign = u.i.se >> 15; local
324 return 2*sign + 1/x;
339 return sign
[all...]
H A D__tanl.c103 int big, sign; local
107 sign = 0;
109 sign = 1;
126 return sign ? -v : v;
/haiku/src/libs/mapm/
H A Dmapm_mul.c86 int ai, itmp, sign, nexp, ii, jj, indexa, indexb, index0, numdigits; local
90 sign = a->m_apm_sign * b->m_apm_sign;
93 if (sign == 0) /* one number is zero, result is zero */
176 r->m_apm_sign = sign;
H A Dmapm_add.c62 int j, carry, sign, aexp, bexp, adigits, bdigits; local
99 sign = a->m_apm_sign; /* signs are the same, result will be same */
180 r->m_apm_sign = sign;
187 int itmp, j, flag, icompare, sign, aexp, bexp, local
243 sign = a->m_apm_sign;
248 sign = -(a->m_apm_sign);
322 r->m_apm_sign = sign;
H A Dmapm_div.c125 int j, k, m, b0, sign, nexp, indexr, icompare, iterations; local
140 sign = a->m_apm_sign * b->m_apm_sign;
142 if (sign == 0) /* one number is zero, result is zero */
331 r->m_apm_sign = sign;
/haiku/headers/libs/udis86/libudis86/
H A Dsyn.h47 void ud_syn_print_mem_disp(struct ud* u, const struct ud_operand *, int sign);
/haiku/src/libs/icon/flat_icon/
H A DFlatIconFormat.cpp85 int sign = (shortValue & 0x800000) >> 23; local
96 i2f.intValue = (sign << 31) | ((exponent + 127) << 23) | mantissa;
107 // 1 bit sign
117 int sign = (f2i.intValue & 0x80000000) >> 31; local
127 int shortValue = (sign << 23)
/haiku/src/tests/kits/locale/
H A DCollatorTest.cpp33 int sign[3]; member in struct:Test
58 CPPUNIT_ASSERT_EQUAL(tests[i].sign[strength - 1], difference);
61 // are 0, or both have the same sign.
/haiku/src/system/kernel/lib/
H A Dkernel_vsprintf.cpp143 char c, sign, tmp[66]; local
156 sign = sign_symbol(flags, (int64)num < 0);
159 if (sign)
162 sign = 0;
185 if (sign)
186 outBuffer.PutCharacter(sign);
223 char sign; local
225 sign = sign_symbol(flags, value < 0.0);
261 if (sign)
262 outBuffer.PutCharacter(sign);
[all...]

Completed in 74 milliseconds

1234