[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] wc: make sure input buffer for neon 'wc -l' is aligned
|
From: |
Collin Funk |
|
Subject: |
[PATCH] wc: make sure input buffer for neon 'wc -l' is aligned |
|
Date: |
Sat, 14 Mar 2026 21:04:12 -0700 |
* src/wc_neon.c (wc_lines_neon): Use alignas.
---
src/wc_neon.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/wc_neon.c b/src/wc_neon.c
index 00fa38b6e..571f5051c 100644
--- a/src/wc_neon.c
+++ b/src/wc_neon.c
@@ -35,7 +35,7 @@ wc_lines_neon (int fd)
while (true)
{
- unsigned char neon_buf[IO_BUFSIZE];
+ unsigned char alignas (16) neon_buf[IO_BUFSIZE];
ssize_t bytes_read = read (fd, neon_buf, sizeof neon_buf);
if (bytes_read <= 0)
return (struct wc_lines) { bytes_read == 0 ? 0 : errno, lines, bytes };
--
2.53.0
- [PATCH] wc: make sure input buffer for neon 'wc -l' is aligned,
Collin Funk <=