Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
math_ops.h@53:e9e1d70532ef, 2021-02-19 (annotated)
- Committer:
- cactode
- Date:
- Fri Feb 19 22:27:52 2021 -0800
- Revision:
- 53:e9e1d70532ef
- Parent:
- 48:74a40481740c
Porting to MBed OS, initial commit
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
benkatz | 20:bf9ea5125d52 | 1 | #ifndef MATH_OPS_H |
benkatz | 20:bf9ea5125d52 | 2 | #define MATH_OPS_H |
benkatz | 20:bf9ea5125d52 | 3 | |
benkatz | 20:bf9ea5125d52 | 4 | #define PI 3.14159265359f |
benkatz | 48:74a40481740c | 5 | #define SQRT3 1.73205080757f |
benkatz | 20:bf9ea5125d52 | 6 | |
benkatz | 20:bf9ea5125d52 | 7 | #include "math.h" |
benkatz | 20:bf9ea5125d52 | 8 | |
benkatz | 20:bf9ea5125d52 | 9 | float fmaxf3(float x, float y, float z); |
benkatz | 20:bf9ea5125d52 | 10 | float fminf3(float x, float y, float z); |
benkatz | 20:bf9ea5125d52 | 11 | void limit_norm(float *x, float *y, float limit); |
benkatz | 47:e1196a851f76 | 12 | void limit(float *x, float min, float max); |
benkatz | 26:2b865c00d7e9 | 13 | int float_to_uint(float x, float x_min, float x_max, int bits); |
benkatz | 26:2b865c00d7e9 | 14 | float uint_to_float(int x_int, float x_min, float x_max, int bits); |
benkatz | 20:bf9ea5125d52 | 15 | |
benkatz | 20:bf9ea5125d52 | 16 | #endif |