diff options
Diffstat (limited to 'third_party/heimdal/lib/hcrypto/libtommath/tommath_cutoffs.h')
-rw-r--r-- | third_party/heimdal/lib/hcrypto/libtommath/tommath_cutoffs.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/third_party/heimdal/lib/hcrypto/libtommath/tommath_cutoffs.h b/third_party/heimdal/lib/hcrypto/libtommath/tommath_cutoffs.h new file mode 100644 index 00000000000..a65a9b3e32b --- /dev/null +++ b/third_party/heimdal/lib/hcrypto/libtommath/tommath_cutoffs.h @@ -0,0 +1,13 @@ +/* LibTomMath, multiple-precision integer library -- Tom St Denis */ +/* SPDX-License-Identifier: Unlicense */ +/* + Current values evaluated on an AMD A8-6600K (64-bit). + Type "make tune" to optimize them for your machine but + be aware that it may take a long time. It took 2:30 minutes + on the aforementioned machine for example. + */ + +#define MP_DEFAULT_KARATSUBA_MUL_CUTOFF 80 +#define MP_DEFAULT_KARATSUBA_SQR_CUTOFF 120 +#define MP_DEFAULT_TOOM_MUL_CUTOFF 350 +#define MP_DEFAULT_TOOM_SQR_CUTOFF 400 |