mirror of
https://github.com/ggerganov/whisper.cpp.git
synced 2025-04-28 21:29:15 +02:00
ggml : fix indentation
This commit is contained in:
parent
9955fa4ed7
commit
f66ac6dc4f
6
ggml.c
6
ggml.c
@ -140,9 +140,6 @@ ggml_fp16_t ggml_fp32_to_fp16(float x) {
|
||||
#include <immintrin.h>
|
||||
#endif
|
||||
|
||||
// FP16 <-> FP32
|
||||
// ref: https://github.com/Maratyszcza/FP16
|
||||
|
||||
#ifdef __F16C__
|
||||
float ggml_fp16_to_fp32(ggml_fp16_t h) {
|
||||
return _cvtsh_ss(h);
|
||||
@ -156,6 +153,9 @@ ggml_fp16_t ggml_fp32_to_fp16(float f) {
|
||||
|
||||
#else
|
||||
|
||||
// FP16 <-> FP32
|
||||
// ref: https://github.com/Maratyszcza/FP16
|
||||
|
||||
static inline float fp32_from_bits(uint32_t w) {
|
||||
union {
|
||||
uint32_t as_bits;
|
||||
|
Loading…
Reference in New Issue
Block a user