Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/ggml/blob/master/src/ggml-opencl/kernels/iq4_xs_grid.cl # ggml [Ported from github.com/ggml-org/ggml] docs : sync ggml_type enum in gguf.md (#1685) Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `master` Branches Tags History `ggml / src / ggml-opencl / kernels / iq4_xs_grid.cl` 10 lines ยท 348 bytes Raw Blame History 1 constant char iq4_xs_values[16] = { 2 -127, -104, -83, -65, -49, -35, -22, -10, 1, 13, 25, 38, 53, 69, 89, 113, 3 }; 4 5 inline 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 }