mirror of
https://github.com/apache/nuttx.git
synced 2026-08-18 20:18:17 +00:00
memrchr scans backward, so the original implementation aligned (x + 1) rather than x: #define UNALIGNED(x) ((long)(uintptr_t)((x) + 1) & (sizeof(long) - 1)) while the common UNALIGNED_X() macro checks the pointer itself. Pass src0 + 1 to UNALIGNED_X() to restore the original behavior, otherwise asrc is off by one byte and the word loop reads the wrong data. Assisted-by: Claude:claude-opus-5 Signed-off-by: anjiahao <anjiahao@xiaomi.com> |
||
|---|---|---|
| .. | ||
| libbuiltin | ||
| libc | ||
| libdsp | ||
| libm | ||
| libnx | ||
| libxx | ||
| CMakeLists.txt | ||