aboutsummaryrefslogtreecommitdiff
path: root/contrib/llvm-project/libcxx/include/__ranges/enable_view.h
diff options
context:
space:
mode:
authorEd Maste <emaste@FreeBSD.org>2024-11-20 16:47:35 +0000
committerEd Maste <emaste@FreeBSD.org>2025-09-13 19:30:31 +0000
commite0eaabb80d1724acf88f04acbc2ca13d42270863 (patch)
treed15178bff4f89b8b722bb39a4c32c61472f13456 /contrib/llvm-project/libcxx/include/__ranges/enable_view.h
parentcab4cf201acf76b415a8f1a59ea4eeeb14b4636c (diff)
libc: Have memcmp test what the standard requiresHEADmain
libc's C memcmp currently returns the difference in byte values rather than just -1/0/1 as the AArch64 assembly implementation, many non- FreeBSD implementations, and compiler built-in optimizations do. It is a bug for a user to expect memcmp to return the difference in the byte values as the compiler is free to inline memcmp() with an implementation that does not do this. Change the test to validate only what the standard requires. PR: 289084 Reviewed by: markj, fuz Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D52502
Diffstat (limited to 'contrib/llvm-project/libcxx/include/__ranges/enable_view.h')
0 files changed, 0 insertions, 0 deletions