Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const std = @import("std");
- extern fn hello_world() void;
- const _mm128i align(16) = struct {
- data: [16]u8,
- };
- extern fn load_si128(*const _mm128i) c_int;
- extern fn loadu_si128(*const _mm128i) c_int;
- pub fn main() void {
- hello_world();
- var data = _mm128i{ .data = [1]u8{97} ** 16 };
- var load = loadu_si128(data);
- var real = @ptrCast(*_mm128i, &load);
- var dereffed = real.*;
- std.debug.warn("{}\n", dereffed);
- for (dereffed.data) |c| {
- std.debug.warn("{}\n", c);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement