Use a 'count leading' function in 3 sources that use it. Create a Math.h to store math utils.

There are quite a few other functions that could be placed in to this new util file. Hopefully it gets some love.

As for touching Gte.cpp (for the first time in 11 years): well, if you're keeping it -- may as well improve it.

If we are concerned about performance on Windows, we should probably use the lzcnt intrinsic but it is difficult to explain (too many comments) how it turns in to BSR on CPUs that don't support it and apparently it won't get accepted anyway.
If you wanted me to cast everything that had a different type in the prototype, there would be a gigantic mess of casts everywhere and a PR that touches 1000s of files.
Casting a function that doesn't need it doesn't make sense.