This commit is contained in:
jasonmoxham 2009-04-13 22:15:45 +00:00
parent 996bd50496
commit b5aef8ffc3
4 changed files with 9 additions and 2 deletions

5
TODO
View File

@ -10,6 +10,9 @@ mpn_divrem_1 with qxn=0 now calls mpn_divrem_euclidean_qr_1 always
replace all internel calls to mpn_divrem_1 with the new euclidean replace all internel calls to mpn_divrem_1 with the new euclidean
we could replace mpn_mod_1 as well !!! we could replace mpn_mod_1 as well !!!
yasm'ify addmul_2.asm and remove x86_defs etc yasm'ify addmul_2.asm
and remove x86_defs , why did I think I could delete this , its needed for
fat

View File

@ -64,7 +64,9 @@ define(CPUVEC_FUNCS_LIST,
`copyi', `copyi',
`divexact_1', `divexact_1',
`divexact_by3c', `divexact_by3c',
`divexact_byBm1of',
`divrem_1', `divrem_1',
`divrem_euclidean_qr_1',
`gcd_1', `gcd_1',
`lshift', `lshift',
`mod_1', `mod_1',

View File

@ -49,7 +49,9 @@ define(CPUVEC_FUNCS_LIST,
`copyi', `copyi',
`divexact_1', `divexact_1',
`divexact_by3c', `divexact_by3c',
`divexact_byBm1of',
`divrem_1', `divrem_1',
`divrem_euclidean_qr_1',
`gcd_1', `gcd_1',
`lshift', `lshift',
`mod_1', `mod_1',

View File

@ -145,7 +145,7 @@ check_functions (void)
for (i = 0; i < 2; i++) for (i = 0; i < 2; i++)
{ {
xp[0] = 578; xp[0] = 578;
r = mpn_divexact_byBm1of (wp, xp, (mp_size_t) 1, CNST_LIMB(17)); r = mpn_divexact_byBm1of (wp, xp, (mp_size_t) 1, CNST_LIMB(17),CNST_LIMB(-1)/CNST_LIMB(17));
ASSERT_ALWAYS (wp[0] == 34); ASSERT_ALWAYS (wp[0] == 34);
ASSERT_ALWAYS (r == 0); ASSERT_ALWAYS (r == 0);
} }