▲ | ncruces 5 days ago | |||||||||||||||||||||||||
Knowing little about zig, std.mem.eql very likely already uses SIMD. This is about using SIMD to avoid even calling std.mem.eql for 99% of the possible attempts. | ||||||||||||||||||||||||||
▲ | llimllib 5 days ago | parent [-] | |||||||||||||||||||||||||
std.mem.eql is here, super easy to read: 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 | ||||||||||||||||||||||||||
|