From 3b59bedbbb6e4aeaa584d14157aa92255b3a7031 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Tue, 27 Aug 2024 00:25:00 +0200 Subject: Add AVX-2 --- c/simd-isascii/README | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 c/simd-isascii/README (limited to 'c/simd-isascii/README') diff --git a/c/simd-isascii/README b/c/simd-isascii/README new file mode 100644 index 0000000..22ba633 --- /dev/null +++ b/c/simd-isascii/README @@ -0,0 +1,8 @@ +You can generate test data via the following command, and then just +use ‘echo foo >>out’ to write some non-ASCII into the stream. + + $ tr -cd ' -~' out + +Findings: +1. GCC Doesn’t auto-vectorize the generic loop +2. The AVX-2 version out-performs AVX-512 by a huge margin -- cgit v1.2.3