bit-hack / tack

Tack - The vector wrapper
0 stars 0 forks source link

Add absolute value implementation. #8

Closed bit-hack closed 8 years ago

bit-hack commented 8 years ago

This PR adds and absolute value implementation. We create a vector with all of the floatingpoint sign bits set, and then use it to mask out the sign bits of the input vector, forcing every lane positive.