bug-gmp
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CLN, GMP inputs


From: Kevin Ryde
Subject: Re: CLN, GMP inputs
Date: 11 May 2001 08:24:27 +1000
User-agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.5

Hans Aberg <address@hidden> writes:
> 
> If a CPU would support instructions for
>   +, -, *: 1-register x 1-register -> 2-register
> then the small number representations could be made very fast. (But I am
> told that many CPU's do not support that.)

Overflow detection is always possible, whether it's particularly
convenient or not is another question.

> GMP would only need to define the basic arithmetic operations involving
> __mpz_struct; the ones involving native integral types could be macroed on
> top of them.

Yes, if smallnum operations matter then they don't want to be burdened
with a function call every time.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]