|
Function | Integer powers of 2 |
|
Syntax C/C++ | #include <VFmath.h>
int VF_ipow2( fVector Y, iVector X, ui size ); |
C++ VecObj | #include <OptiVec.h>
int vector<T>::ipow2( const vector<T>& X ); |
Pascal/Delphi | uses VFmath;
function VF_ipow2( Y:fVector; X:iVector; size:UIntSize ): |
|
CUDA function C/C++ | #include <cudaVFmath.h>
int cudaVF_ipow2( fVector d_Y, iVector d_X, ui size );
int VFcu_ipow2( fVector h_Y, iVector h_X, ui size );
|
CUDA function Pascal/Delphi | uses VFmath;
function cudaVF_ipow2( d_Y:fVector; d_X:iVector; size:UIntSize ): IntBool;
function VFcu_ipow2( h_Y:fVector; h_X:iVector; size:UIntSize ): IntBool;
|
|
|
Error handling | OVERFLOW errors lead to a default result of HUGE_VAL. |
|
Return value | FALSE (0), if no error occurred, otherwise TRUE (non-zero) |
|
|