home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / sys / mac / programm / 18759 < prev    next >
Encoding:
Text File  |  1992-11-21  |  1016 b   |  34 lines

  1. Newsgroups: comp.sys.mac.programmer
  2. Path: sparky!uunet!world!squeegee
  3. From: squeegee@world.std.com (Stephen C. Gilardi)
  4. Subject: 64-bit multiply and divide on 68000
  5. Message-ID: <By3BM7.InD@world.std.com>
  6. Summary: Need fast 64-bit math on 68000, like specialized 68020 instructions
  7. Keywords: 68000 Assembler Math discrete
  8. Organization: SQ Software via The World Public Access UNIX, Brookline, MA
  9. Date: Sat, 21 Nov 1992 23:51:42 GMT
  10. Lines: 22
  11.  
  12. I need to calculate a linear interpolation rapidly.  The equation is
  13.  
  14.   y = x * numer / denom,
  15.  
  16. where y, numer, and denom are 32-bit unsigned longs and x is a 16-bit
  17. unsigned short.
  18.  
  19. On the 68020, I can use the built-in "long" multiply and divide instructions.
  20. However on the 68000 it's more involved.
  21.  
  22. I found 68000 code in a book to do the 64-bit unsigned multiply.  I'd
  23. like to have the divide in assembly language as well.
  24.  
  25. Does anyone have such a routine, or a reference to where I can find one?
  26.  
  27. Thanks,
  28. --Steve
  29.  
  30. Stephen C. Gilardi
  31. SQ Software
  32. squeegee@world.std.com
  33.  
  34.