|
|
1.1 ! root 1: ! 2: ! 3: mdiv() Multiple-Precision Mathematics mdiv() ! 4: ! 5: ! 6: ! 7: ! 8: Divide multiple-precision integers ! 9: ! 10: #include <mprec.h> ! 11: vvooiidd mmddiivv(_a, _b, _q, _r) ! 12: mmiinntt *_a, *_b, *_q, *_r; ! 13: ! 14: The COHERENT system includes a suite of routines that allow you ! 15: to perform multiple-precision mathematics. The function mdiv ! 16: divides the multiple-precision integer (or mmiinntt) pointed to by a ! 17: with that pointed to by b. It writes the quotient and remainder ! 18: into, respectively, q and r. b must not be zero. The results of ! 19: the operation are defined by the following conditions: ! 20: ! 21: 11. _a = _q * _b + _r ! 22: ! 23: 22. The sign of r equals the sign of q ! 24: ! 25: 33. The absolute value of r is greater than the absolute value of ! 26: b. ! 27: ! 28: ***** See Also ***** ! 29: ! 30: multiple-precision mathematics ! 31: ! 32: ! 33: ! 34: ! 35: ! 36: ! 37: ! 38: ! 39: ! 40: ! 41: ! 42: ! 43: ! 44: ! 45: ! 46: ! 47: ! 48: ! 49: ! 50: ! 51: ! 52: ! 53: ! 54: ! 55: ! 56: ! 57: ! 58: ! 59: ! 60: ! 61: ! 62: ! 63: ! 64: COHERENT Lexicon Page 1 ! 65: ! 66:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.