search for: simd_and

Displaying 1 result from an estimated 1 matches for "simd_and".

Did you mean: simd_add
2011 Mar 28
2
[LLVMdev] [Discussion] Portable SIMD programming using LLVM?
...himask() //this is a constant with high 4 bits of each 8-bits field are 1111 and low 4 bits of each 8-bits field are 0000. 2. loMask = simd<8>::lowmask() //this is a constant with high 4 bits of each 8-bits field are 0000 and low 4 bits of each 8-bits field are 1111. 3. c = simd<8>::add(simd_and(loMask, a), simd_and(loMask, b)) 4. d = simd<8>::add(simd_and(hiMask, a), simd_and(hiMask, b)) 5. return simd_or(d, simd_and(loMask, c)) // get the answer for simd<4>::add(a, b) Also, it is not hard to see that simd<fw>::add can be implemented based on simd<fw/2>::add. The...