Path: utzoo!utgpu!watserv1!watmath!att!occrsh!uokmax!munnari.oz.au!samsung!uakari.primate.wisc.edu!crdgw1!crdos1!davidsen From: davidsen@crdos1.crd.ge.COM (Wm E Davidsen Jr) Newsgroups: comp.arch Subject: Re: F.P. vs. arbitrary-precision Message-ID: <2644@crdos1.crd.ge.COM> Date: 10 Sep 90 16:10:12 GMT References: <3755@osc.COM> <4513@taux01.nsc.com> <119244@linus.mitre.org> <1660@s6.Morgan.COM> <2534@l.cc.purdue.edu> Reply-To: davidsen@crdos1.crd.ge.com (bill davidsen) Organization: GE Corp R&D Center, Schenectady NY Lines: 14 In article <1660@s6.Morgan.COM>, amull@Morgan.COM (Andrew P. Mullhaupt) writes: > As for integer divide, less of a case can be made, and I can do without > it. Although integer quotient and remainder are probably computed > simultaneously, some languages (like C) force one to get those results > separately. If this wasn't the case, probably integer divides would > take up 25% less of our time. Actually ANSI C does provide a function which does just what you said, and a type (div_t) which contains the two values. And you can define it builtin if your implementation desires. -- bill davidsen (davidsen@crdos1.crd.GE.COM -or- uunet!crdgw1!crdos1!davidsen) VMS is a text-only adventure game. If you win you can use unix.