1

Dependencies:   mbed-dev-f303

Committer:
yezhong
Date:
Tue Feb 22 14:31:06 2022 +0000
Revision:
3:ac1062c23c49
Parent:
0:d80c66cb1b3a
11

Who changed what in which revision?

UserRevisionLine numberNew 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