Why not call them UIntSize instead of FLog2 and BinSearchSize forCLog2? That would give an indication of how to use them, and class them along SizeOf, for finding them easily. After all, you are looking for the size of a variable?

Wolf


On 13/06/2018 12:13, J. Gareth Moreton wrote:
I can see where you're coming from here.
If not a logarithm, what would you call
these functions that concisely and
compactly describes their behaviour and
purpose? While "bit scan reverse" is
effectively a truncated log2, with a flag
set if the input was zero, it's not a name
that jumps out at the user as "aah, that's
what I need" or "ah, I know what that's
for", and there's no equivalent to what
I'm calling CLog2 yet.

Would "ILog2" and "CILog2" differentiate
them enough from the mathematical
functions?

Gareth


_______________________________________________
fpc-devel maillist  -  [email protected]
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

_______________________________________________
fpc-devel maillist  -  [email protected]
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Reply via email to