Skip to content

Commit 076bd2b

Browse files
authored
Update types.comp
1 parent 93447d7 commit 076bd2b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ggml/src/ggml-vulkan/vulkan-shaders/types.comp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1413,8 +1413,8 @@ float bf16_to_fp32(uint32_t u)
14131413
}
14141414

14151415
float e8m0_to_fp32(uint8_t x) {
1416-
// branchless implementation
1417-
uint is_zero = uint(x == 0);
1416+
// branchless implementation
1417+
uint is_zero = uint(x == 0);
14181418
uint result = (uint(x) << 23) | (is_zero << 22);
14191419
return uintBitsToFloat(result);
14201420
}

0 commit comments

Comments
 (0)