projects
/
BearSSL
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added "ctmulq" implementation of Poly1305 (using 64->128 multiplications when available).
[BearSSL]
/
src
/
inner.h
diff --git
a/src/inner.h
b/src/inner.h
index
47431c0
..
bcf61b0
100644
(file)
--- a/
src/inner.h
+++ b/
src/inner.h
@@
-209,6
+209,17
@@
#endif
#endif
#endif
#endif
+/*
+ * Detect support for 128-bit integers.
+ */
+#if !defined BR_INT128 && !defined BR_UMUL128
+#ifdef __SIZEOF_INT128__
+#define BR_INT128 1
+#elif _M_X64
+#define BR_UMUL128 1
+#endif
+#endif
+
/* ==================================================================== */
/*
* Encoding/decoding functions.
/* ==================================================================== */
/*
* Encoding/decoding functions.