Debian Codegraph @

macros/fp.mac

raw
1 ;; SPDX-License-Identifier: BSD-2-Clause
2 ;; Copyright 2010-2020 The NASM Authors - All Rights Reserved
3
4 ;;
5 ;; fp.mac
6 ;;
7 ;; Floating-point utility macros
8 ;;
9
10 USE: fp
11
12 %define Inf __?Infinity?__
13 %define NaN __?QNaN?__
14 %define QNaN __?QNaN?__
15 %define SNaN __?SNaN?__
16
17 %define float8(x) __?float8?__(x)
18 %define float16(x) __?float16?__(x)
19 %define bfloat16(x) __?bfloat16?__(x)
20 %define float32(x) __?float32?__(x)
21 %define float64(x) __?float64?__(x)
22 %define float80m(x) __?float80m?__(x)
23 %define float80e(x) __?float80e?__(x)
24 %define float128l(x) __?float128l?__(x)
25 %define float128h(x) __?float128h?__(x)
26
27 %imacro bf16 1-*.nolist
28 %rep %0
29 dw __?bfloat16?__(%1)
30 %rotate 1
31 %endrep
32 %endmacro