comparison bncore.c @ 190:d8254fc979e9 libtommath-orig LTM_0.35

Initial import of libtommath 0.35
author Matt Johnston <matt@ucc.asn.au>
date Fri, 06 May 2005 08:59:30 +0000
parents d29b64170cf0
children c5c969ed76f3
comparison
equal deleted inserted replaced
142:d29b64170cf0 190:d8254fc979e9
18 /* Known optimal configurations 18 /* Known optimal configurations
19 19
20 CPU /Compiler /MUL CUTOFF/SQR CUTOFF 20 CPU /Compiler /MUL CUTOFF/SQR CUTOFF
21 ------------------------------------------------------------- 21 -------------------------------------------------------------
22 Intel P4 Northwood /GCC v3.4.1 / 88/ 128/LTM 0.32 ;-) 22 Intel P4 Northwood /GCC v3.4.1 / 88/ 128/LTM 0.32 ;-)
23 AMD Athlon64 /GCC v3.4.4 / 74/ 124/LTM 0.34
23 24
24 */ 25 */
25 26
26 int KARATSUBA_MUL_CUTOFF = 88, /* Min. number of digits before Karatsuba multiplication is used. */ 27 int KARATSUBA_MUL_CUTOFF = 74, /* Min. number of digits before Karatsuba multiplication is used. */
27 KARATSUBA_SQR_CUTOFF = 128, /* Min. number of digits before Karatsuba squaring is used. */ 28 KARATSUBA_SQR_CUTOFF = 124, /* Min. number of digits before Karatsuba squaring is used. */
28 29
29 TOOM_MUL_CUTOFF = 350, /* no optimal values of these are known yet so set em high */ 30 TOOM_MUL_CUTOFF = 350, /* no optimal values of these are known yet so set em high */
30 TOOM_SQR_CUTOFF = 400; 31 TOOM_SQR_CUTOFF = 400;
31 #endif 32 #endif