HomeSort by: relevance | last modified time | path
    Searched refs:exponent (Results 1 - 25 of 47) sorted by relevancy

1 2

  /src/sys/external/bsd/compiler_rt/dist/lib/builtins/
floatunditf.c 27 // Exponent of (fp_t)a is the width of abs(a).
28 const int exponent = (aWidth - 1) - __builtin_clzll(a); local in function:__floatunditf
32 const int shift = significandBits - exponent;
35 // Insert the exponent
36 result += (rep_t)(exponent + exponentBias) << significandBits;
floatunsitf.c 27 // Exponent of (fp_t)a is the width of abs(a).
28 const int exponent = (aWidth - 1) - __builtin_clz(a); local in function:__floatunsitf
32 const int shift = significandBits - exponent;
35 // Insert the exponent
36 result += (rep_t)(exponent + exponentBias) << significandBits;
floatsisf.c 37 // Exponent of (fp_t)a is the width of abs(a).
38 const int exponent = (aWidth - 1) - __builtin_clz(a); local in function:__floatsisf
42 if (exponent <= significandBits) {
43 const int shift = significandBits - exponent;
46 const int shift = exponent - significandBits;
53 // Insert the exponent
54 result += (rep_t)(exponent + exponentBias) << significandBits;
floatunsisf.c 29 // Exponent of (fp_t)a is the width of abs(a).
30 const int exponent = (aWidth - 1) - __builtin_clz(a); local in function:__floatunsisf
34 if (exponent <= significandBits) {
35 const int shift = significandBits - exponent;
38 const int shift = exponent - significandBits;
45 // Insert the exponent
46 result += (rep_t)(exponent + exponentBias) << significandBits;
floatditf.c 36 // Exponent of (fp_t)a is the width of abs(a).
37 const int exponent = (aWidth - 1) - __builtin_clzll(aAbs); local in function:__floatditf
41 const int shift = significandBits - exponent;
44 // Insert the exponent
45 result += (rep_t)(exponent + exponentBias) << significandBits;
floatsidf.c 37 // Exponent of (fp_t)a is the width of abs(a).
38 const int exponent = (aWidth - 1) - __builtin_clz(a); local in function:__floatsidf
44 const int shift = significandBits - exponent;
47 // Insert the exponent
48 result += (rep_t)(exponent + exponentBias) << significandBits;
floatsitf.c 36 // Exponent of (fp_t)a is the width of abs(a).
37 const int exponent = (aWidth - 1) - __builtin_clz(aAbs); local in function:__floatsitf
41 const int shift = significandBits - exponent;
44 // Insert the exponent
45 result += (rep_t)(exponent + exponentBias) << significandBits;
floatunsidf.c 29 // Exponent of (fp_t)a is the width of abs(a).
30 const int exponent = (aWidth - 1) - __builtin_clz(a); local in function:__floatunsidf
34 const int shift = significandBits - exponent;
37 // Insert the exponent
38 result += (rep_t)(exponent + exponentBias) << significandBits;
  /src/sys/arch/hppa/spmath/
cnv_float.h 74 #define Sgl_isinexact_to_fix(sgl_value,exponent) \
75 ((exponent < (SGL_P - 1)) ? \
76 (Sall(sgl_value) << (SGL_EXP_LENGTH + 1 + exponent)) : false)
101 #define Sgl_isone_roundbit(sgl_value,exponent) \
102 ((Sall(sgl_value) << (SGL_EXP_LENGTH + 1 + exponent)) >> 31)
104 #define Sgl_isone_stickybit(sgl_value,exponent) \
105 (exponent < (SGL_P - 2) ? \
106 Sall(sgl_value) << (SGL_EXP_LENGTH + 2 + exponent) : false)
206 #define Dbl_isinexact_to_fix(dbl_valueA,dbl_valueB,exponent) \
207 (exponent < (DBL_P-33) ?
    [all...]
sgl_float.h 69 /* The hidden bit is always the low bit of the exponent */
186 /* An infinity is represented with the max exponent and a zero mantissa */
217 #define Sgl_setwrapped_exponent(sgl_value,exponent,op) \
218 Deposit_sexponent(sgl_value,(exponent op SGL_WRAP))
283 #define Sgl_normalize(sgl_opnd,exponent) \
286 exponent -= 8; \
290 exponent -= 4; \
294 exponent -= 1; \
323 #define Sgl_denormalize(opnd,exponent,guard,sticky,inexact) \
325 if (exponent >= (1 - SGL_P)) {
    [all...]
dbl_float.h 71 /* The hidden bit is always the low bit of the exponent */
79 /* Exponent field for doubles has already been cleared and may be
139 /* Singles and doubles may include the sign and exponent fields. The
293 /* An infinity is represented with the max exponent and a zero mantissa */
342 #define Dbl_setwrapped_exponent(dbl_value,exponent,op) \
343 Deposit_dexponent(dbl_value,(exponent op DBL_WRAP))
410 * (due to the exponent becoming negative) during normalization.
465 #define Dbl_normalize(dbl_opndA,dbl_opndB,exponent) \
468 exponent -= 8; \
472 exponent -= 4;
    [all...]
  /src/lib/libc/gen/
floatunditf_ieee754.c 49 int exponent, zeros; local in function:__floatunditf
58 exponent = 64 - zeros;
61 exponent = 63 - zeros;
65 ux.extu_exp = EXT_EXP_BIAS + exponent;
  /src/lib/libm/arch/mc68881/
s_logb.S 44 | returns the unbiased exponent of x, a signed integer in double precision,
48 movw #0x7FF0,%d1 | exponent bits
50 cmpw %d1,%d0 | max exponent?
62 fgetexpx %fp0 | get exponent
  /src/usr.bin/sort/
fields.c 226 * Numbers are converted to a floating point format (exponent & mantissa)
231 * The first byte contain the overall sign, exponent sign and some of the
232 * exponent. These have to be ordered (-ve value, decreasing exponent),
233 * zero, (+ve value, increasing exponent).
235 * The first byte is 0x80 for zero, 0xc0 for +ve with exponent 0.
239 * The largest 4 exponent values are used to hold a byte count of the
240 * number of following bytes that contain 8 exponent bits per byte,
254 int exponent = -1; local in function:number
270 /* Ensure we have enough space for the exponent */
    [all...]
  /src/lib/libc/arch/mips/gen/
ldexp.S 67 sll t1, v1, 1 # get x exponent
71 addu t1, t1, a2 # scale exponent
124 subu t1, t1, t9 # adjust exponent
125 addu t1, t1, a2 # scale exponent
144 sll t1, t1, 31 - 11 # reposition exponent
154 sll t2, v1, 31 - 20 # clear exponent, extract fraction
159 sll ta0, t2, t1 # shift right t2,t3 based on exponent
180 mtc1 zero, $f1 # exponent and upper fraction
189 mtc1 ta0, $f1 # exponent and upper fraction
  /src/sys/external/bsd/drm2/dist/drm/amd/powerplay/hwmgr/
ppevvmath.h 69 static int uPow(int base, int exponent); /* Returns base^exponent an INT */
75 static fInt fExponential(fInt exponent); /* Can be used to calculate e^exponent */
110 static fInt fExponential(fInt exponent) /*Can be used to calculate e^exponent*/
125 if (GreaterThan(fZERO, exponent)) {
126 exponent = fNegate(exponent);
130 while (GreaterThan(exponent, lower_bound))
    [all...]
  /src/lib/libm/arch/vax/
n_support.S 58 bicw3 $0x807f,%r0,%r2 # mask off the exponent of x
68 bicw3 $0x807f,%r0,%r2 # mask off the exponent of x
90 bicl3 $0xffff807f,4(%ap),%r0 # mask off the exponent of x
92 ashl $-7,%r0,%r0 # get the bias exponent
93 subl2 $129,%r0 # get the unbias exponent
191 movw $0x1c80,-4(%fp) #nx := 57 (exponent field)
204 bicw3 $0x807f,%r0,%r8 #xexp= exponent of x
205 bicw3 $0x807f,%r2,%r9 #yexp= exponent fo y
207 subw2 $0x0c80,%r8 #k=xexp-yexp-25(exponent bit field)
240 bicw3 $0x807f,%r0,%r8 #%r8=exponent of
    [all...]
n_sqrt.S 61 dsqrt2: bicw3 $0x807f,%r0,%r2 # check exponent of input
62 jeql noexp # biased exponent is zero -> 0.0 or reserved
n_cabs.S 125 bicw3 $0x7f,%r0,%r6 # %r6 = exponent(x) + bias(129)
127 subw2 $0x4780,%r6 # %r6 = exponent(x) - 14
  /src/sys/compat/linux32/arch/amd64/
linux32_signal.h 129 unsigned short exponent; member in struct:linux32_libc_fpreg
  /src/sys/arch/mips/mips/
fp.S 59 #define WEXP_MAX 30 /* maximum unbiased exponent for int */
60 #define WEXP_MIN -1 /* minimum unbiased exponent for int */
900 subu ta1, ta1, SEXP_BIAS # unbias FT exponent
916 subu t1, t1, SEXP_BIAS # unbias FS exponent
921 subu t1, t1, SEXP_BIAS # unbias FS exponent
923 subu ta1, ta1, SEXP_BIAS # unbias FT exponent
1022 subu ta1, ta1, DEXP_BIAS # unbias FT exponent
1041 subu t1, t1, DEXP_BIAS # unbias FS exponent
1046 subu t1, t1, DEXP_BIAS # unbias FS exponent
1048 subu ta1, ta1, DEXP_BIAS # unbias FT exponent
    [all...]
  /src/lib/libc/resolv/
res_debug.c 777 int mantissa, exponent; local in function:precsize_ntoa
780 exponent = (int)((prec >> 0) & 0x0f) % 10;
782 val = mantissa * poweroften[exponent];
794 int exponent; local in function:precsize_aton
813 for (exponent = 0; exponent < 9; exponent++)
814 if (cmval < poweroften[exponent+1])
817 mantissa = cmval / poweroften[exponent];
821 retval = (mantissa << 4) | exponent;
    [all...]
  /src/lib/libc/arch/sparc64/gen/
modf.S 60 * have 52 bits of mantissa, 11 bits of exponent, and one bit of sign,
61 * with the sign occupying bit 31 of word 0, and the exponent bits 30:20
89 .word 0x43300000 ! sign = 0, exponent = 52 + 1023, mantissa = 0
  /src/sys/compat/linux/arch/i386/
linux_machdep.h 105 unsigned short exponent; member in struct:linux_libc_fpreg
  /src/sys/arch/m68k/060sp/dist/
pfpsp.s 424 set SGL_LO, 0x3f81 # min sgl prec exponent
425 set SGL_HI, 0x407e # max sgl prec exponent
426 set DBL_LO, 0x3c01 # min dbl prec exponent
427 set DBL_HI, 0x43fe # max dbl prec exponent
428 set EXT_LO, 0x0 # min ext prec exponent
429 set EXT_HI, 0x7ffe # max ext prec exponent
525 set sgl_thresh, 0x3f81 # minimum sgl exponent
526 set dbl_thresh, 0x3c01 # minimum dbl exponent
1449 mov.w LOCAL_EX(%a0),%d0 # fetch src exponent
1464 addi.w &0x3f81,%d0 # adjust new exponent
    [all...]

Completed in 21 milliseconds

1 2