/freebsd/lib/msun/src/ |
H A D | s_cospif.c | 41 volatile static const float vzero = 0; 50 ix = ix & 0x7fffffff; in cospif() 53 if (ix < 0x3f800000) { /* |x| < 1 */ in cospif() 54 if (ix < 0x3e800000) { /* |x| < 0.25 */ in cospif() 55 if (ix < 0x38800000) { /* |x| < 0x1p-14 */ in cospif() 56 /* Raise inexact iff != 0. */ in cospif() 57 if ((int)ax == 0) in cospif() 63 if (ix < 0x3f000000) /* |x| < 0.5 */ in cospif() 65 else if (ix < 0x3f400000) { /* |x| < 0.75 */ in cospif() 66 if (ix == 0x3f000000) in cospif() [all …]
|
H A D | s_tanpif.c | 38 pi_hi = 3.14160156e+00F, /* 0x40491000 */ 39 pi_lo = -8.90890988e-06F; /* 0xb715777a */ 56 volatile static const float vzero = 0; 65 ix = hx & 0x7fffffff; in tanpif() 68 if (ix < 0x3f800000) { /* |x| < 1 */ in tanpif() 69 if (ix < 0x3f000000) { /* |x| < 0.5 */ in tanpif() 70 if (ix < 0x38800000) { /* |x| < 0x1p-14 */ in tanpif() 71 if (ix == 0) in tanpif() 73 SET_FLOAT_WORD(hi, hx & 0xffff0000); in tanpif() 74 hi *= 0x1p23F; in tanpif() [all …]
|
H A D | s_sinpif.c | 43 pi_hi = 3.14160156e+00F, /* 0x40491000 */ 44 pi_lo = -8.90890988e-06F; /* 0xb715777a */ 46 volatile static const float vzero = 0; 55 ix = hx & 0x7fffffff; in sinpif() 58 if (ix < 0x3f800000) { /* |x| < 1 */ in sinpif() 59 if (ix < 0x3e800000) { /* |x| < 0.25 */ in sinpif() 60 if (ix < 0x38800000) { /* |x| < 0x1p-14 */ in sinpif() 61 if (x == 0) in sinpif() 63 SET_FLOAT_WORD(hi, hx & 0xffff0000); in sinpif() 64 hi *= 0x1p23F; in sinpif() [all …]
|
H A D | s_frexpf.c | 20 two25 = 3.3554432000e+07; /* 0x4c000000 */ 27 ix = 0x7fffffff&hx; in frexpf() 28 *eptr = 0; in frexpf() 29 if(ix>=0x7f800000||(ix==0)) return x; /* 0,inf,nan */ in frexpf() 30 if (ix<0x00800000) { /* subnormal */ in frexpf() 33 ix = hx&0x7fffffff; in frexpf() 37 hx = (hx&0x807fffff)|0x3f000000; in frexpf()
|
H A D | e_atanhf.c | 29 ix = hx&0x7fffffff; in atanhf() 30 if (ix>0x3f800000) /* |x|>1 */ in atanhf() 32 if(ix==0x3f800000) in atanhf() 34 if(ix<0x31800000&&(huge+x)>zero) return x; /* x<2**-28 */ in atanhf() 36 if(ix<0x3f000000) { /* x < 0.5 */ in atanhf() 41 if(hx>=0) return t; else return -t; in atanhf()
|
H A D | e_asinf.c | 20 one = 1.0000000000e+00, /* 0x3F800000 */ 25 * 0x1p-12f <= x <= 0.5f. The maximum error satisfies log2(e) < -30.084. 28 pS0 = 1.66666672e-01f, /* 0x3e2aaaab */ 29 pS1 = -1.19510300e-01f, /* 0xbdf4c1d1 */ 30 pS2 = 5.47002675e-03f, /* 0x3bb33de9 */ 31 qS1 = -1.16706085e+00f, /* 0xbf956240 */ 32 qS2 = 2.90115148e-01f; /* 0x3e9489f9 */ 44 ix = hx&0x7fffffff; in asinf() 45 if(ix>=0x3f800000) { /* |x| >= 1 */ in asinf() 46 if(ix==0x3f800000) /* |x| == 1 */ in asinf() [all …]
|
H A D | e_sqrtf.c | 32 int32_t sign = (int)0x80000000; in sqrtf() 39 if((ix&0x7f800000)==0x7f800000) { in sqrtf() 44 if(ix<=0) { in sqrtf() 45 if((ix&(~sign))==0) return x;/* sqrt(+-0) = +-0 */ in sqrtf() 46 else if(ix<0) in sqrtf() 51 if(m==0) { /* subnormal x */ in sqrtf() 52 for(i=0;(ix&0x00800000)==0;i++) ix<<=1; in sqrtf() 56 ix = (ix&0x007fffff)|0x00800000; in sqrtf() 63 q = s = 0; /* q = sqrt(x) */ in sqrtf() 64 r = 0x01000000; /* r = moving bit from right to left */ in sqrtf() [all …]
|
H A D | e_acosf.c | 20 one = 1.0000000000e+00, /* 0x3F800000 */ 21 pi = 3.1415925026e+00, /* 0x40490fda */ 22 pio2_hi = 1.5707962513e+00; /* 0x3fc90fda */ 24 pio2_lo = 7.5497894159e-08; /* 0x33a22168 */ 28 * 0x1p-12f <= x <= 0.5f. The maximum error satisfies log2(e) < -30.084. 31 pS0 = 1.66666672e-01f, /* 0x3e2aaaab */ 32 pS1 = -1.19510300e-01f, /* 0xbdf4c1d1 */ 33 pS2 = 5.47002675e-03f, /* 0x3bb33de9 */ 34 qS1 = -1.16706085e+00f, /* 0xbf956240 */ 35 qS2 = 2.90115148e-01f; /* 0x3e9489f9 */ [all …]
|
H A D | e_powf.c | 21 dp_h[] = { 0.0, 5.84960938e-01,}, /* 0x3f15c000 */ 22 dp_l[] = { 0.0, 1.56322085e-06,}, /* 0x35d1cfdc */ 26 thrd = 3.33333343e-01, /* 0x3eaaaaab */ 29 two24 = 16777216.0, /* 0x4b800000 */ 33 L1 = 6.0000002384e-01, /* 0x3f19999a */ 34 L2 = 4.2857143283e-01, /* 0x3edb6db7 */ 35 L3 = 3.3333334327e-01, /* 0x3eaaaaab */ 36 L4 = 2.7272811532e-01, /* 0x3e8ba305 */ 37 L5 = 2.3066075146e-01, /* 0x3e6c3255 */ 38 L6 = 2.0697501302e-01, /* 0x3e53f14 [all...] |
/freebsd/sys/contrib/device-tree/src/arm/broadcom/ |
H A D | bcm2837.dtsi | 8 ranges = <0x7e000000 0x3f000000 0x1000000>, 9 <0x40000000 0x40000000 0x00001000>; 10 dma-ranges = <0xc0000000 0x00000000 0x3f000000>; 14 reg = <0x40000000 0x100>; 30 interrupts = <0 IRQ_TYPE_LEVEL_HIGH>, // PHYS_SECURE_PPI 39 #size-cells = <0>; 49 cpu0: cpu@0 { 52 reg = <0>; 54 cpu-release-addr = <0x0 0x000000d8>; 55 d-cache-size = <0x8000>; [all …]
|
H A D | bcm2836.dtsi | 9 ranges = <0x7e000000 0x3f000000 0x1000000>, 10 <0x40000000 0x40000000 0x00001000>; 11 dma-ranges = <0xc0000000 0x00000000 0x3f000000>; 15 reg = <0x40000000 0x100>; 31 interrupts = <0 IRQ_TYPE_LEVEL_HIGH>, // PHYS_SECURE_PPI 40 #size-cells = <0>; 51 v7_cpu0: cpu@0 { 54 reg = <0xf00>; 56 d-cache-size = <0x8000>; 59 i-cache-size = <0x8000>; [all …]
|
/freebsd/sys/contrib/dev/ath/ath_hal/ar9300/ |
H A D | ar9300desc.h | 94 #define AR_desc_len 0x000000ff 95 #define AR_rx_priority 0x00000100 96 #define AR_tx_qcu_num 0x00000f00 98 #define AR_ctrl_stat 0x00004000 100 #define AR_tx_rx_desc 0x00008000 102 #define AR_desc_id 0xffff0000 113 #define AR_buf_len 0x0fff0000 117 #define AR_tx_desc_id 0xffff0000 119 #define AR_tx_ptr_chk_sum 0x0000ffff 122 #define AR_frame_len 0x00000fff [all …]
|
/freebsd/contrib/arm-optimized-routines/math/test/rtest/ |
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/contrib/arm-optimized-routines/math/aarch64/sve/ |
H A D | sinhf.c | 19 .halff = 0x3f000000, 20 /* 0x1.61814ep+6, above which expm1f helper overflows. */ 21 .large_bound = 0x42b0c0a7, 33 _ZGVsMxv_sinhf (0x1.e34a9ep-4) got 0x1.e469ep-4 34 want 0x1.e469e4p-4. */ 62 TEST_SYM_INTERVAL (SV_NAME_F1 (sinh), 0, 0x1.6a09e8p-32, 1000) 63 TEST_SYM_INTERVAL (SV_NAME_F1 (sinh), 0x1.6a09e8p-32, 0x42b0c0a7, 100000) 64 TEST_SYM_INTERVAL (SV_NAME_F1 (sinh), 0x42b0c0a7, inf, 1000)
|
H A D | atanhf.c | 14 #define One (0x3f800000) 15 #define Half (0x3f000000) 28 _ZGVsMxv_atanhf(0x1.f1583p-5) got 0x1.f1f4fap-5 29 want 0x1.f1f4f6p-5. */ 54 TEST_SYM_INTERVAL (SV_NAME_F1 (atanh), 0, 0x1p-12, 1000) 55 TEST_SYM_INTERVAL (SV_NAME_F1 (atanh), 0x1p-12, 1, 20000) 58 -c 0 specially to ensure fp exceptions are triggered correctly (choice of 60 TEST_CONTROL_VALUE (SV_NAME_F1 (atanh), 0)
|
/freebsd/sys/arm/broadcom/bcm2835/ |
H A D | bcm2835_vcbus.h | 36 #define BCM2835_VCBUS_SDRAM_CACHED 0x40000000 37 #define BCM2835_VCBUS_SDRAM_UNCACHED 0xC0000000 39 #define BCM2835_ARM_IO_BASE 0x20000000 40 #define BCM2835_VCBUS_IO_BASE 0x7E000000 43 #define BCM2836_ARM_IO_BASE 0x3f000000 51 #define BCM2838_ARM_IO_BASE 0xfe000000 65 #define BCM2838_PERIPH_MAXADDR 0x3fffffff 67 #define BCM28XX_ARM_IO_SIZE 0x01000000
|
H A D | bcm2835_machdep.c | 81 if (len > 0) in bcm2835_late_init() 82 board_set_serial(((uint64_t)cells[0]) << 32 | cells[1]); in bcm2835_late_init() 86 if (len > 0) in bcm2835_late_init() 87 board_set_revision(cells[0]); in bcm2835_late_init() 97 devmap_add_entry(0x3f000000, 0x01000000); in bcm2836_devmap_init() 98 return (0); in bcm2836_devmap_init() 122 FDT_PLATFORM_DEF2(bcm2836, bcm2836_legacy, "bcm2836 (legacy)", 0, "brcm,bcm2709", 100); 123 FDT_PLATFORM_DEF2(bcm2836, bcm2836, "bcm2836", 0, "brcm,bcm2836", 100); 124 FDT_PLATFORM_DEF2(bcm2836, bcm2837, "bcm2837", 0, "brcm,bcm2837", 100);
|
/freebsd/sys/contrib/device-tree/src/arm/marvell/ |
H A D | armada-398-db.dts | 23 reg = <0x00000000 0x80000000>; /* 2 GB */ 27 ranges = <MBUS_ID(0xf0, 0x01) 0 0xf1000000 0x100000 28 MBUS_ID(0x01, 0x1d) 0 0xfff00000 0x100000>; 32 pinctrl-0 = <&i2c0_pins>; 39 pinctrl-0 = <&uart0_pins>; 45 pinctrl-0 = <&uart1_pins>; 62 pcie@1,0 { 66 pcie@2,0 { 70 pcie@3,0 { 79 pinctrl-0 = <&spi1_pins>; [all …]
|
H A D | armada-390-db.dts | 24 reg = <0x00000000 0x80000000>; /* 2 GB */ 28 ranges = <MBUS_ID(0xf0, 0x01) 0 0xf1000000 0x100000 29 MBUS_ID(0x01, 0x1d) 0 0xfff00000 0x100000>; 38 reg = <0x50>; 62 pcie@1,0 { 67 pcie@2,0 { 72 pcie@3,0 { 81 pinctrl-0 = <&spi1_pins>; 84 flash@0 { 89 reg = <0>; /* Chip select 0 */ [all …]
|
H A D | armada-375-db.dts | 24 memory@0 { 26 reg = <0x00000000 0x40000000>; /* 1 GB */ 30 ranges = <MBUS_ID(0xf0, 0x01) 0 0xf1000000 0x100000 31 MBUS_ID(0x01, 0x1d) 0 0xfff00000 0x100000 32 MBUS_ID(0x09, 0x09) 0 0xf1100000 0x10000 33 MBUS_ID(0x09, 0x05) 0 0xf1110000 0x10000>; 46 /* Port 0, Lane 0 */ 51 /* Port 1, Lane 0 */ 57 pinctrl-0 = <&spi0_pins>; 67 flash@0 { [all …]
|
/freebsd/contrib/arm-optimized-routines/math/aarch64/advsimd/ |
H A D | atanhf.c | 22 .one = V4 (0x3f800000), 24 /* 0x1p-12, below which atanhf(x) rounds to x. */ 25 .tiny_bound = V4 (0x39800000), 29 #define AbsMask v_u32 (0x7fffffff) 30 #define Half v_u32 (0x3f000000) 42 _ZGVnN4v_atanhf(0x1.f43d7p-5) got 0x1.f4dcfep-5 43 want 0x1.f4dcf8p-5. */ 55 /* Side-step special cases by setting those lanes to 0, which will trigger no in V_NAME_F1() 84 TEST_SYM_INTERVAL (V_NAME_F1 (atanh), 0, 0x1p-12, 500) 85 TEST_SYM_INTERVAL (V_NAME_F1 (atanh), 0x1p-12, 1, 200000) [all …]
|
H A D | hypotf.c | 17 .tiny_bound = V4 (0x20000000), /* asuint (0x1p-63). */ 18 .thres = V4 (0x3f000000), /* asuint (0x1p63) - tiny_bound. */ 26 .tiny_bound = V4 (0x0C800000), /* asuint (0x1p-102). */ 27 .thres = V8 (0x7300), /* asuint (inf) - tiny_bound. */ 40 _ZGVnN4vv_hypotf (0x1.6a419cp-13, 0x1.82a852p-22) got 0x1.6a41d2p-13 41 want 0x1.6a41dp-13. */ 93 TEST_INTERVAL2 (V_NAME_F2 (hypot), 0, inf, 0, inf, 10000) 94 TEST_INTERVAL2 (V_NAME_F2 (hypot), 0, inf, -0, -inf, 10000) 95 TEST_INTERVAL2 (V_NAME_F2 (hypot), -0, -inf, 0, inf, 10000) 96 TEST_INTERVAL2 (V_NAME_F2 (hypot), -0, -inf, -0, -inf, 10000)
|
/freebsd/contrib/llvm-project/compiler-rt/lib/builtins/hexagon/ |
H A D | sfsqrt_opt.S | 3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 37 HALF = ##0x3f000000 // 0.5 38 r1:0 = combine(#0,#0) // clear S/H
|
/freebsd/contrib/arm-optimized-routines/math/aarch64/experimental/ |
H A D | sinhf_2u3.c | 13 #define AbsMask 0x7fffffff 14 #define Half 0x3f000000 15 /* 0x1.62e43p+6, 2^7*ln2, minimum value for which expm1f overflows. */ 16 #define Expm1OFlowLimit 0x42b17218 17 /* 0x1.65a9fap+6, minimum positive value for which sinhf should overflow. */ 18 #define OFlowLimit 0x42b2d4fd 23 sinhf(0x1.e34a9ep-4) got 0x1.e469ep-4 want 0x1.e469e4p-4. */ 36 if (iax >= 0x7fc00001 || iax == 0x7f800000) in sinhf() 38 if (iax >= 0x7f800000) in sinhf() 49 to compute sinh(x) ~= (exp(|x| / 2)) ^ 2 / 2 for x > 0 in sinhf() [all …]
|
H A D | atanhf_3u1.c | 13 #define AbsMask 0x7fffffff 14 #define Half 0x3f000000 15 #define One 0x3f800000 16 #define Four 0x40800000 17 #define Ln2 0x1.62e43p-1f 18 /* asuint(0x1p-12), below which atanhf(x) rounds to x. */ 19 #define TinyBound 0x39800000 27 float p_12 = fmaf (m, C (1), C (0)); in eval_poly() 49 int k = (asuint (m) - 0x3f400000) & 0xff800000; in log1pf_inline() 53 float scale_back = (float) k * 0x1.0p-23f; in log1pf_inline() [all …]
|