Go to the source code of this file.
Functions | |
void | vector_cmpswap_noret (int *arg1, int *arg2) |
int | vector_cmpswap (int *arg1, int *arg2) |
int | vector_cmpswap_skew (int *arg1, int *arg2) |
void | vector_cmpswap_skew_noret (int *arg1, int *arg2) |
void | transpose4_4 (int *array) |
void | sortInVec (int *array, int vec_len) |
void | copyVector (int *arg1, int *arg2) |
void | swapVector (int *arg1, int *arg2) |
void | vector_merge (int *arg1, int *arg2) |
merge sort two length-4 int array with vector instructions |
void copyVector | ( | int * | arg1, | |
int * | arg2 | |||
) | [inline] |
void sortInVec | ( | int * | array, | |
int | vec_len | |||
) | [inline] |
Sort the vector array so that for each vector, we have V[0]<V[1]<V[2]<V[3] for each vector V in the vector array. Be careful, each 4x4 matrix is transposed.
void swapVector | ( | int * | arg1, | |
int * | arg2 | |||
) | [inline] |
void transpose4_4 | ( | int * | array | ) | [inline] |
This function is used to transpose a 4X4 matrix of int
int vector_cmpswap | ( | int * | arg1, | |
int * | arg2 | |||
) | [inline] |
void vector_cmpswap_noret | ( | int * | arg1, | |
int * | arg2 | |||
) | [inline] |
Compare elements of each vector one by one. And move the larger element to arg2, the smaller element to arg1.
arg1 | An int vector with a length of 4 | |
arg2 | An int vector with a length of 4 |
arg1 | An int vector with a length of 4 | |
arg2 | An int vector with a length of 4 |
int vector_cmpswap_skew | ( | int * | arg1, | |
int * | arg2 | |||
) | [inline] |
Compare elements of two vectors one by one. The method compares element 1,2,3 of arg1 with element 2,3,4 of arg2. Element will exchange position if element of arg1 is larger than element of arg2
arg1 | An int vector with a length of 4 | |
arg2 | An int vector with a length of 4 |
void vector_cmpswap_skew_noret | ( | int * | arg1, | |
int * | arg2 | |||
) | [inline] |
void vector_merge | ( | int * | arg1, | |
int * | arg2 | |||
) | [inline] |
merge sort two length-4 int array with vector instructions