home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / programm / 2092 < prev    next >
Encoding:
Internet Message Format  |  1992-07-23  |  1.4 KB

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!wupost!waikato.ac.nz!aukuni.ac.nz!ecmtwhk
  2. Newsgroups: comp.programming
  3. Subject: Re: floating point routines with double precision
  4. Message-ID: <1992Jul24.020828.11240@ccu1.aukuni.ac.nz>
  5. From: ecmtwhk@ccu1.aukuni.ac.nz (Thomas Koenig)
  6. Date: Fri, 24 Jul 1992 02:08:28 GMT
  7. References: <2A65BFF1.14443@noiro.acs.uci.edu>
  8. Organization: University of Auckland, New Zealand.
  9. Lines: 20
  10.  
  11. jtien@venice.eng.uci.edu (Joe Tien) writes:
  12.  
  13. >Does anyone know where I can get floating point routine using double precision?
  14. >The CPU I'm working on doesn't have a FPU so all the fp operations needs to be
  15. >done in software. What I plan to do is take the fp routines in C and 
  16. >hand-translate them to assembly code (I don't have a compiler either, :-( )
  17.  
  18. Take a look at the source of the GNU-C distribution for the Atari ST at
  19. atari.archive.umich.edu [141.211.164.8]; it's got double precision
  20. routines. The basic routines are written in 68000 assembler (which is
  21. one of the nicer assembler languages around); the higher functions
  22. (sin, cos, exp) are contained in the pml library and written in C.
  23. They do use IEEE format, but I don't think they actually implement the
  24. standard with respect to NaN's, INF and gradual underflow.
  25.  
  26. Hope this helps
  27. -- 
  28. Thomas Koenig, ecmtwhk@ccu1.aukuni.ac.nz, ib09@rz.uni-karlsruhe.de
  29. The joy of engineering is to find a straight line on a double logarithmic
  30. diagram.
  31.