/Zephyr-latest/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-latest/dts/bindings/input/ |
D | zephyr,input-double-tap.yaml | 5 Input double tap pseudo-device 8 corresponding to double taps. 19 compatible = "zephyr,input-double-tap"; 21 double-tap-codes = <INPUT_KEY_A>, <INPUT_KEY_B>; 22 double-tap-delay-ms = <300>; 25 compatible: "zephyr,input-double-tap" 39 double-tap-codes: 43 Array of key codes to be generated for double taps (INPUT_KEY_* or INPUT_BTN_*). 45 double-tap-delay-ms: 48 description: Maximum time delay between taps to register a double tap, in milliseconds.
|
/Zephyr-latest/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-latest/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-latest/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-latest/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-latest/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-latest/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);
|
/Zephyr-latest/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-latest/samples/boards/96boards/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-latest/tests/boards/vmu_rt1170/icm42688/src/ |
D | main.c | 17 double q31_to_double(int32_t q31_value, int8_t shift) in q31_to_double() 19 return ((double)q31_value) / (double)(1 << (31 - shift)); in q31_to_double() 68 double x = q31_to_double(data->readings[0].values[0], data->shift); in callback() 69 double y = q31_to_double(data->readings[0].values[1], data->shift); in callback() 70 double z = q31_to_double(data->readings[0].values[2], data->shift); in callback() 79 double x = q31_to_double(data->readings[0].values[0], data->shift); in callback() 80 double y = q31_to_double(data->readings[0].values[1], data->shift); in callback() 81 double z = q31_to_double(data->readings[0].values[2], data->shift); in callback()
|
/Zephyr-latest/tests/subsys/input/double_tap/boards/ |
D | native_sim.overlay | 16 compatible = "zephyr,input-double-tap"; 18 double-tap-codes = <INPUT_KEY_X>, <INPUT_KEY_Y>; 19 double-tap-delay-ms = <300>;
|
/Zephyr-latest/samples/drivers/video/capture/src/ |
D | check_test_pattern.h | 20 double L; 21 double a; 22 double b; 41 double r_lin = r / 255.0; in rgb888_to_lab() 42 double g_lin = g / 255.0; in rgb888_to_lab() 43 double b_lin = b / 255.0; in rgb888_to_lab() 49 double x = r_lin * 0.4124 + g_lin * 0.3576 + b_lin * 0.1805; in rgb888_to_lab() 50 double y = r_lin * 0.2126 + g_lin * 0.7152 + b_lin * 0.0722; in rgb888_to_lab() 51 double z = r_lin * 0.0193 + g_lin * 0.1192 + b_lin * 0.9505; in rgb888_to_lab() 106 static inline double deltaE(const CIELAB lab1, const CIELAB lab2) in deltaE()
|
/Zephyr-latest/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-latest/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-latest/subsys/net/lib/prometheus/ |
D | summary.c | 17 int prometheus_summary_observe(struct prometheus_summary *summary, double value) in prometheus_summary_observe() 33 double value, unsigned long count) in prometheus_summary_observe_set() 36 double old_sum; in prometheus_summary_observe_set()
|
/Zephyr-latest/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-latest/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-latest/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-latest/tests/arch/arm/arm_thread_swap/src/ |
D | arm_thread_arch.c | 154 (double)src->s16, (double)src->s17, (double)src->s18, (double)src->s19, in verify_fp_callee_saved() 155 (double)src->s20, (double)src->s21, (double)src->s22, (double)src->s23, in verify_fp_callee_saved() 156 (double)src->s24, (double)src->s25, (double)src->s26, (double)src->s27, in verify_fp_callee_saved() 157 (double)src->s28, (double)src->s29, (double)src->s30, (double)src->s31, in verify_fp_callee_saved() 158 (double)dst->s16, (double)dst->s17, (double)dst->s18, (double)dst->s19, in verify_fp_callee_saved() 159 (double)dst->s20, (double)dst->s21, (double)dst->s22, (double)dst->s23, in verify_fp_callee_saved() 160 (double)dst->s24, (double)dst->s25, (double)dst->s26, (double)dst->s27, in verify_fp_callee_saved() 161 (double)dst->s28, (double)dst->s29, (double)dst->s30, (double)dst->s31); in verify_fp_callee_saved()
|
/Zephyr-latest/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-latest/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-latest/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-latest/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-latest/tests/drivers/sensor/ina230/src/ |
D | ina230_test.c | 54 double actual; in test_datasheet_example() 97 double shunt_cal = 5120e-6 / (fixture->current_lsb_uA * 1e-6 * in test_shunt_cal() 127 double current_expected_A = fixture->current_lsb_uA * 1e-6 * current_register; in test_current() 135 double current_actual_A = sensor_value_to_double(&sensor_val); in test_current() 156 double bitres = fixture->dev_type == INA236 ? 1.6e-3 : 1.25e-3; in test_bus_voltage() 168 double voltage_actual_V = sensor_value_to_double(&sensor_val); in test_bus_voltage() 169 double voltage_expected_V = voltage_reg_vectors[idx] * bitres; in test_bus_voltage() 196 double power_expected_W = power_register * scale * fixture->current_lsb_uA * 1e-6; in test_power() 204 double power_actual_W = sensor_value_to_double(&sensor_val); in test_power()
|