aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/blind-arithm.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/blind-arithm.c b/src/blind-arithm.c
index 2ac1652..bc30bee 100644
--- a/src/blind-arithm.c
+++ b/src/blind-arithm.c
@@ -26,7 +26,8 @@ typedef void (*process_func)(struct stream *left, struct stream *right, size_t n
X(exp, *lh = pow(*lh, rh))\
X(log, *lh = log(*lh) / log(rh))\
X(min, *lh = *lh < rh ? *lh : rh)\
- X(max, *lh = *lh > rh ? *lh : rh)
+ X(max, *lh = *lh > rh ? *lh : rh)\
+ X(abs, *lh = fabs(*lh - rh) + rh)
#define X(NAME, ALGO)\
static void\