KNC: fix implementation of __all() to use KNCni mask test instructions...

This commit is contained in:
Jean-Luc Duprat
2012-11-14 09:24:01 -08:00
parent b601331362
commit d3b86dcc90

View File

@@ -478,7 +478,7 @@ static FORCEINLINE bool __any(__vec16_i1 mask) {
}
static FORCEINLINE bool __all(__vec16_i1 mask) {
return (mask==0xFFFF);
return _mm512_kortestc(mask, mask);
}
static FORCEINLINE bool __none(__vec16_i1 mask) {