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.
Fork of CanMasterTest by
math_ops.h@0:d6186b8990c5, 2017-05-26 (annotated)
- Committer:
- benkatz
- Date:
- Fri May 26 19:47:57 2017 +0000
- Revision:
- 0:d6186b8990c5
1st commit;
Who changed what in which revision?
| User | Revision | Line number | New contents of line | 
|---|---|---|---|
| benkatz | 0:d6186b8990c5 | 1 | #ifndef MATH_OPS_H | 
| benkatz | 0:d6186b8990c5 | 2 | #define MATH_OPS_H | 
| benkatz | 0:d6186b8990c5 | 3 | |
| benkatz | 0:d6186b8990c5 | 4 | #define PI 3.14159265359f | 
| benkatz | 0:d6186b8990c5 | 5 | |
| benkatz | 0:d6186b8990c5 | 6 | #include "math.h" | 
| benkatz | 0:d6186b8990c5 | 7 | |
| benkatz | 0:d6186b8990c5 | 8 | float fmaxf(float x, float y); | 
| benkatz | 0:d6186b8990c5 | 9 | float fminf(float x, float y); | 
| benkatz | 0:d6186b8990c5 | 10 | float fmaxf3(float x, float y, float z); | 
| benkatz | 0:d6186b8990c5 | 11 | float fminf3(float x, float y, float z); | 
| benkatz | 0:d6186b8990c5 | 12 | void limit_norm(float *x, float *y, float limit); | 
| benkatz | 0:d6186b8990c5 | 13 | int float_to_uint(float x, float x_min, float x_max, int bits); | 
| benkatz | 0:d6186b8990c5 | 14 | float uint_to_float(int x_int, float x_min, float x_max, int bits); | 
| benkatz | 0:d6186b8990c5 | 15 | |
| benkatz | 0:d6186b8990c5 | 16 | #endif | 
