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

Torbjorn Granlund tg at gmplib.org
Sun Feb 10 20:30:19 CET 2013


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.

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

-- 
Torbjörn


More information about the gmp-devel mailing list