MCPcopy Create free account
hub / github.com/Niko1221/Strata / float_bits

Function float_bits

engine/tests/quant/quant_parity.cpp:290–294  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

288bool bits_equal(float a, float b) { return std::memcmp(&a, &b, 4) == 0; }
289
290uint32_t float_bits(float f) {
291 uint32_t u;
292 std::memcpy(&u, &f, 4);
293 return u;
294}
295
296void test_dot(sq::Type st, int rows) {
297 const ggml_type gt = (ggml_type) (int) st;

Callers 1

test_dotFunction · 0.85

Calls 1

memcpyFunction · 0.85

Tested by

no test coverage detected