Skip to content

Commit d6139d5

Browse files
committed
ggml : fix WASM build
1 parent 3f84348 commit d6139d5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

bindings/javascript/whisper.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ggml.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1060,7 +1060,7 @@ static void quantize_row_q4_0(const float * restrict x, void * restrict vy, int
10601060
const v128_t v = wasm_f32x4_mul(srcv[l], wasm_f32x4_splat(id));
10611061
const v128_t vf = wasm_f32x4_add(v, wasm_f32x4_splat(8.5f));
10621062
const v128_t vi = wasm_i32x4_trunc_sat_f32x4(vf);
1063-
const v128_t vc = wasm_i32x4_min_u(vi, wasm_i32x4_splat(15));
1063+
const v128_t vc = wasm_i32x4_min(vi, wasm_i32x4_splat(15));
10641064

10651065
y[i].qs[2*l + 0] = wasm_i32x4_extract_lane(vc, 0) | (wasm_i32x4_extract_lane(vc, 1) << 4);
10661066
y[i].qs[2*l + 1] = wasm_i32x4_extract_lane(vc, 2) | (wasm_i32x4_extract_lane(vc, 3) << 4);

0 commit comments

Comments
 (0)