| /freebsd/lib/msun/src/ |
| H A D | s_sinpi.c | 34 * threshold is |x| < 0x1pN with N = -(P/2+M). P is the precision of the 43 * 3. For 1 <= |x| < 0x1p(P-1), argument reduction is required where 45 * 0 <= r < 1. With the given domain, a simplified inline floor(x) 56 * 4. For |x| >= 0x1p(P-1), |x| is integral and sinpi(x) = copysign(0,x). 60 * sinpi(+-0) = +-0 61 * sinpi(+-n) = +-0, for positive integers n. 71 pi_hi = 3.1415926814079285e+00, /* 0x400921fb 0x58000000 */ 72 pi_lo =-2.7818135228334233e-08; /* 0xbe5dde97 0x3dcb3b3a */ 77 volatile static const double vzero = 0; 86 ix = hx & 0x7fffffff; in sinpi() [all …]
|
| H A D | s_cospi.c | 33 * threshold is used. The threshold is |x| < 0x1pN with N = -(P/2+M). 40 * 3. For 1 <= |x| < 0x1p(P-1), argument reduction is required where 42 * 0 <= r < 1. With the given domain, a simplified inline floor(x) 53 * 4. For |x| >= 0x1p(P-1), |x| is integral and cospi(x) = 1. 57 * cospi(+-0) = 1. 58 * cospi(n.5) = 0 for n an integer. 68 pi_hi = 3.1415926814079285e+00, /* 0x400921fb 0x58000000 */ 69 pi_lo =-2.7818135228334233e-08; /* 0xbe5dde97 0x3dcb3b3a */ 74 volatile static const double vzero = 0; 83 ix = hx & 0x7fffffff; in cospi() [all …]
|
| H A D | s_tanpi.c | 34 * threshold is |x| < 0x1pN with N = -(P/2+M). P is the precision of the 43 * 3. For 1 <= |x| < 0x1p(P-1), argument reduction is required where 45 * 0 <= r < 1. With the given domain, a simplified inline floor(x) 54 * 4. For |x| >= 0x1p(P-1), |x| is integral and tanpi(x) = copysign(0,x). 58 * tanpi(+-0) = +-0 59 * tanpi(n) = +0 for positive even and negative odd integer n. 60 * tanpi(n) = -0 for positive odd and negative even integer n. 75 pi_hi = 3.1415926814079285e+00, /* 0x400921fb 0x58000000 */ 76 pi_lo = -2.7818135228334233e-08; /* 0xbe5dde97 0x3dcb3b3a */ 108 volatile static const double vzero = 0; [all …]
|
| H A D | s_frexp.c | 19 * with *exp=0. 28 two54 = 1.80143985094819840000e+16; /* 0x43500000, 0x00000000 */ 35 ix = 0x7fffffff&hx; in frexp() 36 *eptr = 0; in frexp() 37 if(ix>=0x7ff00000||((ix|lx)==0)) return x; /* 0,inf,nan */ in frexp() 38 if (ix<0x00100000) { /* subnormal */ in frexp() 41 ix = hx&0x7fffffff; in frexp() 45 hx = (hx&0x800fffff)|0x3fe00000; in frexp()
|
| H A D | e_atanh.c | 47 ix = hx&0x7fffffff; in atanh() 48 if ((ix|((lx|(-lx))>>31))>0x3ff00000) /* |x|>1 */ in atanh() 50 if(ix==0x3ff00000) in atanh() 52 if(ix<0x3e300000&&(huge+x)>zero) return x; /* x<2**-28 */ in atanh() 54 if(ix<0x3fe00000) { /* x < 0.5 */ in atanh() 59 if(hx>=0) return t; else return -t; in atanh()
|
| H A D | k_sin.c | 14 * kernel sin function on ~[-pi/4, pi/4] (except on -0), pi/4 ~ 0.7854 17 * Input iy indicates whether y is 0. (if iy=0, y assume to be 0). 21 * 2. Callers must return sin(-0) = -0 without calling here since our 22 * odd polynomial is not evaluated in a way that preserves -0. 25 * [0,pi/4] 47 half = 5.00000000000000000000e-01, /* 0x3FE00000, 0x00000000 */ 48 S1 = -1.66666666666666324348e-01, /* 0xBFC55555, 0x55555549 */ 49 S2 = 8.33333333332248946124e-03, /* 0x3F811111, 0x1110F8A6 */ 50 S3 = -1.98412698298579493134e-04, /* 0xBF2A01A0, 0x19C161D5 */ 51 S4 = 2.75573137070700676789e-06, /* 0x3EC71DE3, 0x57B1FE7D */ [all …]
|
| H A D | e_pow.c | 23 * 1. (anything) ** 0 is 1 26 * 4. NAN ** (anything except 0) is NAN 28 * 6. +-(|x| > 1) ** -INF is +0 29 * 7. +-(|x| < 1) ** +INF is +0 32 * 10. +0 ** (+anything except 0, NAN) is +0 33 * 11. -0 ** (+anything except 0, NAN, odd integer) is +0 [all...] |
| H A D | e_asin.c | 16 * we approximate asin(x) on [0,0.5] by 49 one = 1.00000000000000000000e+00, /* 0x3FF00000, 0x00000000 */ 51 pio2_hi = 1.57079632679489655800e+00, /* 0x3FF921FB, 0x54442D18 */ 52 pio2_lo = 6.12323399573676603587e-17, /* 0x3C91A626, 0x33145C07 */ 53 pio4_hi = 7.85398163397448278999e-01, /* 0x3FE921FB, 0x54442D18 */ 55 pS0 = 1.66666666666666657415e-01, /* 0x3FC55555, 0x55555555 */ 56 pS1 = -3.25565818622400915405e-01, /* 0xBFD4D612, 0x03EB6F7D */ 57 pS2 = 2.01212532134862925881e-01, /* 0x3FC9C155, 0x0E884455 */ 58 pS3 = -4.00555345006794114027e-02, /* 0xBFA48228, 0xB5688F3B */ 59 pS4 = 7.91534994289814532176e-04, /* 0x3F49EFE0, 0x7501B288 */ [all …]
|
| H A D | e_acos.c | 43 one= 1.00000000000000000000e+00, /* 0x3FF00000, 0x00000000 */ 44 pi = 3.14159265358979311600e+00, /* 0x400921FB, 0x54442D18 */ 45 pio2_hi = 1.57079632679489655800e+00; /* 0x3FF921FB, 0x54442D18 */ 47 pio2_lo = 6.12323399573676603587e-17; /* 0x3C91A626, 0x33145C07 */ 49 pS0 = 1.66666666666666657415e-01, /* 0x3FC55555, 0x55555555 */ 50 pS1 = -3.25565818622400915405e-01, /* 0xBFD4D612, 0x03EB6F7D */ 51 pS2 = 2.01212532134862925881e-01, /* 0x3FC9C155, 0x0E884455 */ 52 pS3 = -4.00555345006794114027e-02, /* 0xBFA48228, 0xB5688F3B */ 53 pS4 = 7.91534994289814532176e-04, /* 0x3F49EFE0, 0x7501B288 */ 54 pS5 = 3.47933107596021167570e-05, /* 0x3F023DE1, 0x0DFDF709 */ [all …]
|
| H A D | s_log1p.c | 19 * Note. If k=0, then f=x is exact. However, if k!=0, then f 30 * We use a special Reme algorithm on [0,0.1716] to generate 104 ax = hx&0x7fffffff; in log1p() 107 if (hx < 0x3FDA827A) { /* 1+x < sqrt(2)+ */ in log1p() 108 if(ax>=0x3ff00000) { /* x <= -1.0 */ in log1p() 112 if(ax<0x3e200000) { /* |x| < 2**-29 */ in log1p() 114 &&ax<0x3c900000) /* |x| < 2**-54 */ in log1p() 119 if(hx>0||hx<=((int32_t)0xbfd2bec4)) { in log1p() 120 k=0;f=x;hu=1;} /* sqrt(2)/2- <= 1+x < sqrt(2)+ */ in log1p() 122 if (hx >= 0x7ff00000) return x+x; in log1p() [all …]
|
| H A D | e_lgamma_r.c | 17 * 1. Argument Reduction for 0 < x <= 8 18 * Since gamma(1+s)=s*gamma(s), for x in [0,8], we may 63 * since G(-x) is positive, sign(G(x)) = sign(sin(pi*x)) for x<0 64 * Hence, for x<0, signgam = sign(sin(pi*x)) and 72 * lgamma(1) = lgamma(2) = 0 74 * lgamma(0) = lgamma(neg.integer) = inf and raise divide-by-zero 84 static const volatile double vzero = 0; 88 half= 5.00000000000000000000e-01, /* 0x3FE00000, 0x00000000 */ 89 one = 1.00000000000000000000e+00, /* 0x3FF00000, 0x00000000 */ 90 pi = 3.14159265358979311600e+00, /* 0x400921FB, 0x54442D18 */ [all …]
|
| H A D | e_sqrt.c | 38 * i 0 86 * sqrt(+-0) = +-0 ... exact 101 int32_t sign = (int)0x80000000; in sqrt() 108 if((ix0&0x7ff00000)==0x7ff00000) { in sqrt() 113 if(ix0<=0) { in sqrt() 114 if(((ix0&(~sign))|ix1)==0) return x;/* sqrt(+-0) = +-0 */ in sqrt() 115 else if(ix0<0) in sqrt() 120 if(m==0) { /* subnormal x */ in sqrt() 121 while(ix0==0) { in sqrt() 125 for(i=0;(ix0&0x00100000)==0;i++) ix0<<=1; in sqrt() [all …]
|
| /freebsd/sys/contrib/device-tree/Bindings/mfd/ |
| H A D | apple,smc.yaml | 60 reg = <0x2 0x3e400000 0x0 0x4000>, 61 <0x2 0x3fe00000 0x0 0x100000>;
|
| /freebsd/sys/contrib/device-tree/src/arm64/intel/ |
| H A D | socfpga_agilex_socdk_nand.dts | 43 reg = <0 0x80000000 0 0>; 60 #size-cells = <0>; 62 phy0: ethernet-phy@0 { 65 txd0-skew-ps = <0>; /* -420ps */ 66 txd1-skew-ps = <0>; /* -420ps */ 67 txd2-skew-ps = <0>; /* -420ps */ 68 txd3-skew-ps = <0>; /* [all...] |
| /freebsd/sys/contrib/device-tree/src/arm64/altera/ |
| H A D | socfpga_stratix10_socdk_nand.dts | 44 reg = <0 0x80000000 0 0>; 54 soc@0 { 59 reg = <0xff8c8c00 0x100>; 81 #size-cells = <0>; 83 phy0: ethernet-phy@0 { 86 txd0-skew-ps = <0>; /* -420ps */ 87 txd1-skew-ps = <0>; /* -420ps */ 88 txd2-skew-ps = <0>; /* -420ps */ 89 txd3-skew-ps = <0>; /* -420ps */ 90 rxd0-skew-ps = <420>; /* 0ps */ [all …]
|
| /freebsd/contrib/arm-optimized-routines/math/ |
| H A D | erf.c | 14 #define TwoOverSqrtPiMinusOne 0x1.06eba8214db69p-3 15 #define C 0x1.b0ac16p-1 35 Highest measured error is 1.01 ULPs at 0x1.39956ac43382fp+0. */ 41 uint32_t ia = ix & 0x7fffffff; in erf() 45 if (ia < 0x3feb0000) in erf() 48 if (ia < 0x3e300000) in erf() 50 if (ia < 0x00800000) in erf() 60 if (ia < 0x3fe00000) in erf() 62 double r1 = fma (x2, PA[1], PA[0]); in erf() 79 r1n = fma (x2, NA[1], NA[0]); in erf() [all …]
|
| /freebsd/contrib/arm-optimized-routines/math/test/rtest/ |
| H A D | semi.c | 13 int sign = in[0] & 0x80000000; in test_rint() 16 int ex = (in[0] >> 20) & 0x7FF; /* exponent */ in test_rint() 19 if ((ex > 0x3ff + 52 - 1) || /* things this big can't be fractional */ in test_rint() 20 ((in[0] & 0x7FFFFFFF) == 0 && in[1] == 0)) { /* zero */ in test_rint() 22 out[0] = in[0]; in test_rint() 28 * Special case: ex < 0x3ff, ie our number is in (0,1). Return in test_rint() 29 * 1 or 0 according to roundup. in test_rint() 31 if (ex < 0x3ff) { in test_rint() 32 out[0] = sign | (roundup ? 0x3FF00000 : 0); in test_rint() 33 out[1] = 0; in test_rint() [all …]
|
| H A D | dotest.c | 21 #if MPFR_VERSION < MPFR_VERSION_NUM(4, 2, 0) 102 uint32 exp = (hl >> 52) & 0x7ff; in set_mpfr_d() 105 if (exp == 0x7ff) { in set_mpfr_d() 106 if (mantissa == 0) in set_mpfr_d() 110 } else if (exp == 0 && mantissa == 0) { in set_mpfr_d() 111 mpfr_set_ui(x, 0, GMP_RNDN); in set_mpfr_d() 112 mpfr_setsign(x, x, sign < 0, GMP_RNDN); in set_mpfr_d() 114 if (exp != 0) in set_mpfr_d() 118 mpfr_set_sj_2exp(x, mantissa * sign, (int)exp - 0x3ff - 52, GMP_RNDN); in set_mpfr_d() 123 uint32 exp = (f >> 23) & 0xff; in set_mpfr_f() [all …]
|
| /freebsd/sys/contrib/dev/ath/ath_hal/ar9300/ |
| H A D | ar9300_reset.c | 43 #if 0 83 volatile u_int32_t *usb_ctrl_r1 = (u_int32_t *) 0xb8116c84; \ 84 volatile u_int32_t *usb_ctrl_r2 = (u_int32_t *) 0xb8116c88; \ 85 *usb_ctrl_r1 = (*usb_ctrl_r1 & 0xffefffff); \ 86 *usb_ctrl_r2 = (*usb_ctrl_r2 & 0xfc1fffff) | (1 << 21) | (3 << 22); \ 88 } while (0) 111 (1 << 21) | (0xf << 22), in ar9300_disable_pll_lock_detect() 112 (1 << 21) | (0x3 << 22)); in ar9300_disable_pll_lock_detect() 178 ath_hal_getcapability(ah, HAL_CAP_MFP, 0, &mfpcap); in ar9300_init_mfp() 197 * Cisco spec defined bits 0-3 as mask in ar9300_init_mfp() [all …]
|
| /freebsd/sys/dev/iwm/ |
| H A D | if_iwmreg.h | 94 #define IWM_CSR_HW_IF_CONFIG_REG (0x000) /* hardware interface config */ 95 #define IWM_CSR_INT_COALESCING (0x004) /* accum ints, 32-usec units */ 96 #define IWM_CSR_INT (0x008) /* host interrupt status/ack */ 97 #define IWM_CSR_INT_MASK (0x00c) /* host interrupt enable */ 98 #define IWM_CSR_FH_INT_STATUS (0x010) /* busmaster int status/ack*/ 99 #define IWM_CSR_GPIO_IN (0x018) /* read external chip pins */ 100 #define IWM_CSR_RESET (0x020) /* busmaster enable, NMI, etc*/ 101 #define IWM_CSR_GP_CNTRL (0x024) 104 #define IWM_CSR_INT_PERIODIC_REG (0x005) 111 * 3-2: Revision step: 0 [all...] |
| /freebsd/sys/dev/iwx/ |
| H A D | if_iwxreg.h | 68 #define IWX_CSR_CTXT_INFO_BA 0x40 95 IWX_CTXT_INFO_AUTO_FUNC_INIT = (1 << 0), 101 IWX_CTXT_INFO_RB_SIZE_1K = 0x1, 102 IWX_CTXT_INFO_RB_SIZE_2K = 0x2, 103 IWX_CTXT_INFO_RB_SIZE_4K = 0x4, 104 IWX_CTXT_INFO_RB_SIZE_8K = 0x8, 105 IWX_CTXT_INFO_RB_SIZE_12K = 0x9, 106 IWX_CTXT_INFO_RB_SIZE_16K = 0xa, 107 IWX_CTXT_INFO_RB_SIZE_20K = 0xb, 108 IWX_CTXT_INFO_RB_SIZE_24K = 0xc, [all …]
|
| /freebsd/tools/test/iconv/ref/ |
| H A D | UTF-32BE-rev | 1 0x00 = 0x00000000 2 0x01 = 0x01000000 3 0x02 = 0x02000000 4 0x03 = 0x03000000 5 0x04 = 0x04000000 6 0x05 = 0x05000000 7 0x06 = 0x06000000 8 0x07 = 0x07000000 9 0x08 = 0x08000000 10 0x09 = 0x09000000 [all …]
|