-
Notifications
You must be signed in to change notification settings - Fork 967
Correct documentation for HFA return values #4527
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
The listed rules for HVA return values was correct, but for HFAs it matters whether or not the type is an aggregate.
@sigatrev : Thanks for your contribution! The author(s) have been notified to review your proposed change. |
Learn Build status updates of commit 6d88468: ✅ Validation status: passed
For more details, please refer to the build report. For any questions, please:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, Matt.
#sign-off |
@@ -204,7 +204,7 @@ A type is considered to be an HFA or HVA if all of the following hold: | |||
- It doesn't have any non-trivial default or copy constructors, destructors, or assignment operators, | |||
- All of its members have the same HFA or HVA type, or are float, double, or neon types that match the other members' HFA or HVA types. | |||
|
|||
HFA and HVA values with four or fewer elements are returned in s0-s3, d0-d3, or v0-v3, as appropriate. | |||
HVA values with four or fewer elements are returned in s0-s3, d0-d3, or v0-v3, as appropriate. | |||
|
|||
Types returned by value are handled differently depending on whether they have certain properties, and whether the function is a non-static member function. Types which have all of these properties, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe clearer to explicitly state "non-HVA types" here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually, nevermind; there are rules for both HVAs and HFAs that aren't stated here, so that fix doesn't really help. I'm trying to work out the exact rules...
The listed rules for HVA return values was correct, but for HFAs it matters whether or not the type is an aggregate.