diff options
| author | Can Celik <ogulcancelik@gmail.com> | 2026-04-04 19:22:04 +0300 |
|---|---|---|
| committer | Can Celik <ogulcancelik@gmail.com> | 2026-04-05 01:23:06 +0300 |
| commit | 41dd733ca7123c9ac4bfc6c781697a660e95b052 (patch) | |
| tree | 3fc91815ca139ef2e0b281bba0abda4ef15175f4 /vendor/libghostty-vt/pkg/highway/main.zig | |
| parent | 55c138263e190a1e79d4b997bfb9397306c0ec1f (diff) | |
feat: finish ghostty pane backend integration
Diffstat (limited to 'vendor/libghostty-vt/pkg/highway/main.zig')
| -rw-r--r-- | vendor/libghostty-vt/pkg/highway/main.zig | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/vendor/libghostty-vt/pkg/highway/main.zig b/vendor/libghostty-vt/pkg/highway/main.zig new file mode 100644 index 00000000..95ba6cda --- /dev/null +++ b/vendor/libghostty-vt/pkg/highway/main.zig @@ -0,0 +1,57 @@ +extern "c" fn hwy_supported_targets() i64; + +pub const Targets = packed struct(i64) { + // x86_64 + _reserved: u4 = 0, + avx3_spr: bool = false, + _reserved_5: u1 = 0, + avx3_zen4: bool = false, + avx3_dl: bool = false, + avx3: bool = false, + avx2: bool = false, + _reserved_10: u1 = 0, + sse4: bool = false, + ssse3: bool = false, + _reserved_13: u1 = 0, // SSE3 reserved + sse2: bool = false, + _reserved_15_23: u9 = 0, + + // aarch64 + sve2_128: bool = false, + sve_256: bool = false, + sve2: bool = false, + sve: bool = false, + neon: bool = false, + neon_without_aes: bool = false, + _reserved_30_36: u6 = 0, + + // risc-v + rvv: bool = false, + _reserved_38_46: u9 = 0, + + // IBM Power + ppc10: bool = false, + ppc9: bool = false, + ppc8: bool = false, + z15: bool = false, + z14: bool = false, + _reserved_52_57: u6 = 0, + + // WebAssembly + wasm_emu256: bool = false, + wasm: bool = false, + _reserved_60_61: u2 = 0, + + // Emulation + emu128: bool = false, + scalar: bool = false, + _reserved_63: u1 = 0, +}; + +pub fn supported_targets() Targets { + return @bitCast(hwy_supported_targets()); +} + +test { + _ = supported_targets(); +} |
