Re: 'f' suffix vs. -float directive

New Message Reply Date view Thread view Subject view Author view

Allan Schaffer (aschaffe++at++shark.paris.sgi.com)
Thu, 9 Feb 1995 16:02:37 +0100


>
> Is there a difference between using the -float compiler
> flag and putting a 'f' after each real number in a
> performer program? If not, then why is this 'f' feature
> included?

No difference that I can think of. As to why,

  - I imagine it is standard K&R C (but don't have K&R in front of me
    to check)

  - Lets you choose to restrict only certain promotions, if you so choose

  - The -float option is ignored in all ANSI/ISO C conformance modes
    and only has effect -cckr mode. ANSI/ISO C uses single precision
    floating-point operations where allowed by the Standard.

Allan

-- 
Allan Schaffer
Silicon Graphics
aschaffe++at++sgi.com
http://reality.sgi.com/employees/aschaffe

New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:50:57 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.