Home
last modified time | relevance | path

Searched refs:INT64_C (Results 1 – 18 of 18) sorted by relevance

/Zephyr-latest/tests/drivers/sensor/akm09918c/src/
Dmain.c73 actual_ugauss = values[0].val1 * INT64_C(1000000) + values[0].val2; in test_fetch_magnetic_field()
75 zassert_within(expect_ugauss, actual_ugauss, INT64_C(5), in test_fetch_magnetic_field()
79 actual_ugauss = values[1].val1 * INT64_C(1000000) + values[1].val2; in test_fetch_magnetic_field()
81 zassert_within(expect_ugauss, actual_ugauss, INT64_C(5), in test_fetch_magnetic_field()
85 actual_ugauss = values[2].val1 * INT64_C(1000000) + values[2].val2; in test_fetch_magnetic_field()
87 zassert_within(expect_ugauss, actual_ugauss, INT64_C(5), in test_fetch_magnetic_field()
/Zephyr-latest/tests/misc/print_format/src/
Dmain.c14 printk("d%" PRId64 "\n", INT64_C(64)); in main()
19 printk("i%" PRIi64 "\n", INT64_C(64)); in main()
24 printk("o%" PRIo64 "\n", INT64_C(64)); in main()
/Zephyr-latest/tests/drivers/sensor/icm42688/src/
Dmain.c75 expected_uc = temperature_mc * INT64_C(1000); in test_fetch_temp_mc()
77 zassert_within(expected_uc, actual_uc, INT64_C(5000), in test_fetch_temp_mc()
119 expect_ug = (int32_t)(accel_percent[0] * INT64_C(1000000) * accel_range_g / INT16_MAX); in test_fetch_accel_with_range()
124 expect_ug = (int32_t)(accel_percent[1] * INT64_C(1000000) * accel_range_g / INT16_MAX); in test_fetch_accel_with_range()
129 expect_ug = (int32_t)(accel_percent[2] * INT64_C(1000000) * accel_range_g / INT16_MAX); in test_fetch_accel_with_range()
181 expect_10udps = (int32_t)(gyro_percent[0] * INT64_C(100) * scale_mdps / INT16_MAX); in test_fetch_gyro_with_range()
188 expect_10udps = (int32_t)(gyro_percent[1] * INT64_C(100) * scale_mdps / INT16_MAX); in test_fetch_gyro_with_range()
195 expect_10udps = (int32_t)(gyro_percent[2] * INT64_C(100) * scale_mdps / INT16_MAX); in test_fetch_gyro_with_range()
/Zephyr-latest/include/zephyr/toolchain/
Dxcc.h103 #ifndef INT64_C
104 #define INT64_C(x) __INT64_C(x) macro
/Zephyr-latest/lib/libc/minimal/include/
Dstdint.h115 #define INT64_C(_v) __INT64_C(_v) macro
178 #ifndef INT64_C
179 #define INT64_C(x) __INT64_C(x) macro
/Zephyr-latest/drivers/sensor/tdk/icm42688/
Dicm42688_decoder.c113 intermediate = ((int64_t)whole * INT64_C(1000000) + fraction); in icm42688_convert_raw_to_q31()
116 intermediate * ((int64_t)INT32_MAX + 1) * (1 << -shift) / INT64_C(1000000); in icm42688_convert_raw_to_q31()
119 intermediate * ((int64_t)INT32_MAX + 1) / ((1 << shift) * INT64_C(1000000)); in icm42688_convert_raw_to_q31()
228 ((temperature100 - whole * sensitivity) * INT64_C(1000000)) / sensitivity; in icm42688_read_temperature_from_packet()
245 scale = INT64_C(2) * BIT(31 - 5) * 9.80665; in icm42688_read_imu_from_packet()
248 scale = INT64_C(4) * BIT(31 - 6) * 9.80665; in icm42688_read_imu_from_packet()
251 scale = INT64_C(8) * BIT(31 - 7) * 9.80665; in icm42688_read_imu_from_packet()
254 scale = INT64_C(16) * BIT(31 - 8) * 9.80665; in icm42688_read_imu_from_packet()
298 scale = is_accel ? (INT64_C(16) * BIT(8) * 9.80665) : 131; in icm42688_read_imu_from_packet()
Dicm42688_common.c116 modr = DIV_ROUND_UP(modr, CONFIG_SYS_CLOCK_TICKS_PER_SEC * INT64_C(1000)); in icm42688_compute_fifo_wm()
Dicm42688.h609 *out_uc = ((in100 - (*out_c) * sensitivity) * INT64_C(1000000)) / sensitivity; in icm42688_temp_c()
/Zephyr-latest/drivers/sensor/asahi_kasei/akm09918c/
Dakm09918c.h21 #define AKM09918C_MICRO_GAUSS_PER_BIT INT64_C(1500)
Dakm09918c_decoder.c47 ((1 << AKM09918C_SHIFT) * INT64_C(1000000)); in akm09918c_convert_raw_to_q31()
/Zephyr-latest/tests/subsys/dsp/print_format/src/
Dmain.c9 #define float_multiplier(type) ((INT64_C(1) << (8 * sizeof(type) - 1)) - 1)
/Zephyr-latest/drivers/sensor/st/iis328dq/
Diis328dq.c177 int64_t micro_ms2 = (val->val1 * INT64_C(1000000)) + val->val2; in iis328dq_set_threshold()
/Zephyr-latest/drivers/sensor/
Ddefault_rtio_sensor.c244 ((value_u * ((INT64_C(1) << 31) - 1)) / 1000000) >> header->shift; in sensor_submit_fallback_sync()
Dsensor_shell.c1020 stats[i].accumulator += value.val1 * INT64_C(1000000) + value.val2; in data_ready_trigger_handler()
/Zephyr-latest/drivers/sensor/bosch/bmi160/
Dbmi160.c788 rate_uhz = INT64_C(100000000) * BIT(acc_odr) / 256; in bmi160_attr_get()
807 rate_uhz = INT64_C(100000000) * BIT(gyr_ord) / 256; in bmi160_attr_get()
Demul_bmi160.c363 intermediate -= INT64_C(23) << (31 - scale_shift); in bmi160_emul_backend_set_channel()
/Zephyr-latest/include/zephyr/drivers/
Dsensor.h1218 int64_t micro_ms2 = (ms2->val1 * INT64_C(1000000)) + ms2->val2; in sensor_ms2_to_ug()
/Zephyr-latest/tests/lib/c_lib/common/src/
Dmain.c151 && (INT64_C(-8) == -8) \ in ZTEST()