diff options
Diffstat (limited to 'shadeop.c')
-rw-r--r-- | shadeop.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -9,6 +9,12 @@ #include "internal.h" double +sign(double n) +{ + return n == 0? 0: n < 0? -1: 1; +} + +double step(double edge, double n) { if(n < edge) |