tweek mod_1_1 amd asm to full speed

This commit is contained in:
jasonmoxham 2009-10-02 02:57:31 +00:00
parent a7eee56d24
commit 520fec686d
2 changed files with 4 additions and 4 deletions

View File

@ -36,10 +36,10 @@ mov %rdx,%rcx
sub $2,%rcx
ALIGN(16)
lp:
mov $0,%r11
mul %r8
mov -8(%rsi,%rcx,8),%r10
mul %r8
add %rax,%r10
mov $0,%r11
adc %rdx,%r11
mov %r13,%rax
mul %r9

View File

@ -970,12 +970,12 @@ void tune_mod_1_k (gmp_randstate_t rands)
one (&mod_1_1_threshold, rands, &param);
param.name = "MOD_1_2_THRESHOLD";
param.min_size = mod_1_1_threshold;
param.min_size = MAX(mod_1_1_threshold,4);
//param.max_size = 1000;
one (&mod_1_2_threshold, rands, &param);
param.name = "MOD_1_3_THRESHOLD";
param.min_size = mod_1_2_threshold;
param.min_size = MAX(mod_1_2_threshold,5);
//param.max_size = 10000;
one (&mod_1_3_threshold, rands, &param);