Jump to content
  • Advertisement
Sign in to follow this  
_Vicious_

asOBJ_APP_CLASS_ALLINTS

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

Hi Andres,

should the asOBJ_APP_CLASS_ALLINTS flag be used for a class that contains only integer properties, all but one declared as 'const in' and the last one as 'const uint64'?

Share this post


Link to post
Share on other sites
Advertisement
Yes. In fact, unless the class contains any floats or doubles you can always use the asOBJ_APP_CLASS_ALLINTS flag.

If I understood the AMD64 ABI correctly, even in some cases were a float is a member of the class the asOBJ_APP_CLASS_ALLINTS flag can stlll be used. For example, struct { int a; float b; } would be an asOBJ_APP_CLASS_ALLINTS, but not struct { int a; int b; float c;}.

I think the rule is something like this. Each block of 64bits are classified separately. If the block contains at least one byte that is not a float or double, then the block is classified as an integer. Only if the 64bit block contains 2 floats or 1 double is it classified as float.

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.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!