Re: How to use floating point in a module?

From: Valdis . Kletnieks
Date: Wed Jun 02 2004 - 14:32:51 EST


On Wed, 02 Jun 2004 00:52:57 CDT, ndiamond@xxxxxxxxxxxxx said:

> I'm not quite sure what that means. It was pretty easy to code a log2()
> function using the built-in opcode, but it took me nearly a day to code
> an exp2() function. The built-in f2xm1 opcode helps a lot but there's
> no help for the other half exp2()'s lot.

I think what he meant was that if you get basic stuff like floating point
add and subtract, all the other opcodes like f2xm1 work as well. If there
isn't an opcode you're still have to build the code from the appropriate
primitives, of course....

Attachment: pgp00000.pgp
Description: PGP signature