MCPcopy Create free account
hub / github.com/Meituan-Dianping/SQLAdvisor / BytePrecision

Function BytePrecision

extra/yassl/taocrypt/src/misc.cpp:124–132  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

122
123
124unsigned int BytePrecision(word value)
125{
126 unsigned int i;
127 for (i=sizeof(value); i; --i)
128 if (value >> (i-1)*8)
129 break;
130
131 return i;
132}
133
134
135unsigned int BitPrecision(word value)

Callers 2

AS2Function · 0.85
SetLengthFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected