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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user