Skip to content

Commit

Permalink
Merge pull request #686 from jay/fix_poly1305_ADD_macros
Browse files Browse the repository at this point in the history
poly1305: fix ADD macros for multi-line
  • Loading branch information
JacobBarthelmeh authored Dec 28, 2016
2 parents 2cf7785 + 3b6dac9 commit a40a3cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wolfcrypt/src/poly1305.c
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,9 @@
} word128;

#define MUL(out, x, y) out.lo = _umul128((x), (y), &out.hi)
#define ADD(out, in) { word64 t = out.lo; out.lo += in.lo;
#define ADD(out, in) { word64 t = out.lo; out.lo += in.lo; \
out.hi += (out.lo < t) + in.hi; }
#define ADDLO(out, in) { word64 t = out.lo; out.lo += in;
#define ADDLO(out, in) { word64 t = out.lo; out.lo += in; \
out.hi += (out.lo < t); }
#define SHR(in, shift) (__shiftright128(in.lo, in.hi, (shift)))
#define LO(in) (in.lo)
Expand Down

0 comments on commit a40a3cb

Please sign in to comment.