libtom / tomsfastmath

TomsFastMath is a fast public domain, open source, large integer arithmetic library written in portable ISO C.
http://www.libtom.net
Other
213 stars 66 forks source link

ppc32: fix fp_montgomery_reduce assembly #9

Closed pattop closed 9 years ago

pattop commented 9 years ago

Previous patch modified constraints from =m to =g. Turns out this also allows registers which doesn't work with the inline assembly instructions.

If we change back to =m GCC 5.0 warns that constraints do not allow a register.

In order to work around these issues we now pass the arguments in registers and let GCC handle the loading & storing.