summaryrefslogtreecommitdiff
path: root/shadeop.c
diff options
context:
space:
mode:
Diffstat (limited to 'shadeop.c')
-rw-r--r--shadeop.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/shadeop.c b/shadeop.c
index c1484c3..c6080e3 100644
--- a/shadeop.c
+++ b/shadeop.c
@@ -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)