Natural log of 2
Calculates the base 2 logarithm of the given argument.
Calculates the base 2 logarithm of the given argument.
a number such that 2^{nr} is equal to our argument.
Given a positive long, returns the next power of 2 that is bigger than our argument, or the maximum that this function can return which is 2^{62} (or 4,611,686,018,427,387,904).
Given a positive long, returns the next power of 2 that is bigger than our argument, or the maximum that this function can return which is 2^{62} (or 4,611,686,018,427,387,904).
a long that is a power of 2 and that is "closest" to the given argument.
Given a positive integer, returns the next power of 2 that is bigger than our argument, or the maximum that this function can return which is 2^{30} (or 1,073,741,824).
Given a positive integer, returns the next power of 2 that is bigger than our argument, or the maximum that this function can return which is 2^{30} (or 1,073,741,824).
an integer that is a power of 2, that is bigger than our argument and that is "closest" to it.
Given a long, rounds it to the nearest power of two.
Given a long, rounds it to the nearest power of two. Note that the maximum that this function can return is 2^{62} (or 4,611,686,018,427,387,904).
a long that is a power of 2 and that is "closest" to the given argument.
Given a positive integer, rounds it to the nearest power of two.
Given a positive integer, rounds it to the nearest power of two. Note that the maximum that this function can return is 2^{30} (or 1,073,741,824).
an integer that is a power of 2 and that is "closest" to the given argument.