aboutsummaryrefslogtreecommitdiff
path: root/ggml.c
diff options
context:
space:
mode:
authorPavol Rusnak <pavol@rusnak.io>2023-04-11 21:45:44 +0200
committerGitHub <noreply@github.com>2023-04-11 19:45:44 +0000
commit8b679987cdce292ff36bd741f6715e4927e26f9b (patch)
treef6b913d90283ec662004818846e0a14357c0209e /ggml.c
parent3e6e70d8e8917b5bd14c7c9f9b89a585f1ff0b31 (diff)
Fix whitespace, add .editorconfig, add GitHub workflow (#883)
Diffstat (limited to 'ggml.c')
-rw-r--r--ggml.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/ggml.c b/ggml.c
index 31947c4..a26b485 100644
--- a/ggml.c
+++ b/ggml.c
@@ -228,12 +228,12 @@ static inline float fp32_from_bits(uint32_t w) {
}
static inline uint32_t fp32_to_bits(float f) {
- union {
- float as_value;
- uint32_t as_bits;
- } fp32;
- fp32.as_value = f;
- return fp32.as_bits;
+ union {
+ float as_value;
+ uint32_t as_bits;
+ } fp32;
+ fp32.as_value = f;
+ return fp32.as_bits;
}
static inline float ggml_compute_fp16_to_fp32(ggml_fp16_t h) {
@@ -1881,7 +1881,7 @@ static void ggml_vec_dot_q4_0(const int n, float * restrict s, const void * rest
sum1 += x1->d * y1->d * (vgetq_lane_s32(p_1, 0) + vgetq_lane_s32(p_1, 1) + vgetq_lane_s32(p_1, 2) + vgetq_lane_s32(p_1, 3));
#endif
#else
- const int16x8_t pl0l = vmull_s8(vget_low_s8 (v0_0ls), vget_low_s8 (v1_0ls));
+ const int16x8_t pl0l = vmull_s8(vget_low_s8 (v0_0ls), vget_low_s8 (v1_0ls));
const int16x8_t pl0h = vmull_s8(vget_high_s8(v0_0ls), vget_high_s8(v1_0ls));
const int16x8_t ph0l = vmull_s8(vget_low_s8 (v0_0hs), vget_low_s8 (v1_0hs));