diff options
| author | Mattias Andrée <maandree@kth.se> | 2017-07-02 17:30:22 +0200 |
|---|---|---|
| committer | Mattias Andrée <maandree@kth.se> | 2017-07-02 17:30:22 +0200 |
| commit | c91c5cb8e892f1c19c970cef033cc03c9f47f98a (patch) | |
| tree | cde7cfa7b9f3b80516459e2f5e773e6ffbd3e752 /src/blind-arithm.c | |
| parent | Add blind-norm (diff) | |
| download | blind-c91c5cb8e892f1c19c970cef033cc03c9f47f98a.tar.gz blind-c91c5cb8e892f1c19c970cef033cc03c9f47f98a.tar.bz2 blind-c91c5cb8e892f1c19c970cef033cc03c9f47f98a.tar.xz | |
Add mod to blind-arithm
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
| -rw-r--r-- | src/blind-arithm.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/blind-arithm.c b/src/blind-arithm.c index 420f452..d392557 100644 --- a/src/blind-arithm.c +++ b/src/blind-arithm.c @@ -16,6 +16,7 @@ typedef void (*process_func)(struct stream *left, struct stream *right, size_t n X(sub, *lh -= rh, PIXFMT, TYPE)\ X(mul, *lh *= rh, PIXFMT, TYPE)\ X(div, *lh /= rh, PIXFMT, TYPE)\ + X(mod, *lh = posmod(*lh, rh), PIXFMT, TYPE)\ X(exp, *lh = pow(*lh, rh), PIXFMT, TYPE)\ X(log, *lh = log2(*lh) / log2(rh), PIXFMT, TYPE)\ X(min, *lh = MIN(*lh, rh), PIXFMT, TYPE)\ |
