7bc92c1e6e
- makedepend on mpfr-devel: used for arbitrary precision floats, otherwise they are limited to double precision (53 bits ~ 13 digits) - makedepend on pari-devel: used for number theory functions - fix one line of test output to match a change in pari - fix a bug in invmod which resulted in a test fail (chk_xavier) - increase stacksize in musl which is needed for tests to pass In addition to the two new makedepends, there is a small patch that fixes one line of test output to match a change in pari. With this commit, all 12 tests pass in glibc and in musl. See #28989 for the original issue.
14 lines
381 B
Diff
14 lines
381 B
Diff
--- src/modpoly.cc.orig 2020-02-18 10:07:10.000000000 -0300
|
|
+++ src/modpoly.cc 2021-03-08 02:18:09.443740199 -0300
|
|
@@ -92,7 +92,10 @@
|
|
gen invenv(const gen & g,environment * env){
|
|
if (g.type==_USER)
|
|
return g._USERptr->inv();
|
|
- return invmod(g,env->modulo);
|
|
+ if (env->moduloon)
|
|
+ return invmod(g,env->modulo);
|
|
+ else
|
|
+ return gen(1)/g;
|
|
}
|
|
|
|
/*
|