misleading comment

View: New views
1 Messages — Rating Filter:   Alert me  

misleading comment

by Jason Moxham :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


in gmp-impl.h we have

/* Like udiv_qrnnd_preinv2, but for for any value D.  DNORM is D shifted left
   so that its most significant bit is set.  LGUP is ceil(log2(D)).  */
#define udiv_qrnnd_preinv2gen(q, r, nh, nl, d, di, dnorm, lgup)


Surely lgup should be floor(log2(D))+1

_______________________________________________
gmp-bugs mailing list
gmp-bugs@...
http://gmplib.org/mailman/listinfo/gmp-bugs