Add IntLog2 and use it
authorDavid Neto <dneto@google.com>
Wed, 3 Feb 2021 18:56:06 +0000 (13:56 -0500)
committerJeremy Hayes <jeremy@lunarg.com>
Tue, 13 Apr 2021 20:09:44 +0000 (14:09 -0600)
commitfa6e3c2737720e14194713767e45ebabb9e3c3ed
treec01fd37ccd126912385a2e0de6baa0460ba58ed1
parent5c4f421121c4d24aad23a507e630dc5dc6c92c7c
Add IntLog2 and use it

Replace uses of floating point log2 when we want an integer result from
an integer operand.  This avoids concerns about accuracy of floating
point library functions.
glslang/Include/Common.h
glslang/MachineIndependent/ParseHelper.cpp
gtests/CMakeLists.txt
gtests/Common.cpp [new file with mode: 0644]