X-Git-Url: https://www.bearssl.org/gitweb//home/git/?p=BearSSL;a=blobdiff_plain;f=src%2Finner.h;h=bcf61b04d9bc0dbd8feff5dff392d2e3313177b4;hp=47431c00b9411cedc96fbaae05c567da0a1fcb03;hb=5db2d48b128326704cd33aff56c8b46e463f3bf6;hpb=2f88a673049d1e183d1a8f78e2030bf02362b8bf diff --git a/src/inner.h b/src/inner.h index 47431c0..bcf61b0 100644 --- a/src/inner.h +++ b/src/inner.h @@ -209,6 +209,17 @@ #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.