Skip to content
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

Remove some use of UB #465

Merged
merged 7 commits into from
Apr 19, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Revert whitespace change
  • Loading branch information
solidpixel committed Apr 19, 2024
commit 81c2d75d2a8976c52e6fa75b976072f63c339d6b
1 change: 1 addition & 0 deletions Source/astcenc_vecmathlib.h
Original file line number Diff line number Diff line change
Expand Up @@ -461,6 +461,7 @@ static ASTCENC_SIMD_INLINE vint4 unorm16_to_sf16(vint4 p)
p = p & vint4(0xFFFF);

p = lsr<6>(p);

p = p | lsl<10>((vint4(14) - lz));

vint4 r = select(p, fp16_one, is_one);
Expand Down