ieee80.h 731 B

1234567891011121314151617
  1. /***************************************************************\
  2. * IEEE80.h*
  3. * Convert between "double" and IEEE 80 bit format *
  4. * in machine independent manner.*
  5. * Assumes array of char is a continuous region of 8 bit frames*
  6. * Assumes (unsigned long) has 32 useable bits*
  7. * billg, dpwe @media.mit.edu*
  8. * 01aug91*
  9. * 19aug91 aldel/dpwe workaround top bit problem in Ultrix*
  10. * cc's double->ulong cast*
  11. * 05feb92 dpwe/billg workaround top bit problem*
  12. * THINKC4 + 68881 casting*
  13. \***************************************************************/
  14. double ieee_80_to_double(unsigned char *p);
  15. void double_to_ieee_80(double val, unsigned char *p);