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? 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
const assert = @import("std").debug.assert; test "bitCast to array" { comptime testBitCastArray(); testBitCastArray(); } fn testBitCastArray() void { assert(extractOne64(0x0123456789abcdef0123456789abcdef) == 0x0123456789abcdef); } fn extractOne64(a: u128) u64 { const x = @bitCast([2]u64, a); return x[1]; }
The text was updated successfully, but these errors were encountered:
endianness is relevant here.
Sorry, something went wrong.
2fe8a08
No branches or pull requests
The text was updated successfully, but these errors were encountered: