CommonUtils
Static utility methods.
Static utility methods.
- Authors
Piotr Wendykier ([email protected])
Value members
Concrete methods
Checks if x is a power-of-two number.
Checks if x is a power-of-two number.
- Value Params
- x
input value
- Returns
true if x is a power-of-two number
Returns the closest power-of-two number greater than or equal to x.
Returns the closest power-of-two number greater than or equal to x.
- Value Params
- x
input value
- Returns
the closest power-of-two number greater than or equal to x
Returns the closest power-of-two number less than or equal to x.
Returns the closest power-of-two number less than or equal to x.
- Value Params
- x
input value
- Returns
the closest power-of-two number less then or equal to x
Resets the minimal size of 2D and 3D data for which threads are used.
Resets the minimal size of 2D and 3D data for which threads are used.
Resets the minimal size of 1D data for which two and four threads are used.
Resets the minimal size of 1D data for which two and four threads are used.
Causes the currently executing thread to sleep (temporarily cease execution) for the specified number of milliseconds.
Causes the currently executing thread to sleep (temporarily cease execution) for the specified number of milliseconds.
- Value Params
- millis
the length of time to sleep in milliseconds
Returns the minimal size of 1D data for which two threads are used.
Returns the minimal size of 1D data for which two threads are used.
- Returns
the minimal size of 1D data for which two threads are used
Sets the minimal size of 1D data for which two threads are used.
Sets the minimal size of 1D data for which two threads are used.
- Value Params
- n
the minimal size of 1D data for which two threads are used
Returns the minimal size of 1D data for which four threads are used.
Returns the minimal size of 1D data for which four threads are used.
- Returns
the minimal size of 1D data for which four threads are used
Sets the minimal size of 1D data for which four threads are used.
Sets the minimal size of 1D data for which four threads are used.
- Value Params
- n
the minimal size of 1D data for which four threads are used
Returns the minimal size of 2D data for which threads are used.
Returns the minimal size of 2D data for which threads are used.
- Returns
the minimal size of 2D data for which threads are used
Sets the minimal size of 2D data for which threads are used.
Sets the minimal size of 2D data for which threads are used.
- Value Params
- n
the minimal size of 2D data for which threads are used
Returns the minimal size of 3D data for which threads are used.
Returns the minimal size of 3D data for which threads are used.
- Returns
the minimal size of 3D data for which threads are used