diff options
| author | Jacob McDonnell <jacob@jacobmcdonnell.com> | 2026-04-25 21:07:28 -0400 |
|---|---|---|
| committer | Jacob McDonnell <jacob@jacobmcdonnell.com> | 2026-04-25 21:07:28 -0400 |
| commit | 711594636704defae873be1a355a292505585afd (patch) | |
| tree | 59ee13f863830d8beba6cfd02bbe813dd486c26f /static/v10/man3/ldiv.3 | |
| parent | 3258a063c1f189d7b019e40e525b46bef9b9a7b1 (diff) | |
docs: Added UNIX V10 Manuals
Diffstat (limited to 'static/v10/man3/ldiv.3')
| -rw-r--r-- | static/v10/man3/ldiv.3 | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/static/v10/man3/ldiv.3 b/static/v10/man3/ldiv.3 new file mode 100644 index 00000000..ad949620 --- /dev/null +++ b/static/v10/man3/ldiv.3 @@ -0,0 +1,43 @@ +.th LDIV III 5/7/73 +.sh NAME +ldiv \*- long division +.sh SYNOPSIS +.ft B +ldiv(hidividend, lodividend, divisor) +.s3 +lrem(hidividend, lodividend, divisor) +.ft R +.sh DESCRIPTION +The +concatenation of the signed +16-bit +.it hidividend +and the unsigned 16-bit +.it lodividend +is divided by +\fIdivisor\fR. +The 16-bit signed quotient is returned by +.it ldiv +and the 16-bit signed remainder is returned by +.it lrem. +Divide check and erroneous results +will occur +unless the magnitude of the +divisor is greater than that of the high-order +dividend. +.s3 +An integer division of an unsigned +dividend by a signed divisor may +be accomplished by +.s3 + quo = ldiv(0, dividend, divisor); +.s3 +and similarly for the remainder operation. +.s3 +Often both the quotient and the remainder are wanted. +Therefore +.it ldiv +leaves a remainder in the external cell +.it ldivr. +.sh BUGS +No divide check check. |
