Home
last modified time | relevance | path

Searched refs:INT32_MAX (Results 1 – 25 of 71) sorted by relevance

123

/Zephyr-latest/include/zephyr/dsp/
Dutils.h135 ((q31_t)Z_CLAMP((int64_t)(src * (1U << 31)) >> m, INT32_MIN, INT32_MAX))
165 ((q31_t)Z_CLAMP((int64_t)(src * (1U << 31)) >> m, INT32_MIN, INT32_MAX))
Dprint_format.h49 ((__PRIq_arg_get(q, shift, 30, 0) * __CONSTPOW(1, precision)) / INT32_MAX)
/Zephyr-latest/drivers/sensor/amd_sb_tsi/
Dsb_tsi_emul.c115 millicelsius = scaled_value * 1000 / ((int64_t)INT32_MAX + 1); in sb_tsi_emul_set_channel()
133 *upper = (int64_t)(255.875 * ((int64_t)INT32_MAX + 1)) >> *shift; in sb_tsi_emul_get_sample_range()
134 *epsilon = (int64_t)(0.125 * ((int64_t)INT32_MAX + 1)) >> *shift; in sb_tsi_emul_get_sample_range()
/Zephyr-latest/drivers/sensor/asahi_kasei/akm09918c/
Dakm09918c_decoder.c46 ((int64_t)INT32_MAX + 1) / in akm09918c_convert_raw_to_q31()
49 *out = CLAMP(intermediate, INT32_MIN, INT32_MAX); in akm09918c_convert_raw_to_q31()
Dakm09918c_emul.c167 ((int64_t)INT32_MAX + 1); in akm09918c_emul_backend_set_channel()
196 *upper = (int64_t)(49.12 * ((int64_t)INT32_MAX + 1)) >> *shift; in akm09918c_emul_backend_get_sample_range()
198 *epsilon = (int64_t)(0.0015 * ((int64_t)INT32_MAX + 1)) >> *shift; in akm09918c_emul_backend_get_sample_range()
/Zephyr-latest/drivers/dai/intel/dmic/
Ddmic.h104 (qx + qy - qz) : INT32_MIN) : INT32_MAX)
188 if (x > INT32_MAX) { in sat_int32()
189 return INT32_MAX; in sat_int32()
/Zephyr-latest/drivers/sensor/bosch/bmi160/
Demul_bmi160.c403 int64_t intermediate = ((int64_t)(2 * 9.80665 * INT32_MAX)) >> 5; in bmi160_emul_backend_get_sample_range()
436 int64_t intermediate = (int64_t)(125 * 3.141592654 * INT32_MAX / 180) >> 2; in bmi160_emul_backend_get_sample_range()
548 *min = (q31_t)((int64_t)(0.0039 * 9.8065 * INT8_MIN * INT32_MAX) >> 3); in bmi160_emul_backend_get_attribute_metadata()
549 *max = (q31_t)((int64_t)(0.0039 * 9.8065 * INT8_MAX * INT32_MAX) >> 3); in bmi160_emul_backend_get_attribute_metadata()
550 *increment = (q31_t)((int64_t)(0.0039 * 9.8065 * INT32_MAX) >> 3); in bmi160_emul_backend_get_attribute_metadata()
565 *min = (q31_t)(0.061 * 3.141593 / 180.0 * -512 * INT32_MAX); in bmi160_emul_backend_get_attribute_metadata()
566 *max = (q31_t)(0.061 * 3.141593 / 180.0 * 511 * INT32_MAX); in bmi160_emul_backend_get_attribute_metadata()
567 *increment = (q31_t)(0.061 * 3.141593 / 180.0 * INT32_MAX); in bmi160_emul_backend_get_attribute_metadata()
/Zephyr-latest/drivers/sensor/f75303/
Df75303_emul.c133 millicelsius = scaled_value * 1000 / ((int64_t)INT32_MAX + 1); in f75303_emul_set_channel()
153 *upper = (int64_t)(255.875 * ((int64_t)INT32_MAX + 1)) >> *shift; in f75303_emul_get_sample_range()
154 *epsilon = (int64_t)(0.125 * ((int64_t)INT32_MAX + 1)) >> *shift; in f75303_emul_get_sample_range()
/Zephyr-latest/
DKconfig.constants13 INT32_MAX := 2147483647
/Zephyr-latest/tests/drivers/rtc/rtc_utils/src/
Dtest_rtc_utils.c23 .tm_nsec = INT32_MAX, in ZTEST()
/Zephyr-latest/include/zephyr/net/
Dnet_timeout.h50 #define NET_TIMEOUT_MAX_VALUE ((uint32_t)INT32_MAX)
/Zephyr-latest/tests/net/lib/lwm2m/content_oma_tlv/src/
Dmain.c224 int32_t value[] = { 0, INT32_MAX, INT32_MIN }; in ZTEST()
238 (uint8_t)(INT32_MAX >> 24), in ZTEST()
239 (uint8_t)(INT32_MAX >> 16), in ZTEST()
240 (uint8_t)(INT32_MAX >> 8), in ZTEST()
241 (uint8_t)INT32_MAX in ZTEST()
280 ret = oma_tlv_writer.put_s32(&test_out, &test_path, INT32_MAX); in ZTEST()
699 (uint8_t)(INT32_MAX >> 24), in ZTEST()
700 (uint8_t)(INT32_MAX >> 16), in ZTEST()
701 (uint8_t)(INT32_MAX >> 8), in ZTEST()
702 (uint8_t)INT32_MAX in ZTEST()
[all …]
/Zephyr-latest/drivers/sensor/nordic/npm1300_charger/
Dnpm1300_charger.c328 if (config->temp_thresholds[idx] < INT32_MAX) { in set_ntc_thresholds()
350 if (config->dietemp_thresholds[idx] < INT32_MAX) { in set_dietemp_thresholds()
688 .dietemp_thresholds = {DT_INST_PROP_OR(n, dietemp_stop_millidegrees, INT32_MAX), \
690 INT32_MAX)}, \
691 .temp_thresholds = {DT_INST_PROP_OR(n, thermistor_cold_millidegrees, INT32_MAX), \
692 DT_INST_PROP_OR(n, thermistor_cool_millidegrees, INT32_MAX), \
693 DT_INST_PROP_OR(n, thermistor_warm_millidegrees, INT32_MAX), \
694 DT_INST_PROP_OR(n, thermistor_hot_millidegrees, INT32_MAX)}}; \
/Zephyr-latest/drivers/regulator/
Dregulator_gpio.c112 int32_t best_voltage = INT32_MAX; in regulator_gpio_set_voltage()
127 if (best_voltage == INT32_MAX) { in regulator_gpio_set_voltage()
214 .current_volt_uv = INT32_MAX, \
/Zephyr-latest/samples/modules/lvgl/screen_transparency/src/
Dmain.c68 k_msleep(MIN(sleep_ms, INT32_MAX)); in main()
/Zephyr-latest/samples/modules/lvgl/demos/src/
Dmain.c72 k_msleep(MIN(sleep_ms, INT32_MAX)); in main()
/Zephyr-latest/lib/libc/minimal/include/
Dstdint.h18 #define INT32_MAX __INT32_MAX__ macro
24 #define INT32_MIN (-INT32_MAX - 1)
/Zephyr-latest/tests/subsys/dsp/utils/src/
Df64.c28 (-1.0, 0, INT32_MIN), (1.0, 0, INT32_MAX), (1.0, 31, 1), (-1.0, 31, -1)
/Zephyr-latest/include/zephyr/drivers/
Dregulator.h196 INT32_MAX), \
202 INT32_MAX), \
330 if (config->max_uv == INT32_MAX) { in regulator_common_get_max_voltage()
Dsensor.h1326 if (inp < INT32_MIN || inp > INT32_MAX) { in sensor_value_from_double()
1332 if (val2 < INT32_MIN || val2 > INT32_MAX) { in sensor_value_from_double()
1353 if (val2 < INT32_MIN || val2 > (float)(INT32_MAX - 1)) { in sensor_value_from_float()
1481 milli > ((int64_t)INT32_MAX + 1) * 1000LL) { in sensor_value_from_milli()
1501 micro > ((int64_t)INT32_MAX + 1) * 1000000LL) { in sensor_value_from_micro()
/Zephyr-latest/samples/modules/lvgl/accelerometer_chart/src/
Dmain.c94 k_msleep(MIN(sleep_ms, INT32_MAX)); in main()
/Zephyr-latest/subsys/net/lib/lwm2m/
Dipso_temp_sensor.c161 min_measured_value[index] = INT32_MAX; in temp_sensor_create()
162 max_measured_value[index] = -INT32_MAX; in temp_sensor_create()
Dipso_current_sensor.c165 min_measured_value[index] = INT32_MAX; in current_sensor_create()
166 max_measured_value[index] = -INT32_MAX; in current_sensor_create()
Dipso_humidity_sensor.c160 min_measured_value[index] = INT32_MAX; in humidity_sensor_create()
161 max_measured_value[index] = -INT32_MAX; in humidity_sensor_create()
Dipso_pressure_sensor.c161 min_measured_value[index] = INT32_MAX; in pressure_sensor_create()
162 max_measured_value[index] = -INT32_MAX; in pressure_sensor_create()

123