Home
last modified time | relevance | path

Searched refs:hz (Results 1 – 25 of 56) sorted by relevance

123

/AliOS-Things-master/components/SDL2/src/libm/
A De_fmod.c25 int32_t n,hx,hy,hz,ix,iy,sx,i; in __ieee754_fmod() local
91 hz=hx-hy;lz=lx-ly; if(lx<ly) hz -= 1; in __ieee754_fmod()
92 if(hz<0){hx = hx+hx+(lx>>31); lx = lx+lx;} in __ieee754_fmod()
94 if((hz|lz)==0) /* return sign(x)*0 */ in __ieee754_fmod()
96 hx = hz+hz+(lz>>31); lx = lz+lz; in __ieee754_fmod()
99 hz=hx-hy;lz=lx-ly; if(lx<ly) hz -= 1; in __ieee754_fmod()
100 if(hz>=0) {hx=hz;lx=lz;} in __ieee754_fmod()
A Dk_cos.c61 double a,hz,z,r,qx; in __kernel_cos() local
78 hz = 0.5*z-qx; in __kernel_cos()
80 return a - (hz - (z*r-x*y)); in __kernel_cos()
/AliOS-Things-master/components/sensor/drv/
A Ddrv_acc_gyro_st_lsm6dsl.c310 if (hz > 3330) in drv_acc_st_lsm6dsl_hz2odr()
314 else if (hz > 833) in drv_acc_st_lsm6dsl_hz2odr()
316 else if (hz > 416) in drv_acc_st_lsm6dsl_hz2odr()
322 else if (hz > 52) in drv_acc_st_lsm6dsl_hz2odr()
324 else if (hz > 26) in drv_acc_st_lsm6dsl_hz2odr()
326 else if (hz > 13) in drv_acc_st_lsm6dsl_hz2odr()
328 else if (hz >= 2) in drv_acc_st_lsm6dsl_hz2odr()
634 if (hz > 3330) in drv_gyro_st_lsm6dsl_hz2odr()
646 else if (hz > 52) in drv_gyro_st_lsm6dsl_hz2odr()
648 else if (hz > 26) in drv_gyro_st_lsm6dsl_hz2odr()
[all …]
A Ddrv_acc_gyro_bosch_bmi120.c452 if(hz > 800) in drv_acc_bosch_bmi120_hz2odr()
454 else if(hz > 400) in drv_acc_bosch_bmi120_hz2odr()
460 else if(hz > 50) in drv_acc_bosch_bmi120_hz2odr()
462 else if(hz > 25) in drv_acc_bosch_bmi120_hz2odr()
464 else if(hz > 12) in drv_acc_bosch_bmi120_hz2odr()
466 else if(hz > 6) in drv_acc_bosch_bmi120_hz2odr()
468 else if(hz > 3) in drv_acc_bosch_bmi120_hz2odr()
470 else if(hz >= 1) in drv_acc_bosch_bmi120_hz2odr()
836 if(hz > 1600) in drv_gyro_bosch_bmi120_hz2odr()
846 else if(hz > 50) in drv_gyro_bosch_bmi120_hz2odr()
[all …]
A Ddrv_acc_gyro_bosch_bmi160.c452 if(hz > 800) in drv_acc_bosch_bmi160_hz2odr()
454 else if(hz > 400) in drv_acc_bosch_bmi160_hz2odr()
460 else if(hz > 50) in drv_acc_bosch_bmi160_hz2odr()
462 else if(hz > 25) in drv_acc_bosch_bmi160_hz2odr()
464 else if(hz > 12) in drv_acc_bosch_bmi160_hz2odr()
466 else if(hz > 6) in drv_acc_bosch_bmi160_hz2odr()
468 else if(hz > 3) in drv_acc_bosch_bmi160_hz2odr()
470 else if(hz >= 1) in drv_acc_bosch_bmi160_hz2odr()
836 if(hz > 1600) in drv_gyro_bosch_bmi160_hz2odr()
846 else if(hz > 50) in drv_gyro_bosch_bmi160_hz2odr()
[all …]
A Ddrv_acc_gyro_st_lsm6dsr.c286 if(hz > 3330) in drv_acc_st_lsm6dsr_hz2odr()
290 else if(hz > 833) in drv_acc_st_lsm6dsr_hz2odr()
292 else if(hz > 416) in drv_acc_st_lsm6dsr_hz2odr()
298 else if(hz > 52) in drv_acc_st_lsm6dsr_hz2odr()
300 else if(hz > 26) in drv_acc_st_lsm6dsr_hz2odr()
302 else if(hz > 13) in drv_acc_st_lsm6dsr_hz2odr()
304 else if(hz >= 2) in drv_acc_st_lsm6dsr_hz2odr()
593 if(hz > 3330) in drv_gyro_st_lsm6dsr_hz2odr()
605 else if(hz > 52) in drv_gyro_st_lsm6dsr_hz2odr()
607 else if(hz > 26) in drv_gyro_st_lsm6dsr_hz2odr()
[all …]
A Ddrv_acc_st_h3lis100dl.c140 static uint8_t drv_acc_st_h3lis100dl_hz2odr(uint32_t hz) in drv_acc_st_h3lis100dl_hz2odr() argument
142 if(hz > 100) in drv_acc_st_h3lis100dl_hz2odr()
144 else if(hz > 50) in drv_acc_st_h3lis100dl_hz2odr()
146 else if(hz > 10) in drv_acc_st_h3lis100dl_hz2odr()
148 else if(hz > 5) in drv_acc_st_h3lis100dl_hz2odr()
150 else if(hz > 2) in drv_acc_st_h3lis100dl_hz2odr()
152 else if(hz > 1) in drv_acc_st_h3lis100dl_hz2odr()
159 static int drv_acc_st_h3lis100dl_set_odr(i2c_dev_t* drv, uint32_t hz) in drv_acc_st_h3lis100dl_set_odr() argument
163 uint8_t odr = drv_acc_st_h3lis100dl_hz2odr(hz); in drv_acc_st_h3lis100dl_set_odr()
A Ddrv_acc_st_lis331hh.c128 static uint8_t drv_acc_st_lis331hh_hz2odr(uint32_t hz) in drv_acc_st_lis331hh_hz2odr() argument
130 if(hz > 400) in drv_acc_st_lis331hh_hz2odr()
132 else if(hz > 100) in drv_acc_st_lis331hh_hz2odr()
134 else if(hz > 50) in drv_acc_st_lis331hh_hz2odr()
136 else if(hz > 10) in drv_acc_st_lis331hh_hz2odr()
138 else if(hz > 5) in drv_acc_st_lis331hh_hz2odr()
140 else if(hz > 2) in drv_acc_st_lis331hh_hz2odr()
142 else if(hz > 1) in drv_acc_st_lis331hh_hz2odr()
149 static int drv_acc_st_lis331hh_set_odr(i2c_dev_t* drv, uint32_t hz) in drv_acc_st_lis331hh_set_odr() argument
153 uint8_t odr = drv_acc_st_lis331hh_hz2odr(hz); in drv_acc_st_lis331hh_set_odr()
A Ddrv_acc_st_ais328dq.c151 static uint8_t drv_acc_st_ais328dq_hz2odr(uint32_t hz) in drv_acc_st_ais328dq_hz2odr() argument
153 if(hz > 400) in drv_acc_st_ais328dq_hz2odr()
155 else if(hz > 100) in drv_acc_st_ais328dq_hz2odr()
157 else if(hz > 50) in drv_acc_st_ais328dq_hz2odr()
159 else if(hz > 10) in drv_acc_st_ais328dq_hz2odr()
161 else if(hz > 5) in drv_acc_st_ais328dq_hz2odr()
163 else if(hz > 2) in drv_acc_st_ais328dq_hz2odr()
165 else if(hz > 1) in drv_acc_st_ais328dq_hz2odr()
172 static int drv_acc_st_ais328dq_set_odr(i2c_dev_t* drv, uint32_t hz) in drv_acc_st_ais328dq_set_odr() argument
176 uint8_t odr = drv_acc_st_ais328dq_hz2odr(hz); in drv_acc_st_ais328dq_set_odr()
A Ddrv_acc_st_h3lis331dl.c160 static uint8_t drv_acc_st_h3lis331dl_hz2odr(uint32_t hz) in drv_acc_st_h3lis331dl_hz2odr() argument
162 if(hz > 400) in drv_acc_st_h3lis331dl_hz2odr()
164 else if(hz > 100) in drv_acc_st_h3lis331dl_hz2odr()
166 else if(hz > 50) in drv_acc_st_h3lis331dl_hz2odr()
168 else if(hz > 10) in drv_acc_st_h3lis331dl_hz2odr()
170 else if(hz > 5) in drv_acc_st_h3lis331dl_hz2odr()
172 else if(hz > 2) in drv_acc_st_h3lis331dl_hz2odr()
174 else if(hz > 1) in drv_acc_st_h3lis331dl_hz2odr()
181 static int drv_acc_st_h3lis331dl_set_odr(i2c_dev_t* drv, uint32_t hz) in drv_acc_st_h3lis331dl_set_odr() argument
185 uint8_t odr = drv_acc_st_h3lis331dl_hz2odr(hz); in drv_acc_st_h3lis331dl_set_odr()
A Ddrv_gyro_st_l3gd20h.c196 static uint8_t drv_gyro_st_l3gd20h_hz2odr(uint32_t hz) in drv_gyro_st_l3gd20h_hz2odr() argument
198 if(hz > 400) in drv_gyro_st_l3gd20h_hz2odr()
200 else if(hz > 200) in drv_gyro_st_l3gd20h_hz2odr()
202 else if(hz > 100) in drv_gyro_st_l3gd20h_hz2odr()
204 else if(hz > 50) in drv_gyro_st_l3gd20h_hz2odr()
206 else if(hz > 25) in drv_gyro_st_l3gd20h_hz2odr()
208 else if(hz > 13) in drv_gyro_st_l3gd20h_hz2odr()
216 static int drv_gyro_st_l3gd20h_set_odr(i2c_dev_t* drv, uint32_t hz) in drv_gyro_st_l3gd20h_set_odr() argument
220 uint8_t odr = drv_gyro_st_l3gd20h_hz2odr(hz); in drv_gyro_st_l3gd20h_set_odr()
222 if(hz < 100){ in drv_gyro_st_l3gd20h_set_odr()
A Ddrv_acc_gyro_senodia_sh200l.c380 if(hz > 512) in drv_acc_senodia_sh200l_hz2odr()
382 else if(hz > 256) in drv_acc_senodia_sh200l_hz2odr()
384 else if(hz > 128) in drv_acc_senodia_sh200l_hz2odr()
396 else if(hz > 32) in drv_acc_senodia_sh200l_hz2odr()
398 else if(hz > 16) in drv_acc_senodia_sh200l_hz2odr()
400 else if(hz > 8) in drv_acc_senodia_sh200l_hz2odr()
406 if(hz > 128) in drv_acc_senodia_sh200l_hz2odr()
408 else if(hz < 64) in drv_acc_senodia_sh200l_hz2odr()
725 if(hz > 1660) in drv_gyro_senodia_sh200l_hz2odr()
735 else if(hz > 52) in drv_gyro_senodia_sh200l_hz2odr()
[all …]
A Ddrv_acc_gyro_senodia_sh200q.c380 if(hz > 512) in drv_acc_senodia_sh200q_hz2odr()
382 else if(hz > 256) in drv_acc_senodia_sh200q_hz2odr()
384 else if(hz > 128) in drv_acc_senodia_sh200q_hz2odr()
396 else if(hz > 32) in drv_acc_senodia_sh200q_hz2odr()
398 else if(hz > 16) in drv_acc_senodia_sh200q_hz2odr()
400 else if(hz > 8) in drv_acc_senodia_sh200q_hz2odr()
406 if(hz > 128) in drv_acc_senodia_sh200q_hz2odr()
408 else if(hz < 64) in drv_acc_senodia_sh200q_hz2odr()
724 if(hz > 1660) in drv_gyro_senodia_sh200q_hz2odr()
734 else if(hz > 52) in drv_gyro_senodia_sh200q_hz2odr()
[all …]
A Ddrv_acc_gyro_st_lsm6ds3tr_c.c340 if(hz > 3330) in drv_acc_st_lsm6ds3tr_c_hz2odr()
344 else if(hz > 833) in drv_acc_st_lsm6ds3tr_c_hz2odr()
346 else if(hz > 416) in drv_acc_st_lsm6ds3tr_c_hz2odr()
348 else if(hz > 208) in drv_acc_st_lsm6ds3tr_c_hz2odr()
350 else if(hz > 104) in drv_acc_st_lsm6ds3tr_c_hz2odr()
352 else if(hz > 52) in drv_acc_st_lsm6ds3tr_c_hz2odr()
354 else if(hz > 26) in drv_acc_st_lsm6ds3tr_c_hz2odr()
356 else if(hz > 13) in drv_acc_st_lsm6ds3tr_c_hz2odr()
358 else if(hz >= 2) in drv_acc_st_lsm6ds3tr_c_hz2odr()
834 if(hz > 3330) in drv_gyro_st_lsm6ds3tr_c_hz2odr()
[all …]
A Ddrv_acc_gyro_st_lsm6dsoq.c301 if(hz > 3330) in drv_acc_st_lsm6dsoq_hz2odr()
305 else if(hz > 833) in drv_acc_st_lsm6dsoq_hz2odr()
307 else if(hz > 416) in drv_acc_st_lsm6dsoq_hz2odr()
309 else if(hz > 208) in drv_acc_st_lsm6dsoq_hz2odr()
311 else if(hz > 104) in drv_acc_st_lsm6dsoq_hz2odr()
313 else if(hz > 52) in drv_acc_st_lsm6dsoq_hz2odr()
315 else if(hz > 26) in drv_acc_st_lsm6dsoq_hz2odr()
317 else if(hz > 13) in drv_acc_st_lsm6dsoq_hz2odr()
319 else if(hz >= 2) in drv_acc_st_lsm6dsoq_hz2odr()
799 if(hz > 3330) in drv_gyro_st_lsm6dsoq_hz2odr()
[all …]
A Ddrv_acc_gyro_st_lsm6ds3.c337 if(hz > 3330) in drv_acc_st_lsm6ds3_hz2odr()
341 else if(hz > 833) in drv_acc_st_lsm6ds3_hz2odr()
343 else if(hz > 416) in drv_acc_st_lsm6ds3_hz2odr()
345 else if(hz > 208) in drv_acc_st_lsm6ds3_hz2odr()
347 else if(hz > 104) in drv_acc_st_lsm6ds3_hz2odr()
349 else if(hz > 52) in drv_acc_st_lsm6ds3_hz2odr()
351 else if(hz > 26) in drv_acc_st_lsm6ds3_hz2odr()
353 else if(hz > 13) in drv_acc_st_lsm6ds3_hz2odr()
355 else if(hz >= 2) in drv_acc_st_lsm6ds3_hz2odr()
831 if(hz > 3330) in drv_gyro_st_lsm6ds3_hz2odr()
[all …]
A Ddrv_acc_gyro_st_lsm6dsm.c342 if(hz > 3330) in drv_acc_st_lsm6dsm_hz2odr()
346 else if(hz > 833) in drv_acc_st_lsm6dsm_hz2odr()
348 else if(hz > 416) in drv_acc_st_lsm6dsm_hz2odr()
350 else if(hz > 208) in drv_acc_st_lsm6dsm_hz2odr()
352 else if(hz > 104) in drv_acc_st_lsm6dsm_hz2odr()
354 else if(hz > 52) in drv_acc_st_lsm6dsm_hz2odr()
356 else if(hz > 26) in drv_acc_st_lsm6dsm_hz2odr()
358 else if(hz > 13) in drv_acc_st_lsm6dsm_hz2odr()
360 else if(hz >= 2) in drv_acc_st_lsm6dsm_hz2odr()
840 if(hz > 3330) in drv_gyro_st_lsm6dsm_hz2odr()
[all …]
A Ddrv_acc_bosch_bma421.c209 int drv_acc_bosch_bma421_set_odr(i2c_dev_t* drv, uint32_t hz) in drv_acc_bosch_bma421_set_odr() argument
221 if(hz >= 800) { in drv_acc_bosch_bma421_set_odr()
223 } else if(hz >= 400) { in drv_acc_bosch_bma421_set_odr()
225 } else if(hz >= 200) { in drv_acc_bosch_bma421_set_odr()
227 } else if(hz >= 100) { in drv_acc_bosch_bma421_set_odr()
229 } else if(hz >= 50) { in drv_acc_bosch_bma421_set_odr()
231 } else if(hz >= 25) { in drv_acc_bosch_bma421_set_odr()
233 } else if(hz >= 12) { in drv_acc_bosch_bma421_set_odr()
235 } else if(hz >= 6) { in drv_acc_bosch_bma421_set_odr()
237 } else if(hz >= 3) { in drv_acc_bosch_bma421_set_odr()
A Ddrv_acc_bosch_bma422.c211 int drv_acc_bosch_bma422_set_odr(i2c_dev_t* drv, uint32_t hz) in drv_acc_bosch_bma422_set_odr() argument
223 if(hz >= 800) { in drv_acc_bosch_bma422_set_odr()
225 } else if(hz >= 400) { in drv_acc_bosch_bma422_set_odr()
227 } else if(hz >= 200) { in drv_acc_bosch_bma422_set_odr()
229 } else if(hz >= 100) { in drv_acc_bosch_bma422_set_odr()
231 } else if(hz >= 50) { in drv_acc_bosch_bma422_set_odr()
233 } else if(hz >= 25) { in drv_acc_bosch_bma422_set_odr()
235 } else if(hz >= 12) { in drv_acc_bosch_bma422_set_odr()
237 } else if(hz >= 6) { in drv_acc_bosch_bma422_set_odr()
239 } else if(hz >= 3) { in drv_acc_bosch_bma422_set_odr()
A Ddrv_acc_bosch_bma456.c211 int drv_acc_bosch_bma456_set_odr(i2c_dev_t* drv, uint32_t hz) in drv_acc_bosch_bma456_set_odr() argument
223 if(hz >= 800) { in drv_acc_bosch_bma456_set_odr()
225 } else if(hz >= 400) { in drv_acc_bosch_bma456_set_odr()
227 } else if(hz >= 200) { in drv_acc_bosch_bma456_set_odr()
229 } else if(hz >= 100) { in drv_acc_bosch_bma456_set_odr()
231 } else if(hz >= 50) { in drv_acc_bosch_bma456_set_odr()
233 } else if(hz >= 25) { in drv_acc_bosch_bma456_set_odr()
235 } else if(hz >= 12) { in drv_acc_bosch_bma456_set_odr()
237 } else if(hz >= 6) { in drv_acc_bosch_bma456_set_odr()
239 } else if(hz >= 3) { in drv_acc_bosch_bma456_set_odr()
A Ddrv_acc_bosch_bma455.c211 int drv_acc_bosch_bma455_set_odr(i2c_dev_t* drv, uint32_t hz) in drv_acc_bosch_bma455_set_odr() argument
223 if(hz >= 800) { in drv_acc_bosch_bma455_set_odr()
225 } else if(hz >= 400) { in drv_acc_bosch_bma455_set_odr()
227 } else if(hz >= 200) { in drv_acc_bosch_bma455_set_odr()
229 } else if(hz >= 100) { in drv_acc_bosch_bma455_set_odr()
231 } else if(hz >= 50) { in drv_acc_bosch_bma455_set_odr()
233 } else if(hz >= 25) { in drv_acc_bosch_bma455_set_odr()
235 } else if(hz >= 12) { in drv_acc_bosch_bma455_set_odr()
237 } else if(hz >= 6) { in drv_acc_bosch_bma455_set_odr()
239 } else if(hz >= 3) { in drv_acc_bosch_bma455_set_odr()
A Ddrv_acc_st_lis2hh12.c171 static uint8_t drv_acc_st_lis2hh12_hz2odr(uint32_t hz) in drv_acc_st_lis2hh12_hz2odr() argument
173 if(hz > 400) in drv_acc_st_lis2hh12_hz2odr()
175 else if(hz > 200) in drv_acc_st_lis2hh12_hz2odr()
177 else if(hz > 100) in drv_acc_st_lis2hh12_hz2odr()
179 else if(hz > 50) in drv_acc_st_lis2hh12_hz2odr()
181 else if(hz > 10) in drv_acc_st_lis2hh12_hz2odr()
188 static int drv_acc_st_lis2hh12_set_odr(i2c_dev_t* drv, uint32_t hz) in drv_acc_st_lis2hh12_set_odr() argument
192 uint8_t odr = drv_acc_st_lis2hh12_hz2odr(hz); in drv_acc_st_lis2hh12_set_odr()
A Ddrv_acc_st_n2dm.c202 static uint8_t drv_acc_st_n2dm_hz2odr(uint32_t hz) in drv_acc_st_n2dm_hz2odr() argument
204 if(hz > 1620) in drv_acc_st_n2dm_hz2odr()
206 else if(hz > 1344) in drv_acc_st_n2dm_hz2odr()
208 else if(hz > 400) in drv_acc_st_n2dm_hz2odr()
210 else if(hz > 200) in drv_acc_st_n2dm_hz2odr()
212 else if(hz > 100) in drv_acc_st_n2dm_hz2odr()
214 else if(hz > 50) in drv_acc_st_n2dm_hz2odr()
216 else if(hz > 25) in drv_acc_st_n2dm_hz2odr()
218 else if(hz > 10) in drv_acc_st_n2dm_hz2odr()
220 else if(hz >= 1) in drv_acc_st_n2dm_hz2odr()
[all …]
/AliOS-Things-master/components/py_engine/engine/lib/libm_dbl/
A D__cos.c63 double_t hz,z,r,w; in __cos() local
68 hz = 0.5*z; in __cos()
69 w = 1.0-hz; in __cos()
70 return w + (((1.0-w)-hz) + (z*r-x*y)); in __cos()
/AliOS-Things-master/components/py_engine/engine/lib/libm/
A Dkf_cos.c47 float a,hz,z,r,qx; local
64 hz = (float)0.5*z-qx;
66 return a - (hz - (z*r-x*y));

Completed in 47 milliseconds

123