MCPcopy Create free account
hub / github.com/Derious/cuMPC / float_to_fixed

Function float_to_fixed

test/test_CORE/test_lut.cpp:30–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28}
29
30inline int64_t float_to_fixed(float f) {
31 return (f * FIXED_POINT_SCALE);
32}
33
34float GeLU1(float x) {
35 return 0.5 * x * (1 + std::erf(x / std::sqrt(2.0)));

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected