Skip to content
This repository was archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
Add sig_on magic for NTL polynomial exponentiation.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jean-Pierre Flori committed May 19, 2014
1 parent fa6d509 commit 80db6aa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/sage/libs/ntl/ntl_ZZ_pEX_linkage.pxi
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,9 @@ cdef inline int celement_pow(ZZ_pEX_c* res, ZZ_pEX_c* x, long e, ZZ_pEX_c *modul
cdef ZZ_pEX_c y
if modulus == NULL:
if ZZ_pEX_IsX(x[0]):
sig_on()
ZZ_pEX_LeftShift(res[0], x[0], e - 1)
sig_off()
else:
sig_on()
ZZ_pEX_power(res[0], x[0], e)
Expand Down

0 comments on commit 80db6aa

Please sign in to comment.