MCPcopy Create free account
hub / github.com/TheForceEngine/TheForceEngine / sign

Function sign

TheForceEngine/TFE_System/math.h:9–12  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7namespace TFE_Math
8{
9 inline f32 sign(f32 x)
10 {
11 return x < 0.0f ? -1.0f : 1.0f;
12 }
13
14 inline bool isPow2(u32 x)
15 {

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected