{"action":"created","issue":{"url":"https://api.github.com/repos/edanor/umesimd/issues/8","repository_url":"https://api.github.com/repos/edanor/umesimd","labels_url":"https://api.github.com/repos/edanor/umesimd/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/edanor/umesimd/issues/8/comments","events_url":"https://api.github.com/repos/edanor/umesimd/issues/8/events","html_url":"https://github.com/edanor/umesimd/issues/8","id":184111310,"number":8,"title":"Missing function for mask checking if mask is empty/mixed/full","user":{"login":"noma","id":1556185,"avatar_url":"https://avatars.githubusercontent.com/u/1556185?v=3","gravatar_id":"","url":"https://api.github.com/users/noma","html_url":"https://github.com/noma","followers_url":"https://api.github.com/users/noma/followers","following_url":"https://api.github.com/users/noma/following{/other_user}","gists_url":"https://api.github.com/users/noma/gists{/gist_id}","starred_url":"https://api.github.com/users/noma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/noma/subscriptions","organizations_url":"https://api.github.com/users/noma/orgs","repos_url":"https://api.github.com/users/noma/repos","events_url":"https://api.github.com/users/noma/events{/privacy}","received_events_url":"https://api.github.com/users/noma/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-10-20T01:01:24Z","updated_at":"2016-10-25T07:34:28Z","closed_at":null,"body":"I am missing an equivalent to Vc's `isEmpty()` function on the masks, or maybe a conversion operator to bool, that is true if at least one element of the mast is true.\r\n\r\nWith Intel you could use:\r\n```\r\n_mm512_mask2int\r\n```\r\nFor other compilers, I use this replacement:\r\n```\r\n#if !defined(__INTEL_COMPILER)\r\n// online defined by Intel Compiler\r\ninline int _mm512_mask2int(__mmask16 k1) {\r\n    return static_cast<int>(k1);\r\n}\r\n#endif\r\n```\r\n\r\nRationale: You usually have three cases, that might be beneficial to check and handle differently:\r\n- empty mask: nothing to do\r\n- mixed mask: proceed with masked operation\r\n- full mask: proceed with unmasked operations"},"comment":{"url":"https://api.github.com/repos/edanor/umesimd/issues/comments/255959365","html_url":"https://github.com/edanor/umesimd/issues/8#issuecomment-255959365","issue_url":"https://api.github.com/repos/edanor/umesimd/issues/8","id":255959365,"user":{"login":"edanor","id":7347676,"avatar_url":"https://avatars.githubusercontent.com/u/7347676?v=3","gravatar_id":"","url":"https://api.github.com/users/edanor","html_url":"https://github.com/edanor","followers_url":"https://api.github.com/users/edanor/followers","following_url":"https://api.github.com/users/edanor/following{/other_user}","gists_url":"https://api.github.com/users/edanor/gists{/gist_id}","starred_url":"https://api.github.com/users/edanor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edanor/subscriptions","organizations_url":"https://api.github.com/users/edanor/orgs","repos_url":"https://api.github.com/users/edanor/repos","events_url":"https://api.github.com/users/edanor/events{/privacy}","received_events_url":"https://api.github.com/users/edanor/received_events","type":"User","site_admin":false},"created_at":"2016-10-25T07:34:28Z","updated_at":"2016-10-25T07:34:28Z","body":"Just checked out and I added an instruction that should behave the way you need (without further extensions to the interface). The mnemonic is LANDNOTV and it is a part of the masking interface. There is also a bitwise version of this available for integer types (BANDNOTV)."}}
{"actor":{"display_login":"edanor"}}