mirror of
https://gitlab.com/drummyfish/anarch.git
synced 2024-11-25 02:12:19 -05:00
Update rcl
This commit is contained in:
parent
c9c32bdd8d
commit
c51281a239
@ -1092,7 +1092,8 @@ static inline int16_t _RCL_drawHorizontalColumn(
|
|||||||
if (doDepth) /*constant condition - compiler should optimize it out*/\
|
if (doDepth) /*constant condition - compiler should optimize it out*/\
|
||||||
{\
|
{\
|
||||||
depth += depthIncrement;\
|
depth += depthIncrement;\
|
||||||
pixelInfo->depth = RCL_max(0,depth); /*TODO: optimize */\
|
pixelInfo->depth = depth * (depth > 0); /* fast abs val */ \
|
||||||
|
/* ^ int comparison is fast, it is not braching! (= test instr.) */\
|
||||||
}\
|
}\
|
||||||
if (doCoords) /*constant condition - compiler should optimize it out*/\
|
if (doCoords) /*constant condition - compiler should optimize it out*/\
|
||||||
{\
|
{\
|
||||||
|
Loading…
Reference in New Issue
Block a user