File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -125,14 +125,14 @@ void yield(void);
125
125
#define sq (x ) ({ typeof (x) _x = (x); _x * _x; })
126
126
#define min (a ,b ) ({ typeof (a) _a = (a); typeof (b) _b = (b); _a < _b ? _a : _b; })
127
127
#define max (a ,b ) ({ typeof (a) _a = (a); typeof (b) _b = (b); _a > _b ? _a : _b; })
128
- #define round (x ) ({ typeof (x) _x = (x); _x >= 0 ? (long)_x + 0.5 : (long)_x - 0.5 })
128
+ #define round (x ) ({ typeof (x) _x = (x); _x >= 0 ? (long)_x + 0.5 : (long)_x - 0.5; })
129
129
#define radians (deg ) ((deg) * DEG_TO_RAD)
130
130
#define degrees (rad ) ((rad) * RAD_TO_DEG)
131
- #define constrain (x ,low ,high ) ({ \
132
- typeof (x) _x = (x); \
133
- typeof (low) _l = (l ); \
134
- typeof (high) _h = (h); \
135
- _x < _l ? _l : _x > _h ? _h :_x })
131
+ #define constrain (x ,low ,high ) ({ \
132
+ typeof (x) _x = (x); \
133
+ typeof (low) _l = (low ); \
134
+ typeof (high) _h = (high); \
135
+ _x < _l ? _l : _x > _h ? _h : _x; })
136
136
137
137
#define interrupts () sei()
138
138
#define noInterrupts () cli()
You can’t perform that action at this time.
0 commit comments