From b5aef8ffc3bfbaa916d02ed6e13f0c70da2be34f Mon Sep 17 00:00:00 2001 From: jasonmoxham Date: Mon, 13 Apr 2009 22:15:45 +0000 Subject: [PATCH] fat bits --- TODO | 5 ++++- mpn/x86/x86-defs.m4 | 2 ++ mpn/x86_64/x86_64-defs.m4 | 2 ++ tests/mpn/t-fat.c | 2 +- 4 files changed, 9 insertions(+), 2 deletions(-) diff --git a/TODO b/TODO index 2663fb4c..433714ac 100644 --- a/TODO +++ b/TODO @@ -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 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 + diff --git a/mpn/x86/x86-defs.m4 b/mpn/x86/x86-defs.m4 index a8a354c9..67ce0831 100644 --- a/mpn/x86/x86-defs.m4 +++ b/mpn/x86/x86-defs.m4 @@ -64,7 +64,9 @@ define(CPUVEC_FUNCS_LIST, `copyi', `divexact_1', `divexact_by3c', +`divexact_byBm1of', `divrem_1', +`divrem_euclidean_qr_1', `gcd_1', `lshift', `mod_1', diff --git a/mpn/x86_64/x86_64-defs.m4 b/mpn/x86_64/x86_64-defs.m4 index 4823c393..4f5dd732 100644 --- a/mpn/x86_64/x86_64-defs.m4 +++ b/mpn/x86_64/x86_64-defs.m4 @@ -49,7 +49,9 @@ define(CPUVEC_FUNCS_LIST, `copyi', `divexact_1', `divexact_by3c', +`divexact_byBm1of', `divrem_1', +`divrem_euclidean_qr_1', `gcd_1', `lshift', `mod_1', diff --git a/tests/mpn/t-fat.c b/tests/mpn/t-fat.c index 86434c42..0b105f27 100644 --- a/tests/mpn/t-fat.c +++ b/tests/mpn/t-fat.c @@ -145,7 +145,7 @@ check_functions (void) for (i = 0; i < 2; i++) { 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 (r == 0); }