mpz_{eq,lt,gt}_{ui,si}_p macros?

Marc Glisse marc.glisse at inria.fr
Sun Feb 10 20:55:33 CET 2013


On Sun, 10 Feb 2013, Torbjorn Granlund wrote:

> bodrato at mail.dm.unipi.it writes:
>
>  If you like the idea, then please read carefully the lt_si and gt_si
>  variants, I'm not sure I'm handling correctly the negative constants.
> 
> I like the idea.
>
> I stopped reading when I found that several __builtin_constant_p had
> compund arguments.  I doubt __builtin_constant_p (0 < 1) makes sense, I
> think the argument must be a lexical constant, not an expression which
> after folding is constant.

I think we already had the same conversation in February 2011 on 
gmp-discuss ;-)

> Example: __builtin_constant_p ((UI) > 0 && (UI) <= GMP_NUMB_MAX)

-- 
Marc Glisse


More information about the gmp-devel mailing list