home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / lang / c / 18832 < prev    next >
Encoding:
Internet Message Format  |  1992-12-23  |  1.3 KB

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!cs.utexas.edu!sun-barr!olivea!charnel!sifon!thunder.mcrcim.mcgill.edu!mouse
  2. From: mouse@thunder.mcrcim.mcgill.edu (der Mouse)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: floating point arithmetic
  5. Message-ID: <1992Dec23.173246.12385@thunder.mcrcim.mcgill.edu>
  6. Date: 23 Dec 92 17:32:46 GMT
  7. References: <BznK8A.1xy@magrana1.uucp>
  8. Organization: McGill Research Centre for Intelligent Machines
  9. Lines: 21
  10.  
  11. In article <BznK8A.1xy@magrana1.uucp>, rob@magrana1.uucp (Rob Duncan) writes:
  12.  
  13. > Has anyone come across code to implement floating point arithmetic
  14. > with C integers?
  15.  
  16. I did.  I built a PDP-11 assembler, and of course wanted the assembler
  17. to do arithmetic using PDP-11 floats, even if the native floating point
  18. format of the machine it's running on bore no resemblance to the
  19. PDP-11's.  Of course, it doesn't do lots of things IEEE floats do, like
  20. infinities and denormalized numbers and NaNs, 'cause they don't exist
  21. in PDP-11 floats, but it may be useful as a starting point.
  22.  
  23. It's all up for anonymous ftp from larry.mcrcim.mcgill.edu
  24. (132.206.1.1) in /pdp11.  The directory is a bit messy, because that's
  25. the directory I work in when working with the '11 stuff, but ya pays
  26. yer money and ya takes yer chances.
  27.  
  28.                     der Mouse
  29.  
  30.                 mouse@larry.mcrcim.mcgill.edu
  31.