C implementation of mod_1_1

Torbjorn Granlund tg at gmplib.org
Tue Mar 1 08:55:02 CET 2011


nisse at lysator.liu.se (Niels Möller) writes:

  I'm very curious about tuneup results on other machines (and of course,
  if I have broken anything...).
  
A code review revealed one problem:

   _mask = -(_r > _ql)
   ... somelimb & mask ...

A comparison operation is 'int' valued, the negation is of an integer,
meaning that mask will typically be 0xffffffff.

-- 
Torbjörn


More information about the gmp-devel mailing list