I'm trying to compare one 64-bit value with a 64-bit value array, say
R_UINT64 FP; R_UINT64 INPUT[20000];
It returns true if any element in the array matches the value of FP.
I have to loop through this array and find a match, I'm trying to improve the efficiency by looking at 2 elements, instead of one, at a time.
In Altivec, vector length is 128 bits, so I will put two copies of FP, two elements in the vectors.(I'm truncating them both two 8 bits each vector element)
So far so good, but now I'm encountering a problem. I couldn't find a VMX procedure that looks at only half of the vector and see if there's a match, in order to return a true, both values have to match, which is not what I'm looking for.
So I'm wondering if there is anyway to tell the compiler that I'm only looking at half of the vector each time?
Thanks in advance!