We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Just not sure.
The text was updated successfully, but these errors were encountered:
It appears to give the incorrect carry. I got these results:
4294967291 + 0: 4294967291 1 4294967291 + 1: 4294967292 1 4294967291 + 2: 4294967293 1 4294967291 + 3: 4294967294 1 4294967291 + 4: 4294967295 1 4294967291 + 5: 0 0 4294967291 + 6: 1 0 4294967291 + 7: 2 1 4294967291 + 8: 3 1 4294967291 + 9: 4 1
with this:
#include <iostream> #include <glm/glm.hpp> #include <limits> void test(unsigned int n) { glm::uint a = std::numeric_limits<glm::uint>::max() - 4, b = n, carry = 0; glm::uint result = glm::uaddCarry(a, b, carry); std::cout << a << " + " << b << ": " << result << ' ' << carry << std::endl; } int main() { for(unsigned int i = 0; i < 10; ++i) test(i); }
This was on the current master branch.
Sorry, something went wrong.
Fixed uaddCarray #253. Fixed GCC build errors.
4564598
Fixed uaddCarray and updated tests #253
72cbc4c
Groovounet
No branches or pull requests
Just not sure.
The text was updated successfully, but these errors were encountered: