MCPcopy Create free account
hub / github.com/ChaiScript/ChaiScript / mod5

Function mod5

src/sha3.cpp:79–85  ·  view source on GitHub ↗

return x % 5 for 0 <= x <= 9

Source from the content-addressed store, hash-verified

77
78 /// return x % 5 for 0 <= x <= 9
79 unsigned int mod5(unsigned int x)
80 {
81 if (x < 5)
82 return x;
83
84 return x - 5;
85 }
86}
87
88

Callers 1

processBlockMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected