We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d7d1ac0 commit 2cb2c8aCopy full SHA for 2cb2c8a
src/common/foc_utils.h
@@ -5,7 +5,9 @@
5
6
// sign function
7
#define _sign(a) ( ( (a) < 0 ) ? -1 : ( (a) > 0 ) )
8
+#ifndef _round
9
#define _round(x) ((x)>=0?(long)((x)+0.5f):(long)((x)-0.5f))
10
+#endif
11
#define _constrain(amt,low,high) ((amt)<(low)?(low):((amt)>(high)?(high):(amt)))
12
#define _sqrt(a) (_sqrtApprox(a))
13
#define _isset(a) ( (a) != (NOT_SET) )
0 commit comments