Home
last modified time | relevance | path

Searched full:exponent (Results 1 – 25 of 31) sorted by relevance

12

/Zephyr-latest/lib/libc/minimal/source/math/
Dsqrt.c26 int64_t exponent; in sqrt() local
41 * we can do this by dividing the exponent part of the float by 2 in sqrt()
44 exponent = ((p_square.i & EXP_MASK64) >> 52) - 1023; in sqrt()
45 if (exponent == 0x7FF - 1023) { in sqrt()
49 exponent /= 2; in sqrt()
50 root.i = (p_square.i & ~EXP_MASK64) | (exponent + 1023) << 52; in sqrt()
Dsqrtf.c26 int32_t exponent; in sqrtf() local
41 * we can do this by dividing the exponent part of the float by 2 in sqrtf()
44 exponent = ((p_square.i & EXP_MASK32) >> 23) - 127; in sqrtf()
45 if (exponent == 0xFF - 127) { in sqrtf()
49 exponent /= 2; in sqrtf()
50 root.i = (p_square.i & ~EXP_MASK32) | (exponent + 127) << 23; in sqrtf()
/Zephyr-latest/subsys/net/l2/ieee802154/
DKconfig.radio59 int "CSMA MAC minimum backoff exponent"
63 The minimum value of the backoff exponent (BE) in the CSMA-CA
68 int "CSMA MAC maximum backoff exponent"
72 The maximum value of the backoff exponent (BE) in the CSMA-CA
Dieee802154_radio_csma_ca.c26 "The CSMA/CA min backoff exponent must be less or equal max backoff exponent.");
/Zephyr-latest/tests/lib/c_lib/common/src/
Dtest_sqrt.c92 float exponent, resf, square, root_squared, error; in ZTEST() local
113 for (exponent = 1.0e-10f; exponent < 1.0e10f; exponent *= 10.0f) { in ZTEST()
115 square = test_floats[i] * exponent; in ZTEST()
151 double resd, error, square, root_squared, exponent; in ZTEST() local
172 for (exponent = 1.0e-10; exponent < 1.0e10; exponent *= 10.0) { in ZTEST()
174 square = test_doubles[i] * exponent; in ZTEST()
/Zephyr-latest/drivers/ieee802154/
DKconfig.cc13xx_cc26xx39 int "CSMA MAC minimum backoff exponent"
44 The minimum value of the backoff exponent (BE) in the CSMA-CA
48 int "CSMA MAC maximum backoff exponent"
53 The maximum value of the backoff exponent (BE) in the CSMA-CA
/Zephyr-latest/dts/bindings/clock/
Dlitex,clkout.yaml62 exponent for clkout margin
64 margin * 10^(-exponent) * 100%
/Zephyr-latest/samples/bluetooth/peripheral_ht/src/
Dhts.c86 uint8_t exponent; in hts_indicate() local
119 exponent = (uint8_t)-2; in hts_indicate()
123 htm[4] = exponent; in hts_indicate()
/Zephyr-latest/drivers/sensor/ti/opt3001/
Dopt3001.c95 * sample consists of 4 bits of exponent and 12 bits of mantissa in opt3001_channel_get()
96 * bits 15 to 12 are exponent bits in opt3001_channel_get()
100 * (2^(exponent value)) * 0.01 * mantissa value in opt3001_channel_get()
/Zephyr-latest/dts/bindings/timer/
Dnuclei,systimer.yaml37 This property takes exponent of the power of 2.
/Zephyr-latest/samples/bluetooth/central_ht/src/
Dmain.c54 int8_t exponent; in notify_func() local
64 exponent = ((uint8_t *)data)[4]; in notify_func()
65 temperature = (double)mantissa * pow(10, exponent); in notify_func()
/Zephyr-latest/drivers/sensor/maxim/max44009/
Dmax44009.c152 * sample consists of 4 bits of exponent and 8 bits of mantissa in max44009_channel_get()
153 * bits 15 to 12 are exponent bits in max44009_channel_get()
/Zephyr-latest/subsys/net/lib/lwm2m/
Dlwm2m_util.c79 /* adjust exponent for bias */ in lwm2m_float_to_b32()
91 /* exponent: bits 30-23 */ in lwm2m_float_to_b32()
161 /* adjust exponent for bias */ in lwm2m_float_to_b64()
173 /* exponent: bits 62-52 */ in lwm2m_float_to_b64()
207 /* calc exponent: bits 30-23 */ in lwm2m_b32_to_float()
274 /* get exponent: bits 62-52 */ in lwm2m_b64_to_float()
/Zephyr-latest/drivers/wifi/nrf_wifi/inc/
Dwifi_mgmt.h27 unsigned char exponent; member
/Zephyr-latest/drivers/wifi/nrf_wifi/src/
Dwifi_mgmt.c245 int exponent = 0; in nrf_wifi_twt_us_to_float() local
250 mantissa = frexp(twt_interval_ms, &exponent); in nrf_wifi_twt_us_to_float()
253 twt_interval_fp.exponent = exponent; in nrf_wifi_twt_us_to_float()
261 return floor(ldexp(twt_interval_fp.mantissa, twt_interval_fp.exponent) / (1000)) * in nrf_wifi_twt_float_to_us()
420 twt_interval_fp.exponent = twt_rpu->twt_target_wake_interval_exponent; in nrf_wifi_event_proc_get_power_save_info()
567 twt_info.twt_target_wake_interval_exponent = twt_interval_fp.exponent; in nrf_wifi_set_twt()
643 twt_interval_fp.exponent = twt_setup_info->info.twt_target_wake_interval_exponent; in nrf_wifi_event_proc_twt_setup_zep()
/Zephyr-latest/lib/os/
Dcbprintf_complete.c44 * leading 0, a dot, and an exponent in the form e+xxx for a total of
834 /* Number of bits in the exponent of an IEEE 754-2008 double precision
898 /* Extract the non-negative offset exponent and fraction. Record in encode_float()
906 /* Exponent of all-ones signals infinity or NaN, which are in encode_float()
956 /* Remove the offset from the exponent, and store the in encode_float()
958 * exponent as first bit isn't the implicit bit. in encode_float()
1070 * discard garbage from the exponent where the implicit 1 would be in encode_float()
1080 * the exponent. in encode_float()
1086 /* Adjust the offset exponent to be signed rather than offset, in encode_float()
1146 /* Use the specified precision and exponent to select the in encode_float()
[all …]
/Zephyr-latest/drivers/flash/
Dflash_andes_qspi.c630 uint8_t exponent = 0; in setup_pages_layout() local
638 ((exponent == 0) || (etp->exp < exponent))) { in setup_pages_layout()
639 exponent = etp->exp; in setup_pages_layout()
643 if (exponent == 0) { in setup_pages_layout()
647 uint32_t erase_size = BIT(exponent); in setup_pages_layout()
Djesd216.c138 /* Extract the exponent and command */ in jesd216_bfp_erase()
/Zephyr-latest/tests/lib/sprintf/src/
Dmain.c71 uint32_t exponent; member
78 uint32_t exponent; member
121 var.exponent = 0x00000000; in ZTEST()
147 var.exponent = 0x00000000; in ZTEST()
177 var.exponent = 0x00000000; in ZTEST()
207 var.exponent = 0x00000000; in ZTEST()
379 var.exponent = 0x00000001; in ZTEST()
/Zephyr-latest/drivers/watchdog/
Dwdt_wwdg_stm32.c109 * @param prescaler_exp The prescaler exponent value(Base 2).
128 * @param prescaler_exp Pointer to prescaler exponent value(Base 2).
Dwdt_wwdgt_gd32.c43 * @param exp exponent part of prescaler
/Zephyr-latest/subsys/bluetooth/services/bas/
Dbas.c69 .exponent = 0x0,
/Zephyr-latest/drivers/dai/intel/dmic/
Ddmic.c39 /* Exponent function for small values of x. This function calculates
40 * fairly accurately exponent for x in range -2.0 .. +2.0. The iteration
41 * uses first 11 terms of Taylor series approximation for exponent
/Zephyr-latest/subsys/net/l2/wifi/
Dwifi_shell.c1537 int exponent = 0; in cmd_wifi_twt_setup_quick() local
1564 /* derive mantissa and exponent from interval */ in cmd_wifi_twt_setup_quick()
1565 twt_mantissa_scale = frexp(twt_interval_scale, &exponent); in cmd_wifi_twt_setup_quick()
1567 params.setup.twt_exponent = exponent; in cmd_wifi_twt_setup_quick()
1640 int exponent = 0; in twt_args_to_params() local
1654 {"exponent", required_argument, 0, 'e'}, in twt_args_to_params()
1780 PR_ERROR("Only one of TWT internal or (mantissa, exponent) should be used\n"); in twt_args_to_params()
1787 /* derive mantissa and exponent from interval */ in twt_args_to_params()
1788 twt_mantissa_scale = frexp(twt_interval_scale, &exponent); in twt_args_to_params()
1790 params->setup.twt_exponent = exponent; in twt_args_to_params()
[all …]
/Zephyr-latest/drivers/sensor/bosch/bmp388/
Dbmp388.c166 /* Determine exponent: this corresponds to register setting. */ in bmp388_attr_set_oversampling()

12