| author | |
| committer | |
| log | 33428fc6aaf40ac19051df3a6669561c84e9faf6 |
| tree | 8f8240a6ee4bdbba28ec0243f6649fc30b611f30 |
| parent | afa0834195c48418179d43430a052b2a23b50e00 |
this code returns false positives in Valgrind, so we fall back to the
other implementation when running in valgrind.
see #177171 files changed, 1 insertions(+), 0 deletions(-)
lib/std/mem.zig+1| ... | ... | @@ -1187,6 +1187,7 @@ pub fn indexOfScalarPos(comptime T: type, slice: []const T, start_index: usize, |
| 1187 | 1187 | |
| 1188 | 1188 | var i: usize = start_index; |
| 1189 | 1189 | if (backend_supports_vectors and |
| 1190 | !std.debug.inValgrind() and // https://github.com/ziglang/zig/issues/17717 | |
| 1190 | 1191 | !@inComptime() and |
| 1191 | 1192 | (@typeInfo(T) == .Int or @typeInfo(T) == .Float) and std.math.isPowerOfTwo(@bitSizeOf(T))) |
| 1192 | 1193 | { |