Resolve a duplicate static symbol during Unity Build


Removed a duplicate function, and replaced it with direct calculation
since it was only being used once in one of the files anyway. The same
for `invLog2`, as the compiler should be taking care of it already.

Pick-to: 6.5
Task-number: QTBUG-109394
Change-Id: I9095bca32ea127f770fa2cb0523b05110bd8ef21
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
commit95e2cae51e6c92315fbf33c5d3e8a1826cca8907
parent7334a4b08d553d00aba6d1f5301e833c30029510
authorAmir Masoud Abdol <amir.abdol@qt.io>
committerVolker Hilsheimer <volker.hilsheimer@qt.io>
commit timeTue, 28 Feb 2023 12:04:53 +0000