GMP floor and ceil
esarad at gmail.com
Sun Nov 23 12:20:14 CET 2008
I have the following requirement. a, b are positive integers and a>b.
To find Floor( a/b ) and Ceil ( a/b ) efficiently, when b does not divide a.
I am aware that gmp has floor and ceil functions. Where can I find the
algorithm used by GMP to find floor and ceil for the above case?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the gmp-discuss