Faster Floats

BlitzMax Forums/BlitzMax Programming/Faster Floats

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Bad idea.

The first one is faster because it's doing an integer move.

However, if you ever actually want to *use* the float (god forbid), a float move will eventually be required!

In addition, the first one will cause the float to be spilled, since you are taking the address of a local variable (which always causes a local to spill).