MCPcopy Create free account
hub / github.com/bitsandbytes-foundation/bitsandbytes / set_fp4_lut

Function set_fp4_lut

csrc/cpu_ops.cpp:271–276  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

269}
270
271static inline __m512 set_fp4_lut() {
272 return _mm512_set_ps(
273 -0.2500f, -0.16666667f, -0.5000f, -0.33333333f, -1.0000f, -0.66666667f, -5.208333333e-03f, 0.0000f, 0.2500f,
274 0.16666667f, 0.5000f, 0.33333333f, 1.0000f, 0.66666667f, 5.208333333e-03f, 0.0000f
275 );
276}
277#endif
278
279static constexpr float fp4_lut[16] = {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected