# Functions
CeilDiv8 divides the input number by 8 and takes the ceiling of that number.
ClosestPowerOf2 returns an integer that is the closest power of 2 that is less than or equal to the argument.
IntegerSquareRoot defines a function that returns the largest possible integer root of a number using go's standard library.
IsPowerOf2 returns true if n is an exact power of two.
Max returns the larger integer of the two given ones.This is used over the Max function in the standard math library because that max function has to check for some special floating point cases making it slower by a magnitude of 10.
Min returns the smaller integer of the two given ones.
PowerOf2 returns an integer that is the provided exponent of 2.