Jump to content
  • Advertisement


This topic is now archived and is closed to further replies.


Inline functions

This topic is 6668 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

What exactly does making a function ''inline'' do? And when should I make a function ''inline''? I think it has something to do with speed but I''m not sure. Dan

Share this post

Link to post
Share on other sites
When using "inline" with VectorC, it is the "intermediate representation" of the inline function that is copied into your new (calling) function. Then the optimizer is applied to the result. This means that inline functions are very similar to macros - except that arguments are guaranteed to be evaluated only once.

This means that separate inline calls can be vectorized in parallel.

Andrew Richards
CodePlay - http://www.codeplay.com

Share this post

Link to post
Share on other sites

  • 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!