Jump to content
IGNORED

Any fast floating point or fixed point math code available?


Recommended Posts

10 minutes ago, XL Freak said:
Ticks  Math Package
-----  ------------
1010   Altirra package in Altirra Basic

 

 

Altirra BASIC doesn't include a math package, it uses the one that's included in the OS like Atari BASIC does. The above looks like it was still using the stock math pack, so it was only benchmarking the difference in the BASIC interpreter, which would have been minimal in this math-heavy test. You'd have to swap the OS for AltirraOS to get the different math pack code. (In general, it's a little bit faster than the Marslett code for multiplies and a bit slower for divides.)

 

  • Thanks 1
Link to comment
Share on other sites

On 7/23/2024 at 4:55 AM, XL Freak said:

This rom uses the Marlett's FastFP package (is this a good one?).

Yes. Note however, that the presence of Marslett's FP code in ROM makes Turbo-BASIC XL work incorrectly - the LOG() and EXP() functions will return meaningless results. I think that not even the TBXL version prepared by @dmsc has this fixed.

  • Like 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...