home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.mac.programmer
- Path: sparky!uunet!world!squeegee
- From: squeegee@world.std.com (Stephen C. Gilardi)
- Subject: 64-bit multiply and divide on 68000
- Message-ID: <By3BM7.InD@world.std.com>
- Summary: Need fast 64-bit math on 68000, like specialized 68020 instructions
- Keywords: 68000 Assembler Math discrete
- Organization: SQ Software via The World Public Access UNIX, Brookline, MA
- Date: Sat, 21 Nov 1992 23:51:42 GMT
- Lines: 22
-
- I need to calculate a linear interpolation rapidly. The equation is
-
- y = x * numer / denom,
-
- where y, numer, and denom are 32-bit unsigned longs and x is a 16-bit
- unsigned short.
-
- On the 68020, I can use the built-in "long" multiply and divide instructions.
- However on the 68000 it's more involved.
-
- I found 68000 code in a book to do the 64-bit unsigned multiply. I'd
- like to have the divide in assembly language as well.
-
- Does anyone have such a routine, or a reference to where I can find one?
-
- Thanks,
- --Steve
-
- Stephen C. Gilardi
- SQ Software
- squeegee@world.std.com
-
-