Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site brl-tgr.ARPA Path: utzoo!linus!philabs!cmcl2!seismo!brl-tgr!gwyn From: gwyn@brl-tgr.ARPA (Doug Gwyn ) Newsgroups: net.lang.c Subject: Re: double vs single precision Message-ID: <1335@brl-tgr.ARPA> Date: Wed, 8-Jan-86 08:59:41 EST Article-I.D.: brl-tgr.1335 Posted: Wed Jan 8 08:59:41 1986 Date-Received: Fri, 10-Jan-86 06:45:52 EST References: <1333@brl-tgr.ARPA> Organization: Ballistic Research Lab Lines: 12 > My suggestion is to provide ANSI C with the standard pragmas > #pragma float /* force single precision */ > #pragma double /* force double precision */ > that the programmer could insert above the arithmetic statement > to specify the precision to use. These pragmas would be ignored > on compilers that choose not to give the programmer a choice. I think the use of #pragma for this is a good idea (I would use "use-single-precision" or "no-single-precision" pragmas), but the content of a #pragma should not be in the standard; it is intended as a portable way to invoke processing that is beyond the scope of the standard. Pragmas are implementation-specific.