ggml : fix indentation

pull/273/head
Georgi Gerganov 2 years ago
parent 9955fa4ed7
commit f66ac6dc4f
No known key found for this signature in database
GPG Key ID: 449E073F9DC10735

@ -140,9 +140,6 @@ ggml_fp16_t ggml_fp32_to_fp16(float x) {
#include <immintrin.h> #include <immintrin.h>
#endif #endif
// FP16 <-> FP32
// ref: https://github.com/Maratyszcza/FP16
#ifdef __F16C__ #ifdef __F16C__
float ggml_fp16_to_fp32(ggml_fp16_t h) { float ggml_fp16_to_fp32(ggml_fp16_t h) {
return _cvtsh_ss(h); return _cvtsh_ss(h);
@ -156,6 +153,9 @@ ggml_fp16_t ggml_fp32_to_fp16(float f) {
#else #else
// FP16 <-> FP32
// ref: https://github.com/Maratyszcza/FP16
static inline float fp32_from_bits(uint32_t w) { static inline float fp32_from_bits(uint32_t w) {
union { union {
uint32_t as_bits; uint32_t as_bits;

Loading…
Cancel
Save