111
Dependencies: yezhong_main_controller_copy mbed1-dev
math_ops/math_ops.h@10:f83b0935a8f0, 2022-07-09 (annotated)
- Committer:
- ganlikun
- Date:
- Sat Jul 09 11:58:13 2022 +0000
- Revision:
- 10:f83b0935a8f0
- Parent:
- 0:d80c66cb1b3a
00000
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
panzhan | 0:d80c66cb1b3a | 1 | #ifndef MATH_OPS_H |
panzhan | 0:d80c66cb1b3a | 2 | #define MATH_OPS_H |
panzhan | 0:d80c66cb1b3a | 3 | |
panzhan | 0:d80c66cb1b3a | 4 | #define PI 3.14159265359f |
panzhan | 0:d80c66cb1b3a | 5 | |
panzhan | 0:d80c66cb1b3a | 6 | #include "math.h" |
panzhan | 0:d80c66cb1b3a | 7 | |
panzhan | 0:d80c66cb1b3a | 8 | float fmaxf(float x, float y); |
panzhan | 0:d80c66cb1b3a | 9 | float fminf(float x, float y); |
panzhan | 0:d80c66cb1b3a | 10 | float fmaxf3(float x, float y, float z); |
panzhan | 0:d80c66cb1b3a | 11 | float fminf3(float x, float y, float z); |
panzhan | 0:d80c66cb1b3a | 12 | void limit_norm(float *x, float *y, float limit); |
panzhan | 0:d80c66cb1b3a | 13 | int float_to_uint(float x, float x_min, float x_max, int bits); |
panzhan | 0:d80c66cb1b3a | 14 | float uint_to_float(int x_int, float x_min, float x_max, int bits); |
panzhan | 0:d80c66cb1b3a | 15 | |
panzhan | 0:d80c66cb1b3a | 16 | #endif |