interplane.Get Omega
Read in your language

ggml

[Ported from github.com/ggml-org/ggml] docs : sync ggml_type enum in gguf.md (#1685)

Brought by drakestapleton

branch master Branches Tags History

ggml / src / ggml-opencl / kernels / iq4_xs_grid.cl

10 lines · 348 bytes Raw Blame History
1constant char iq4_xs_values[16] = {
2 -127, -104, -83, -65, -49, -35, -22, -10, 1, 13, 25, 38, 53, 69, 89, 113,
3};
4
5inline uint iq4_xs_code(uint n) {
6 const uint lo = (n & 4u) ? 0xF6EADDCFu : 0xBFAD9881u;
7 const uint hi = (n & 4u) ? 0x71594535u : 0x26190D01u;
8 const uint t = (n & 8u) ? hi : lo;
9 return (t >> (8*(n & 3u))) & 255u;
10}