Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!genrad!panda!talcott!harvard!cmcl2!philabs!pwa-b!mmintl!franka From: franka@mmintl.UUCP (Frank Adams) Newsgroups: net.lang.c Subject: Re: integer division in ANSI C Message-ID: <1169@mmintl.UUCP> Date: Wed, 5-Mar-86 14:32:30 EST Article-I.D.: mmintl.1169 Posted: Wed Mar 5 14:32:30 1986 Date-Received: Mon, 10-Mar-86 00:09:32 EST References: <695@sftig.UUCP> <316@hropus.UUCP> Reply-To: franka@mmintl.UUCP (Frank Adams) Organization: Multimate International, E. Hartford, CT Lines: 20 In article <316@hropus.UUCP> ka@hropus.UUCP (Kenneth Almquist) writes: [Concerning proposed ANSI divide funtion] >I would >suggest making the routines simpler to use by providing separate >routines for division and remainder, as this will encourage more people >to use them when necessary. This would also mean that these routines >could be replaced with simple macros on machines that do division the >Fortran way (most of them). > >It would also be nice to have a modulo function. In my view, this >would be more useful than a remainder function. Let me second both of these notions, especially the first. It is relatively rare to want both quotient and remainder. Having to go through the extra effort of pulling out the one desired is probably enough to keep most C programmers from using the function unless they are on a machine where they need it. Frank Adams ihnp4!philabs!pwa-b!mmintl!franka Multimate International 52 Oakland Ave North E. Hartford, CT 06108