Generic udiv_qrnnd.c.
authordrepper <drepper>
Wed, 14 Dec 2005 11:29:36 +0000 (11:29 +0000)
committerdrepper <drepper>
Wed, 14 Dec 2005 11:29:36 +0000 (11:29 +0000)
stdlib/udiv_qrnnd.c [new file with mode: 0644]

diff --git a/stdlib/udiv_qrnnd.c b/stdlib/udiv_qrnnd.c
new file mode 100644 (file)
index 0000000..d32796c
--- /dev/null
@@ -0,0 +1,10 @@
+/* For some machines GNU MP needs to define an auxiliary function:
+
+   udiv_qrnnd (quotient, remainder, high_numerator, low_numerator, denominator)
+
+   Divides a two-word unsigned integer, composed by the integers
+   HIGH_NUMERATOR and LOW_NUMERATOR, by DENOMINATOR and places the quotient
+   in QUOTIENT and the remainder in REMAINDER.  HIGH_NUMERATOR must be less
+   than DENOMINATOR for correct operation.  If, in addition, the most
+   significant bit of DENOMINATOR must be 1, then the pre-processor symbol
+   UDIV_NEEDS_NORMALIZATION is defined to 1.  */