Expose none() in the ISPC standard library.

On KNC: all(), any() and none() do not generate a redundant movmsk instruction.
This commit is contained in:
Jean-Luc Duprat
2012-11-27 13:38:28 -08:00
parent 6827001c1d
commit 24087ff3cc
3 changed files with 25 additions and 11 deletions

View File

@@ -482,7 +482,7 @@ static FORCEINLINE bool __all(__vec16_i1 mask) {
}
static FORCEINLINE bool __none(__vec16_i1 mask) {
return !__any(mask);
return _mm512_kortestz(mask, mask);
}
static FORCEINLINE __vec16_i1 __equal_i1(__vec16_i1 a, __vec16_i1 b) {