Quantcast
Channel: Recent posts
Viewing all articles
Browse latest Browse all 7

How to test a mask register for any non-zeros?

$
0
0

Dear all,

I want to test a mask register for any non-zero values.  I am not able to test this on my own MIC for a few days so I decided to ask here if this is possible to do efficiently, i.e. not via memory.

Is _mm512_mask2int() able to load directly into a general purpose register?

If not, can I use _mm512_kortestz() and then check the ZF flag?

Best regards,

Alastair

 


Viewing all articles
Browse latest Browse all 7

Latest Images

Trending Articles





Latest Images