Jump to content
  • Advertisement
Sign in to follow this  
ProPuke

WANTED: fdiv quotient and remainder optimisation

This topic is 5023 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Okay I was wondering if anyone knew of, or had heard of, an optimised way of performing a division & remainder check @ the same time for floating point math. div & ldiv are available for integer division, but what I'm really after is an fdiv or ddiv. Does the floating point structure leave room for implementing an optimisation like this, or would it quite simple be a pain in the butt & more worth performing both operations seperately? Or is there a blatently obvious alternative? Thoughts wanted [Edited by - ProPuke on November 12, 2004 1:38:54 PM]

Share this post


Link to post
Share on other sites
Advertisement
if your compiler supports c99 standard then your can use the function called remquo, highly doubt any of ms's compilers support it considering there mainly C++ compilers (although they have added a thew functions from the C99 standard), note yes C++ is not a superset of C anymore.

EDIT: Okay MS compilers don't support it for definite, how-ever GCC does.

Share this post


Link to post
Share on other sites
[cool] Ahh ty my brother

Just was I was looking for. I searched long & hard for that.
I don't use an icky ms compiler anyway ;] g++ ^^
ty very much

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!