| 1 |
;; SPDX-License-Identifier: BSD-2-Clause |
| 2 |
;; Copyright 2025 The NASM Authors - All Rights Reserved |
| 3 |
|
| 4 |
;; |
| 5 |
;; vtern.mac |
| 6 |
;; |
| 7 |
;; A couple of macros to simplify the syntax of the ternary logic |
| 8 |
;; instructions. |
| 9 |
;; |
| 10 |
|
| 11 |
USE: vtern |
| 12 |
|
| 13 |
%imacro vpternlogd 4.nolist |
| 14 |
%define %%imm(a,A,b,B,c,C) (%4) |
| 15 |
%? %1,%2,%3,%%imm(0xaa,0xaa,0xcc,0xcc,0xf0,0xf0) |
| 16 |
%endmacro |
| 17 |
%imacro vpternlogq 4.nolist |
| 18 |
%define %%imm(a,A,b,B,c,C) (%4) |
| 19 |
%? %1,%2,%3,%%imm(0xaa,0xaa,0xcc,0xcc,0xf0,0xf0) |
| 20 |
%endmacro |