any_true: Wasm SIMD Bitweise-Anweisung
Die any_true SIMD Bitweise-Anweisung prüft, ob ein v128-Eingabewert nicht-null Bits enthält.
Probieren Sie es aus
(module
(import "console" "log" (func $log (param i32)))
(func $main
v128.const f32x4 0 0 0 1.2
v128.any_true
call $log ;; log the result
)
(start $main)
)
WebAssembly.instantiateStreaming(fetch("{%wasm-url%}"), { console });
Syntax
v128.any_true
v128.any_true-
Die
v128.any_true-Anweisung.
Typ
[input] -> [output]
Binärcodierung
| Anweisung | Binärformat | Beispieltext => binär |
|---|---|---|
v128.any_true |
0xfd 83:u32 |
v128.any_true => 0xfd 0x53 |
Spezifikationen
| Spezifikation |
|---|
| WebAssembly Core Specification> # vector-instructions%E2%91%A8> |