aboutsummaryrefslogtreecommitdiff
path: root/util.asm
diff options
context:
space:
mode:
Diffstat (limited to 'util.asm')
-rw-r--r--util.asm9
1 files changed, 9 insertions, 0 deletions
diff --git a/util.asm b/util.asm
index 864080f..89cdcbd 100644
--- a/util.asm
+++ b/util.asm
@@ -40,3 +40,12 @@
%error %? not supported with cpuname
%endif
%endmacro
+
+; make a mm register all-ones
+%macro ONES 1
+ %if mmsize == 64
+ vpternlogq %1, %1, %1, 0xff
+ %else
+ pcmpeqq %1, %1
+ %endif
+%endmacro