/Zephyr-Core-3.7.0/arch/x86/core/ia32/ |
D | soft_float_stubs.c | 12 * @brief Provide soft float function stubs for long double operations. 14 * GCC soft float does not support long double so these need to be 22 __weak void __addtf3(long double a, long double b) in __addtf3() 27 __weak void __addxf3(long double a, long double b) in __addxf3() 32 __weak void __subtf3(long double a, long double b) in __subtf3() 37 __weak void __subxf3(long double a, long double b) in __subxf3() 42 __weak void __multf3(long double a, long double b) in __multf3() 47 __weak void __mulxf3(long double a, long double b) in __mulxf3() 52 __weak void __divtf3(long double a, long double b) in __divtf3() 57 __weak void __divxf3(long double a, long double b) in __divxf3() [all …]
|
/Zephyr-Core-3.7.0/arch/arm/core/ |
D | Kconfig.vfp | 35 that supports only single-precision operations with 16 double-word 47 double-word registers. 59 multiply-accumulate) with 16 double-word registers. 69 that supports single- and double-precision operations with 16 70 double-word registers. 81 that supports half-, single- and double-precision operations with 16 82 double-word registers. 94 that supports half-, single- and double-precision operations 95 (including fused multiply-accumulate) with 16 double-word registers. 108 that supports half-, single-, double-precision operations (including [all …]
|
/Zephyr-Core-3.7.0/tests/kernel/timer/timer_behavior/src/ |
D | jitter_drift.c | 121 static double cycles_to_us(uint64_t cycles) in cycles_to_us() 183 double min_us = cycles_to_us(min_cyc); in do_test_using() 184 double max_us = cycles_to_us(max_cyc); in do_test_using() 186 double mean_cyc = in do_test_using() 187 (double)total_cycles / (double)(CONFIG_TIMER_TEST_SAMPLES - periodic_rollovers); in do_test_using() 188 double mean_us = cycles_to_us(total_cycles) / in do_test_using() 189 (double)(CONFIG_TIMER_TEST_SAMPLES - periodic_rollovers); in do_test_using() 190 double variance_us = 0; in do_test_using() 191 double variance_cyc = 0; in do_test_using() 197 double mean_cyc_diff = (double)diff - mean_cyc; in do_test_using() [all …]
|
/Zephyr-Core-3.7.0/lib/libc/minimal/include/ |
D | math.h | 21 typedef double double_t; 23 typedef double float_t; 24 typedef double double_t; 26 typedef long double float_t; 27 typedef long double double_t; 34 typedef double double_t; 55 double sqrt(double square);
|
/Zephyr-Core-3.7.0/drivers/display/ |
D | ssd1306_regs.h | 26 #define SSD1306_SET_CONTRAST_CTRL 0x81 /* double byte command */ 48 #define SSD1306_SET_MEM_ADDRESSING_MODE 0x20 /* double byte command */ 70 #define SSD1306_SET_MULTIPLEX_RATIO 0xa8 /* double byte command */ 75 #define SSD1306_SET_DISPLAY_OFFSET 0xd3 /* double byte command */ 77 #define SSD1306_SET_PADS_HW_CONFIG 0xda /* double byte command */ 89 #define SSD1306_SET_CLOCK_DIV_RATIO 0xd5 /* double byte command */ 91 #define SSD1306_SET_CHARGE_PERIOD 0xd9 /* double byte command */ 93 #define SSD1306_SET_VCOM_DESELECT_LEVEL 0xdb /* double byte command */ 100 #define SSD1306_SET_CHARGE_PUMP_ON 0x8d /* double byte command */ 104 #define SH1106_SET_DCDC_MODE 0xad /* double byte command */
|
/Zephyr-Core-3.7.0/subsys/bluetooth/controller/util/ |
D | dbuf.h | 8 * @brief Generic double buffer data structure header. 11 * double buffering. 18 /* Size in a bytes of a single element stored in double buffer. */ 25 * @brief Allocate element in double buffer. 31 * @param hdr Pointer to double buffer header. 44 * @param hdr Pointer to double buffer header. 56 * @param hdr Pointer to double buffer header. 73 * @param[in] hdr Pointer to double buffer header. 88 * @param hdr Pointer to double buffer header. 100 * @param hdr Pointer to double buffer header.
|
/Zephyr-Core-3.7.0/subsys/net/lib/lwm2m/ |
D | lwm2m_util.h | 13 int lwm2m_float_to_b32(double *in, uint8_t *b32, size_t len); 14 int lwm2m_float_to_b64(double *in, uint8_t *b64, size_t len); 17 int lwm2m_b32_to_float(uint8_t *b32, size_t len, double *out); 18 int lwm2m_b64_to_float(uint8_t *b64, size_t len, double *out); 21 int lwm2m_atof(const char *input, double *out); 23 int lwm2m_ftoa(double *input, char *out, size_t outlen, int8_t dec_limit);
|
D | lwm2m_obj_location.c | 40 static double latitude; 41 static double longitude; 42 static double altitude; 43 static double radius; 44 static double speed;
|
D | lwm2m_util.c | 24 int lwm2m_float_to_b32(double *in, uint8_t *b32, size_t len) in lwm2m_float_to_b32() 105 int lwm2m_float_to_b64(double *in, uint8_t *b64, size_t len) in lwm2m_float_to_b64() 191 int lwm2m_b32_to_float(uint8_t *b32, size_t len, double *out) in lwm2m_b32_to_float() 248 *out = (double)val1 - (double)val2 / PRECISION32; in lwm2m_b32_to_float() 250 *out = (double)val1 + (double)val2 / PRECISION32; in lwm2m_b32_to_float() 257 int lwm2m_b64_to_float(uint8_t *b64, size_t len, double *out) in lwm2m_b64_to_float() 319 *out = (double)val1 - (double)val2 / PRECISION64; in lwm2m_b64_to_float() 321 *out = (double)val1 + (double)val2 / PRECISION64; in lwm2m_b64_to_float() 327 int lwm2m_atof(const char *input, double *out) in lwm2m_atof() 360 *out = (double)val1; in lwm2m_atof() [all …]
|
/Zephyr-Core-3.7.0/samples/boards/96b_argonkey/sensors/src/ |
D | main.c | 57 sprintf(out_str, "accel (%f %f %f) m/s2", (double)out_ev(&accel_x), in lsm6dsl_trigger_handler() 58 (double)out_ev(&accel_y), in lsm6dsl_trigger_handler() 59 (double)out_ev(&accel_z)); in lsm6dsl_trigger_handler() 69 sprintf(out_str, "gyro (%f %f %f) dps", (double)out_ev(&gyro_x), in lsm6dsl_trigger_handler() 70 (double)out_ev(&gyro_y), in lsm6dsl_trigger_handler() 71 (double)out_ev(&gyro_z)); in lsm6dsl_trigger_handler() 82 sprintf(out_str, "magn (%f %f %f) gauss", (double)out_ev(&magn_x), in lsm6dsl_trigger_handler() 83 (double)out_ev(&magn_y), in lsm6dsl_trigger_handler() 84 (double)out_ev(&magn_z)); in lsm6dsl_trigger_handler() 98 sprintf(out_str, "press (%f) kPa - temp (%f) deg", (double)out_ev(&press), in lsm6dsl_trigger_handler() [all …]
|
/Zephyr-Core-3.7.0/samples/shields/lmp90100_evb/rtd/src/ |
D | main.c | 26 static double rtd_temperature(int nom, double resistance) in rtd_temperature() 28 const double a0 = 3.90802E-3; in rtd_temperature() 29 const double b0 = -0.58020E-6; in rtd_temperature() 30 double temp; in rtd_temperature() 43 double adc_max = ADC_MAX(ch_cfg.resolution); in main() 44 double resistance; in main()
|
/Zephyr-Core-3.7.0/tests/lib/c_lib/common/src/ |
D | test_sqrt.c | 32 static double test_doubles[] = { 42 static int isinf(double x) in isinf() 44 union { uint64_t u; double d; } ieee754; in isinf() 53 static int isnan(double x) in isnan() 55 union { uint64_t u; double d; } ieee754; in isnan() 151 double resd, error, square, root_squared, exponent; in ZTEST() 162 zassert_true(isnan(sqrt((double)NAN)), "sqrt(nan)"); in ZTEST() 164 zassert_true(issignalling(sqrt((double)NAN)), "ssignaling(sqrt(nan))"); in ZTEST() 167 zassert_true(isnan(sqrt((double)-NAN)), "isnan(sqrt(-nan))"); in ZTEST() 168 zassert_true(isinf(sqrt((double)INFINITY)), "isinf(sqrt(inf))"); in ZTEST() [all …]
|
/Zephyr-Core-3.7.0/samples/sensor/lsm6dso/src/ |
D | main.c | 31 (double)out_ev(&x), (double)out_ev(&y), (double)out_ev(&z)); in fetch_and_display() 40 (double)out_ev(&x), (double)out_ev(&y), (double)out_ev(&z)); in fetch_and_display()
|
/Zephyr-Core-3.7.0/lib/libc/minimal/source/math/ |
D | sqrt.c | 18 double sqrt(double square) in sqrt() 22 double root; in sqrt() 23 double last; in sqrt()
|
/Zephyr-Core-3.7.0/samples/subsys/logging/dictionary/src/ |
D | main.c | 65 double d = 68.69; in main() 67 LOG_DBG("float %f, double %f", (double)f, d); in main() 69 long double ld = 70.71L; in main() 71 LOG_DBG("long double %Lf", ld); in main()
|
/Zephyr-Core-3.7.0/tests/drivers/sensor/ina237/src/ |
D | ina237_test.c | 52 double shunt_cal = 819.2e6 * fixture->current_lsb_uA * 1e-6 * fixture->rshunt_uOhms * 1e-6; in test_shunt_cal() 86 double current_expected_A = fixture->current_lsb_uA * 1e-6 * current_register; in test_current() 94 double current_actual_A = sensor_value_to_double(&sensor_val); in test_current() 125 double voltage_actual_V = sensor_value_to_double(&sensor_val); in test_bus_voltage() 126 double voltage_expected_V = voltage_reg_vectors[idx] * 3.125e-3; in test_bus_voltage() 151 double power_expected_W = 0.2 * fixture->current_lsb_uA * 1e-6 * power_register; in test_power() 159 double power_actual_W = sensor_value_to_double(&sensor_val); in test_power() 192 double temp_actual_degC = sensor_value_to_double(&sensor_val); in test_temperature() 193 double temp_expected_degC = (temp_reg_vectors[idx] / 16) * 125e-3; in test_temperature() 228 double vshunt_actual_mV = sensor_value_to_double(&sensor_val); in test_vshunt() [all …]
|
/Zephyr-Core-3.7.0/boards/native/native_posix/ |
D | timer_model.c | 95 static double clock_ratio = 1.0; 304 void hwtimer_set_rt_ratio(double ratio) in hwtimer_set_rt_ratio() 320 void hwtimer_adjust_rt_ratio(double ratio_correction) in hwtimer_adjust_rt_ratio() 331 int64_t r_drift = (long double)(clock_ratio-1.0)/(clock_ratio)*s_diff; in hwtimer_adjust_rt_ratio() 374 * Note: long double has a 64bits mantissa in x86. in hwtimer_get_pseudohost_rtc_time() 403 long double drt_us = (long double)rt_us - last_radj_rtime; in hwtimer_get_pseudohost_rtc_time() 404 long double drt_ns = drt_us * 1000.0L + (long double)rt_ns; in hwtimer_get_pseudohost_rtc_time() 405 long double st = drt_ns * (long double)clock_ratio + in hwtimer_get_pseudohost_rtc_time() 406 (long double)(last_radj_stime + rtc_offset) * 1000.0L; in hwtimer_get_pseudohost_rtc_time() 413 double stop_at; [all …]
|
/Zephyr-Core-3.7.0/scripts/native_simulator/native/src/ |
D | timer_model.c | 85 static double clock_ratio = 1.0; 296 void hwtimer_set_rt_ratio(double ratio) in hwtimer_set_rt_ratio() 312 void hwtimer_adjust_rt_ratio(double ratio_correction) in hwtimer_adjust_rt_ratio() 323 int64_t r_drift = (long double)(clock_ratio-1.0)/(clock_ratio)*s_diff; in hwtimer_adjust_rt_ratio() 366 * Note: long double has a 64bits mantissa in x86. in hwtimer_get_pseudohost_rtc_time() 395 long double drt_us = (long double)rt_us - last_radj_rtime; in hwtimer_get_pseudohost_rtc_time() 396 long double drt_ns = drt_us * 1000.0L + (long double)rt_ns; in hwtimer_get_pseudohost_rtc_time() 397 long double st = drt_ns * (long double)clock_ratio + in hwtimer_get_pseudohost_rtc_time() 398 (long double)(last_radj_stime + rtc_offset) * 1000.0L; in hwtimer_get_pseudohost_rtc_time() 405 double stop_at; [all …]
|
/Zephyr-Core-3.7.0/tests/arch/arm/arm_thread_swap/src/ |
D | arm_thread_arch.c | 184 (double)src->s16, in verify_fp_callee_saved() 185 (double)src->s17, in verify_fp_callee_saved() 186 (double)src->s18, in verify_fp_callee_saved() 187 (double)src->s19, in verify_fp_callee_saved() 188 (double)src->s20, in verify_fp_callee_saved() 189 (double)src->s21, in verify_fp_callee_saved() 190 (double)src->s22, in verify_fp_callee_saved() 191 (double)src->s23, in verify_fp_callee_saved() 192 (double)src->s24, in verify_fp_callee_saved() 193 (double)src->s25, in verify_fp_callee_saved() [all …]
|
/Zephyr-Core-3.7.0/include/zephyr/sys/ |
D | cbprintf_cxx.h | 198 static inline int z_cbprintf_cxx_is_none_char_ptr(double) in z_cbprintf_cxx_is_none_char_ptr() argument 256 return sizeof(double); in z_cbprintf_cxx_arg_size() 270 double d = (double)arg; in z_cbprintf_cxx_store_arg() 325 /* C++ version for long double detection. */ 326 static inline int z_cbprintf_cxx_is_longdouble(long double arg) in z_cbprintf_cxx_is_longdouble() 345 return VA_STACK_ALIGN(double); in z_cbprintf_cxx_alignment() 348 static inline size_t z_cbprintf_cxx_alignment(double arg) in z_cbprintf_cxx_alignment() 352 return VA_STACK_ALIGN(double); in z_cbprintf_cxx_alignment() 355 static inline size_t z_cbprintf_cxx_alignment(long double arg) in z_cbprintf_cxx_alignment() 359 return VA_STACK_ALIGN(long double); in z_cbprintf_cxx_alignment()
|
/Zephyr-Core-3.7.0/drivers/sensor/maxim/max31865/ |
D | max31865.c | 91 static double calculate_temperature(double resistance, double resistance_0) in calculate_temperature() 93 double temperature; in calculate_temperature() 94 double delta = (RTD_A * RTD_A) - 4 * RTD_B * (1.0 - resistance / resistance_0); in calculate_temperature() 117 static double calculate_temperature(double resistance, double resistance_0) in calculate_temperature() 119 double temperature; in calculate_temperature() 236 double resistance = (double)read_reg.u16; in max31865_get_temperature()
|
/Zephyr-Core-3.7.0/tests/subsys/logging/dictionary/src/ |
D | main.c | 66 double d = 68.69; in main() 68 LOG_DBG("float %f, double %f", (double)f, d); in main() 70 long double ld = 70.71L; in main() 72 LOG_DBG("long double %Lf", ld); in main()
|
/Zephyr-Core-3.7.0/tests/lib/cmsis_dsp/common/ |
D | math_helper.h | 76 static inline double arm_snr_f64(const double *pRef, const double *pTest, in arm_snr_f64() 79 double EnergySignal = 0.0, EnergyError = 0.0; in arm_snr_f64() 81 double SNR; in arm_snr_f64() 173 double EnergySignal = 0.0, EnergyError = 0.0; in arm_snr_q63() 177 double testVal, refVal; in arm_snr_q63() 180 testVal = ((double)pTest[i]) / 9223372036854775808.0; in arm_snr_q63() 181 refVal = ((double)pRef[i]) / 9223372036854775808.0; in arm_snr_q63()
|
/Zephyr-Core-3.7.0/dts/bindings/dac/ |
D | ti,dacx0501.yaml | 29 resolution. mul2 will double the output range but lower the resolution, while div2 will 30 lower the range but double the resolution.
|
/Zephyr-Core-3.7.0/tests/drivers/sensor/ina230/src/ |
D | ina230_test.c | 47 double actual; in test_datasheet_example() 80 double shunt_cal = 5120e-6 / (fixture->current_lsb_uA * 1e-6 * in test_shunt_cal() 110 double current_expected_A = fixture->current_lsb_uA * 1e-6 * current_register; in test_current() 118 double current_actual_A = sensor_value_to_double(&sensor_val); in test_current() 149 double voltage_actual_V = sensor_value_to_double(&sensor_val); in test_bus_voltage() 150 double voltage_expected_V = voltage_reg_vectors[idx] * 1.25e-3; in test_bus_voltage() 175 double power_expected_W = power_register * 25 * fixture->current_lsb_uA * 1e-6; in test_power() 183 double power_actual_W = sensor_value_to_double(&sensor_val); in test_power()
|