/src/games/robots/ |
move_robs.c | 68 rp->y += sign(My_pos.y - rp->y); 69 rp->x += sign(My_pos.x - rp->x); 142 * sign: 143 * Return the sign of the number 146 sign(int n) function in typeref:typename:int
|
/src/sys/arch/hppa/spmath/ |
divsfm.c | 52 register int sign, op1_sign; local in function:divsfm 60 /* get sign of result */ 61 sign = opnd1 ^ opnd2; 107 if (sign<0) result_lo = -result_lo;
|
divsfr.c | 52 int sign, op1_sign; local in function:divsfr 60 /* get sign of result */ 61 sign = opnd1 ^ opnd2; 102 if (sign<0) result_lo = -result_lo;
|
divsim.c | 52 int sign, op1_sign; local in function:divsim 60 /* get sign of result */ 61 sign = opnd1 ^ opnd2; 92 if (sign>0 && result_lo<0) { 109 if (sign<0) result_lo = -result_lo;
|
divsir.c | 52 int sign, op1_sign; local in function:divsir 60 /* get sign of result */ 61 sign = opnd1 ^ opnd2; 92 if (sign>0 && result_lo<0) { 101 if (sign<0) result_lo = -result_lo;
|
mpyaccs.c | 53 int carry, sign; local in function:mpyaccs 63 sign = result_hi ^ temp.rslt_hi; 65 if (sign >= 0 && (temp.rslt_hi ^ result_hi) < 0) overflow = true;
|
/src/lib/libc/gdtoa/ |
strtodI.c | 61 ULong bits[2], sign; local in function:strtodI 70 sign = k & STRTOG_Neg ? 0x80000000L : 0; 80 if (sign) 100 if (sign) { 101 word0(&u[0]) |= sign; 113 word0(&u[1]) = sign; 129 word0(&u[0]) = sign; 143 word0(&u[0]) = word0(&u[1]) = sign | 0x7ff00000; 146 if (sign) { 163 word0(&u[0]) = word0(&u[1]) = 0x7ff00000 | sign | bits[1] [all...] |
g_dfmt.c | 45 ULong bits[2], *L, sign; local in function:g_dfmt 59 sign = L[_0] & 0x80000000L; 68 if (sign) 72 if (L[_1] == 0 && (L[_0] ^ sign) == 0 /*d == 0.*/) { 93 if (sign) 98 return g__fmt(buf, s, se, decpt, sign, bufsize);
|
g_ffmt.c | 45 ULong bits[1], *L, sign; local in function:g_ffmt 59 sign = L[0] & 0x80000000L; 66 if (sign) 96 return g__fmt(buf, s, se, decpt, sign, bufsize);
|
g_xLfmt.c | 61 ULong bits[2], *L, sign; local in function:g_xLfmt 75 sign = L[_0] & 0x80000000L; 85 if (sign) 99 if (sign) 116 return g__fmt(buf, s, se, decpt, sign, bufsize);
|
/src/lib/libm/noieee_src/ |
n_sinh.c | 112 double t, sign; local in function:sinh 116 sign=copysign(one,x); 119 {t=expm1(x); return(copysign((t+t/(one+t))*half,sign));} 124 return(copysign(scalb(one+expm1((x-mln2hi)-mln2lo),max),sign)); 127 return( expm1(x)*sign );
|
n_tanh.c | 80 double t, sign; local in function:tanh 86 sign=copysign(one,x); 90 return(copysign(one-two/(expm1(x+x)+two),sign)); 92 {t= -expm1(-(x+x)); return(copysign(t/(two-t),sign));} 94 { t = big+x; return(copysign(x,sign));} /* ??? -ragge */ 96 return (sign+1.0E-37); /* raise the INEXACT flag */ 98 return(sign); /* x is +- INF */
|
/src/sys/arch/m68k/fpe/ |
fpu_hyperb.c | 223 int sign; local in function:fpu_tanh 233 sign = fe->fe_f2.fp_sign; 235 fe->fe_f2.fp_sign = sign;
|
fpu_trig.c | 139 * sign = 1; 142 * if (sign) { 207 * sign inverse; 211 * sign inverse; 215 * if (sign) { 225 int sign; local in function:fpu_cos 233 sign = 0; 268 sign ^= 1; 287 sign ^= 1; 292 r->fp_sign = sign; 325 int sign; local in function:fpu_sin [all...] |
/src/sys/external/bsd/compiler_rt/dist/lib/builtins/ |
floatditf.c | 28 // All other cases begin by extracting the sign and absolute value of a 29 rep_t sign = 0; local in function:__floatditf 32 sign = signBit; 46 // Insert the sign bit and return 47 return fromRep(result | sign);
|
floatsidf.c | 30 // All other cases begin by extracting the sign and absolute value of a 31 rep_t sign = 0; local in function:__floatsidf 33 sign = signBit; 49 // Insert the sign bit and return 50 return fromRep(result | sign);
|
floatsisf.c | 30 // All other cases begin by extracting the sign and absolute value of a 31 rep_t sign = 0; local in function:__floatsisf 33 sign = signBit; 55 // Insert the sign bit and return 56 return fromRep(result | sign);
|
floatsitf.c | 28 // All other cases begin by extracting the sign and absolute value of a 29 rep_t sign = 0; local in function:__floatsitf 32 sign = signBit; 46 // Insert the sign bit and return 47 return fromRep(result | sign);
|
/src/lib/libm/src/ |
s_rintl.c | 61 int ex, sign; local in function:rintl 72 sign = expsign >> 15; 81 x += shift[sign]; 82 x -= shift[sign]; 85 * If the result is +-0, then it must have the same sign as x, but 86 * the above calculation doesn't always give this. Fix up the sign. 89 return (zero[sign]);
|
e_sqrt.c | 97 int32_t sign = (int)0x80000000; local in function:__ieee754_sqrt 110 if(((ix0&(~sign))|ix1)==0) return x;/* sqrt(+-0) = +-0 */ 129 ix0 += ix0 + ((ix1&sign)>>31); 135 ix0 += ix0 + ((ix1&sign)>>31); 147 ix0 += ix0 + ((ix1&sign)>>31); 152 r = sign; 158 if(((t1&sign)==(u_int32_t)sign)&&(s1&sign)==0) s0 += 1; 164 ix0 += ix0 + ((ix1&sign)>>31) [all...] |
e_sqrtf.c | 30 int32_t sign = (int)0x80000000; local in function:__ieee754_sqrtf 43 if((ix&(~sign))==0) return x;/* sqrt(+-0) = +-0 */
|
s_cbrt.c | 46 u_int32_t sign; local in function:cbrt 50 sign=hx&0x80000000; /* sign= sign(x) */ 51 hx ^=sign; 84 /* retore the sign bit */ 86 SET_HIGH_WORD(t,high|sign);
|
s_cbrtf.c | 43 u_int32_t sign; local in function:cbrtf 47 sign=hx&0x80000000; /* sign= sign(x) */ 48 hx ^=sign; 68 /* retore the sign bit */ 70 SET_FLOAT_WORD(t,high|sign);
|
/src/lib/libc/compat/gen/ |
compat_timezone.c | 120 char sign; local in function:_tztab 132 sign = '+'; 135 sign = '-'; 136 (void)snprintf(czone, TZ_MAX_CHARS, "GMT%c%d:%02d", sign, zone / 60,
|
/src/lib/libc/gen/ |
humanize_number.c | 51 int b, i, r, s1, s2, sign; local in function:humanize_number 95 sign = -1; 96 baselen = 3; /* sign, digit, prefix */ 105 sign = 1; 173 sign * bytes, sep, SCALE2PREFIX(0), suffix); 191 sign * s1, localeconv()->decimal_point, s2, 195 sign * ((bytes + 50) / 100),
|