more clang-friendly multi-input homMask

This commit is contained in:
dzaima 2024-10-07 02:48:31 +03:00
parent cf19280c54
commit 85c5fb659d

View File

@ -191,7 +191,9 @@ def homMask{...vs if length{vs}>1} = {
def RT = ty_u{max{8,k*n}}
def sl{...a} = promote{RT, homMask{...slice{vs,...a}}}
def h = n/2
(sl{h} << (h * k)) | sl{0,h}
def lo = sl{0,h}
def hi = sl{h}
(hi << (h*k)) | lo
}
def homMask{x if ktup{x}} = homMask{...x}