fixed point math?

Adam Megacz gcj@lists.megacz.com
Fri Jun 27 00:04:00 GMT 2003


Hey, sorry I haven't been around much recently...
Does anybody know if there's a quick, easy way to compile a program
that uses lots of float's so that the floats are represented as
fixed-point values? An added bonus would be continuing to generate
floating point ops for double's, but that's not a requirement.
The only idea I've come up with is rewriting libfloat and using
-msoft-float. Is there an easier or cleaner way?
In theory it should be possible to write a tool that takes java
bytecode and rewrites all the float ops to fixpoint ops and then
re-emits the bytecode... that would be (by far) the coolest solution,
but I doubt that anybody's done that.
 - a


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /