home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / lang / fortran / 3257 < prev    next >
Encoding:
Text File  |  1992-08-29  |  1.5 KB  |  29 lines

  1. Newsgroups: comp.lang.fortran
  2. Path: sparky!uunet!sun-barr!ames!agate!dog.ee.lbl.gov!hellgate.utah.edu!lanl!cochiti.lanl.gov!jlg
  3. From: jlg@cochiti.lanl.gov (Jim Giles)
  4. Subject: Re: Small Language Wanted
  5. Message-ID: <1992Aug28.153021.1358@newshost.lanl.gov>
  6. Sender: news@newshost.lanl.gov
  7. Organization: Los Alamos National Laboratory
  8. References: <DAVIS.92Aug23010605@pacific.mps.ohio-state.edu>     <H.3lvmyc56w&A@lionbbs.bs.open.de>     <1992Aug27.181926.5677@alchemy.chem.utoronto.ca>     <9224107.5975@mulga.cs.mu.OZ.AU>     <DAVIS.92Aug27211418@pacific.mps.ohio-state.edu> <DAVIS.92Aug28015332@pacific.mps.ohio-state.edu> <9224117.23480@mulga.cs.mu.OZ.AU>
  9. Date: Fri, 28 Aug 1992 15:30:21 GMT
  10. Lines: 17
  11.  
  12. In article <9224117.23480@mulga.cs.mu.OZ.AU>, fjh@cs.mu.OZ.AU (Fergus Henderson) writes:
  13. |> [...]
  14. |> The compiler must generate code that has the *same effect* as
  15. |> simply converting to double and then calling pow(), but it is
  16. |> quite free to substitute any equivalent code which may be more
  17. |> efficient, for example by converting the call to a couple of inline
  18. |> multiplications.
  19.  
  20. The above is literally true only if it's the language standard `pow'
  21. function that's being called.  If a user supplied `pow' is to be used
  22. it would probably be quite inapproptiate for the compiler to optimize
  23. the call in the way described here.  The C standard calls for some
  24. more arcane rules involving which header files are present and how they
  25. are defined to determine whether such optimizations are allowed.
  26.  
  27. -- 
  28. J. Giles
  29.