3 ms·
std.mem.eql is here, super easy to read: https://github.com/ziglang/zig/blob/master/lib/std/mem.zig#L702-L704 https://github.com/ziglang/zig/blob/master/lib/std
by llimllib 1y ago
std.mem.eql is here, super easy to read: https://github.com/ziglang/zig/blob/master/lib/std/mem.zig#L702-L704 https://github.com/ziglang/zig/blob/master/lib/std/mem.zig#L...
My read is it would use SIMD if T is @Vector, and not otherwise? But I'm neither a zig nor SIMD expert
- ozgrakkurt 1y agoPretty sure that compiles into assembly for any primitive type like integers, floats etc.
- IshKebab 1y agoWhat do you mean it "compiles into assembly"?
- ozgrakkurt 1y agoI meant to write SIMD