Skip to content
Open
Changes from all commits
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
4 changes: 1 addition & 3 deletions src/ggml-impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -496,9 +496,7 @@ GGML_API float ggml_table_f32_f16[1 << 16];
// This is also true for POWER9.
#if !defined(GGML_FP16_TO_FP32)
inline static float ggml_lookup_fp16_to_fp32(ggml_fp16_t f) {
uint16_t s;
memcpy(&s, &f, sizeof(uint16_t));
return ggml_table_f32_f16[s];
return ggml_table_f32_f16[f];
}

#define GGML_FP16_TO_FP32(x) ggml_lookup_fp16_to_fp32(x)
Expand Down