PNaCl vector intrisics WIP.

This commit is contained in:
Branimir Karadžić
2014-06-26 22:36:04 -07:00
parent 2ea546dba0
commit bb01733bfc
12 changed files with 82 additions and 25 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2010-2013 Branimir Karadzic. All rights reserved.
* Copyright 2010-2014 Branimir Karadzic. All rights reserved.
* License: http://www.opensource.org/licenses/BSD-2-Clause
*/
@@ -47,7 +47,7 @@ namespace bx
uint32_t tmp = ( (_test.uxyzw[3]>>31)<<3) \
| ( (_test.uxyzw[2]>>31)<<2) \
| ( (_test.uxyzw[1]>>31)<<1) \
| (_test.uxyzw[0]>>31) \
| ( _test.uxyzw[0]>>31) \
; \
return 0 != (tmp&(_mask) ); \
} \
@@ -57,7 +57,7 @@ namespace bx
uint32_t tmp = ( (_test.uxyzw[3]>>31)<<3) \
| ( (_test.uxyzw[2]>>31)<<2) \
| ( (_test.uxyzw[1]>>31)<<1) \
| (_test.uxyzw[0]>>31) \
| ( _test.uxyzw[0]>>31) \
; \
return (_mask) == (tmp&(_mask) ); \
}