N/A

Dependencies:   mbed-dev

Committer:
adimmit
Date:
Sun Mar 07 18:08:47 2021 +0000
Revision:
0:a043c98470ae
new repo

Who changed what in which revision?

UserRevisionLine numberNew contents of line
adimmit 0:a043c98470ae 1 #ifndef MATH_OPS_H
adimmit 0:a043c98470ae 2 #define MATH_OPS_H
adimmit 0:a043c98470ae 3
adimmit 0:a043c98470ae 4 #define PI 3.14159265359f
adimmit 0:a043c98470ae 5
adimmit 0:a043c98470ae 6 #include "math.h"
adimmit 0:a043c98470ae 7
adimmit 0:a043c98470ae 8 float fmaxf(float x, float y);
adimmit 0:a043c98470ae 9 float fminf(float x, float y);
adimmit 0:a043c98470ae 10 float fmaxf3(float x, float y, float z);
adimmit 0:a043c98470ae 11 float fminf3(float x, float y, float z);
adimmit 0:a043c98470ae 12 void limit_norm(float *x, float *y, float limit);
adimmit 0:a043c98470ae 13 int float_to_uint(float x, float x_min, float x_max, int bits);
adimmit 0:a043c98470ae 14 float uint_to_float(int x_int, float x_min, float x_max, int bits);
adimmit 0:a043c98470ae 15
adimmit 0:a043c98470ae 16 #endif