Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | |
| 2 | Signed-off-by: Armin Kuster <akuster808@gmail.com> |
| 3 | |
| 4 | This patch with pulled from gmp. |
| 5 | https://gmplib.org/repo/gmp/rev/4a6d258b467f |
| 6 | Upstream-Status: Backport |
| 7 | |
| 8 | # HG changeset patch |
| 9 | # User Torbjorn Granlund <tege@gmplib.org> |
| 10 | # Date 1395835068 -3600 |
| 11 | # Node ID 4a6d258b467f661da0894cc60ecd060f2e3c67c7 |
| 12 | # Parent 301ce2788826a2d4d2725bd5cf01e998638db37a |
| 13 | Provide default for BMOD_1_TO_MOD_1_THRESHOLD. |
| 14 | |
| 15 | diff -r 301ce2788826 -r 4a6d258b467f mpn/powerpc64/mode64/gcd_1.asm |
| 16 | --- a/mpn/powerpc64/mode64/gcd_1.asm Tue Mar 25 15:34:52 2014 +0100 |
| 17 | +++ b/mpn/powerpc64/mode64/gcd_1.asm Wed Mar 26 12:57:48 2014 +0100 |
| 18 | @@ -43,6 +43,9 @@ |
| 19 | define(`n', `r4') |
| 20 | define(`v0', `r5') |
| 21 | |
| 22 | +ifdef(`BMOD_1_TO_MOD_1_THRESHOLD',, |
| 23 | + `define(`BMOD_1_TO_MOD_1_THRESHOLD',30)') |
| 24 | + |
| 25 | EXTERN_FUNC(mpn_mod_1) |
| 26 | EXTERN_FUNC(mpn_modexact_1c_odd) |