Home
last modified time | relevance | path

Searched full:float (Results 1 – 25 of 241) sorted by relevance

12345678910

/Zephyr-latest/include/zephyr/arch/arm/
Dthread.h44 float s16;
45 float s17;
46 float s18;
47 float s19;
48 float s20;
49 float s21;
50 float s22;
51 float s23;
52 float s24;
53 float s25;
[all …]
/Zephyr-latest/tests/lib/hash_function/src/
Dmain.c17 static void print_buckets(const char *label, float *buckets, size_t n) in print_buckets()
30 static void create_histogram(float *buckets, size_t n) in create_histogram()
50 float aa = *(float *)a; in compare_floats()
51 float bb = *(float *)b; in compare_floats()
56 static int kolmogorov_smirnov_test(float *buckets, size_t n) in kolmogorov_smirnov_test()
58 float d; in kolmogorov_smirnov_test()
59 float f_x; in kolmogorov_smirnov_test()
60 float prev; in kolmogorov_smirnov_test()
61 float f0_x; in kolmogorov_smirnov_test()
62 float d_max; in kolmogorov_smirnov_test()
[all …]
/Zephyr-latest/tests/lib/cmsis_dsp/common/
Dmath_helper.h49 * @param float* Pointer to the reference buffer
50 * @param float* Pointer to the test buffer
52 * @return float SNR
106 static inline float arm_snr_f32(const float *pRef, const float *pTest, in arm_snr_f32()
109 float EnergySignal = 0.0, EnergyError = 0.0; in arm_snr_f32()
111 float SNR; in arm_snr_f32()
138 static inline float arm_snr_f16(const float16_t *pRef, const float16_t *pTest, in arm_snr_f16()
141 float EnergySignal = 0.0, EnergyError = 0.0; in arm_snr_f16()
143 float SNR; in arm_snr_f16()
147 IFNANRETURNZERO((float)pRef[i]); in arm_snr_f16()
[all …]
/Zephyr-latest/samples/bluetooth/channel_sounding/src/
Ddistance_estimation.c50 static float linear_regression(float *x_values, float *y_values, uint8_t n_samples) in linear_regression()
58 float y_mean = 0.0; in linear_regression()
59 float x_mean = 0.0; in linear_regression()
66 float b_est_upper = 0.0; in linear_regression()
67 float b_est_lower = 0.0; in linear_regression()
77 static void bubblesort_2(float *array1, float *array2, uint16_t len) in bubblesort_2()
80 float temp; in bubblesort_2()
102 static float estimate_distance_using_phase_slope(struct iq_sample_and_channel *data, uint8_t len) in estimate_distance_using_phase_slope()
107 static float theta[MAX_NUM_SAMPLES]; in estimate_distance_using_phase_slope()
108 static float frequencies[MAX_NUM_SAMPLES]; in estimate_distance_using_phase_slope()
[all …]
/Zephyr-latest/drivers/sensor/nxp/nxp_tempmon/
Dnxp_tempmon.c62 float temp; in nxp_tempmon_channel_get()
68 temp = (float)data->hot_temp - ((float)data->temp_cnt - (float)data->hot_cnt) * in nxp_tempmon_channel_get()
69 (((float)data->hot_temp - TEMPMON_ROOM_TEMP) / in nxp_tempmon_channel_get()
70 ((float)data->room_cnt - (float)data->hot_cnt)); in nxp_tempmon_channel_get()
/Zephyr-latest/samples/modules/tflite-micro/magic_wand/src/
Daccelerometer_handler.cpp30 float bufx[BUFLEN] = { 0.0f };
31 float bufy[BUFLEN] = { 0.0f };
32 float bufz[BUFLEN] = { 0.0f };
48 bool ReadAccelerometer(float *input, int length) in ReadAccelerometer()
71 bufx[begin_index] = (float)sensor_value_to_double(&accel[0]); in ReadAccelerometer()
72 bufy[begin_index] = (float)sensor_value_to_double(&accel[1]); in ReadAccelerometer()
73 bufz[begin_index] = (float)sensor_value_to_double(&accel[2]); in ReadAccelerometer()
Dgesture_predictor.cpp23 float prediction_history[kGestureCount][kPredictionHistoryLength] = {};
31 int PredictGesture(float *output) in PredictGesture()
47 float max_predict_score = 0.0f; in PredictGesture()
49 float prediction_sum = 0.0f; in PredictGesture()
53 const float prediction_average = prediction_sum / kPredictionHistoryLength; in PredictGesture()
/Zephyr-latest/lib/libc/minimal/include/
Dmath.h20 typedef float float_t;
33 typedef float float_t;
54 float sqrtf(float square);
/Zephyr-latest/subsys/net/lib/lwm2m/
Dlwm2m_util.h12 /* convert float to binary format */
16 /* convert binary format to float */
20 /* convert string to float */
22 /* convert float to string */
Dlwm2m_senml_cbor.cddl9 vf => float // ; Float Value
20 value = tstr / bstr / int .size 8 / float / bool
Dlwm2m_obj_location.c47 OBJ_FIELD_DATA(LOCATION_LATITUDE_ID, R, FLOAT),
48 OBJ_FIELD_DATA(LOCATION_LONGITUDE_ID, R, FLOAT),
49 OBJ_FIELD_DATA(LOCATION_ALTITUDE_ID, R_OPT, FLOAT),
50 OBJ_FIELD_DATA(LOCATION_RADIUS_ID, R_OPT, FLOAT),
53 OBJ_FIELD_DATA(LOCATION_SPEED_ID, R_OPT, FLOAT),
Dipso_accelerometer.c56 OBJ_FIELD_DATA(X_VALUE_RID, R, FLOAT),
57 OBJ_FIELD_DATA(Y_VALUE_RID, R_OPT, FLOAT),
58 OBJ_FIELD_DATA(Z_VALUE_RID, R_OPT, FLOAT),
60 OBJ_FIELD_DATA(MIN_RANGE_VALUE_RID, R_OPT, FLOAT),
61 OBJ_FIELD_DATA(MAX_RANGE_VALUE_RID, R_OPT, FLOAT),
65 OBJ_FIELD_DATA(FRACTIONAL_TIMESTAMP_RID, R_OPT, FLOAT),
Dipso_pressure_sensor.c57 OBJ_FIELD_DATA(SENSOR_VALUE_RID, R, FLOAT),
59 OBJ_FIELD_DATA(MIN_MEASURED_VALUE_RID, R_OPT, FLOAT),
60 OBJ_FIELD_DATA(MAX_MEASURED_VALUE_RID, R_OPT, FLOAT),
61 OBJ_FIELD_DATA(MIN_RANGE_VALUE_RID, R_OPT, FLOAT),
62 OBJ_FIELD_DATA(MAX_RANGE_VALUE_RID, R_OPT, FLOAT),
64 OBJ_FIELD_DATA(CURRENT_CALIBRATION_RID, R_OPT, FLOAT),
68 OBJ_FIELD_DATA(FRACTIONAL_TIMESTAMP_RID, R_OPT, FLOAT),
/Zephyr-latest/drivers/sensor/st/stm32_temp/
Dstm32_temp.c52 float average_slope; /** Unit: mV/°C */
60 float average_slope; /** Unit: mV/°C */
124 static float convert_adc_sample_to_temperature(const struct device *dev) in convert_adc_sample_to_temperature()
129 float temperature; in convert_adc_sample_to_temperature()
151 temperature = (float)(cfg->v25 - vsense); in convert_adc_sample_to_temperature()
153 temperature = (float)(vsense - cfg->v25); in convert_adc_sample_to_temperature()
162 const float sense_data = ((float)vdda_mv / cfg->calib_vrefanalog) * data->raw; in convert_adc_sample_to_temperature()
179 const float avg_slope_code = in convert_adc_sample_to_temperature()
181 float dividend; in convert_adc_sample_to_temperature()
184 dividend = ((float)(calib[0] >> cfg->calib_data_shift) - sense_data); in convert_adc_sample_to_temperature()
[all …]
/Zephyr-latest/lib/libc/minimal/source/math/
Dsqrtf.c19 float f;
23 float sqrtf(float square) in sqrtf()
41 * we can do this by dividing the exponent part of the float by 2 in sqrtf()
/Zephyr-latest/scripts/utils/
Dntc_thermistor_table.py31 def c_to_k(c: float): argument
45 r25: float, beta: float, interval: int, temp_init: int, temp_final: int argument
67 "-r25", type=float, required=True, help="Nominal resistance of thermistor"
70 "-b", "--beta", type=float, required=True, help="Beta(25/85) value"
/Zephyr-latest/cmake/compiler/gcc/
Dtarget_sparc.cmake4 list(APPEND TOOLCHAIN_C_FLAGS -msoft-float)
5 list(APPEND TOOLCHAIN_LD_FLAGS -msoft-float)
Dtarget_mips.cmake14 list(APPEND TOOLCHAIN_C_FLAGS -msoft-float)
15 list(APPEND TOOLCHAIN_LD_FLAGS -msoft-float)
Dtarget_x86.cmake13 list(APPEND TOOLCHAIN_C_FLAGS -msoft-float)
14 list(APPEND TOOLCHAIN_LD_FLAGS -msoft-float)
/Zephyr-latest/samples/boards/nordic/mesh/onoff_level_lighting_vnd_app/src/mesh/
Dstate_binding.c16 static int32_t ceiling(float num) in ceiling()
21 if (num == (float) inum) { in ceiling()
30 float tmp; in actual_to_linear()
32 tmp = ((float) val / UINT16_MAX); in actual_to_linear()
39 return (uint16_t) (UINT16_MAX * sqrtf(((float) val / UINT16_MAX))); in linear_to_actual()
81 float tmp; in light_ctl_temp_to_level()
97 float diff; in level_to_light_ctl_temp()
100 diff = (float) (ctl->temp->range_max - ctl->temp->range_min) / in level_to_light_ctl_temp()
/Zephyr-latest/drivers/sensor/tdk/icp101xx/
Dicp101xx_drv.h24 float pressure;
25 float temperature;
Dicp101xx_drv.c88 #define ATMOSPHERICAL_PRESSURE_KPA ((float)101.325)
89 #define TO_KELVIN(temp_C) ((float)273.15 + temp_C)
97 #define HEIGHT_TO_PRESSURE_COEFF ((float)0.03424)
106 #define PRESSURE_TO_HEIGHT_COEFF ((float)29.27127)
112 #define LOG_ATMOSPHERICAL_PRESSURE ((float)4.61833)
114 float convertToHeight(float pressure_kp, float temperature_C) in convertToHeight()
200 float altitude = convertToHeight(data->pressure / 1000, data->temperature); in icp101xx_channel_get()
/Zephyr-latest/samples/modules/tflite-micro/hello_world/src/
Dmain_functions.cpp88 float position = static_cast < float > (inference_count) / in loop()
89 static_cast < float > (kInferencesPerCycle); in loop()
90 float x = position * kXrange; in loop()
107 float y = (y_quantized - output->params.zero_point) * output->params.scale; in loop()
/Zephyr-latest/scripts/ci/es_upload/
Dzephyr_twister_index.json101 "type": "float"
104 "type": "float"
121 "type": "float"
Dzephyr_twister_flat_recording_metrics_index.json101 "type": "float"
104 "type": "float"
122 "type": "float"

12345678910