mirror of
https://github.com/joncampbell123/dosbox-x.git
synced 2025-05-09 03:41:10 +08:00
more
This commit is contained in:
parent
b245287f09
commit
c2136c51a5
@ -297,6 +297,7 @@ template <typename T=unsigned int> static inline constexpr bool ispowerof2(const
|
||||
*
|
||||
* The constexpr templated version will trigger a static_assert if v == 0.
|
||||
*
|
||||
* log2(2^32 - 1) == 31 2^32 - 1 = 0xFFFFFFFF
|
||||
* log2(2^31) == 31
|
||||
* log2(2^30) == 30
|
||||
* log2(2^16) == 16 2^16 == 65536
|
||||
|
Loading…
x
Reference in New Issue
Block a user