X-Git-Url: https://www.bearssl.org/gitweb//home/git/?p=BearSSL;a=blobdiff_plain;f=src%2Fconfig.h;h=71440e71688d72879c3da488c9ecf704182fa525;hp=d2e7a7deeaf64519ca3ee7745113900d8727734e;hb=5db2d48b128326704cd33aff56c8b46e463f3bf6;hpb=2f88a673049d1e183d1a8f78e2030bf02362b8bf diff --git a/src/config.h b/src/config.h index d2e7a7d..71440e7 100644 --- a/src/config.h +++ b/src/config.h @@ -172,4 +172,21 @@ #define BR_POWER8 1 */ +/* + * When BR_INT128 is enabled, then code using the 'unsigned __int64' + * and 'unsigned __int128' types will be used to leverage 64x64->128 + * unsigned multiplications. This should work with GCC and compatible + * compilers on 64-bit architectures. + * +#define BR_INT128 1 + */ + +/* + * When BR_UMUL128 is enabled, then code using the '_umul128()' and + * '_addcarry_u64()' intrinsics will be used to implement 64x64->128 + * unsigned multiplications. This should work on Visual C on x64 systems. + * +#define BR_UMUL128 1 + */ + #endif