[m-users.] Too Slow

Matthias Güdemann matthias.guedemann at googlemail.com
Wed May 13 20:28:37 AEST 2015


Hi Peter,

thanks again for your helpful comments.

> mp_int(N) = Res :- ( N < 0 -> ( N = min_int -> % Avoid `-min_int' as
> it overflows.  mp_init(-(min_int + 1), M), Res = -(M + one) ;
> mp_init(-N, M), Res = -M ) ; mp_init(N, Res) ).

> mp_init/3 still has a call to mp_set_int that should be
> mp_set_long_long.

I integrated your two proposals into the PR.

Matthias



More information about the users mailing list