Skip to content

Commit 2b43a62

Browse files
[libc] address CR and dispatch header changes
1 parent de76b6a commit 2b43a62

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

libc/src/string/string_utils.h

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,9 @@
2222
#include "src/__support/macros/attributes.h"
2323
#include "src/__support/macros/config.h"
2424
#include "src/__support/macros/optimization.h" // LIBC_UNLIKELY
25-
#include "src/__support/macros/properties/cpu_features.h"
2625
#include "src/string/memory_utils/inline_memcpy.h"
2726

28-
// SVE implementation has fault safety
29-
#if defined(LIBC_TARGET_CPU_HAS_SVE)
30-
#include "src/string/memory_utils/aarch64/inline_strlen.h"
31-
#elif defined(LIBC_COPT_STRING_UNSAFE_WIDE_READ)
27+
#if defined(LIBC_COPT_STRING_UNSAFE_WIDE_READ)
3228
#if LIBC_HAS_VECTOR_TYPE
3329
#include "src/string/memory_utils/generic/inline_strlen.h"
3430
#elif defined(LIBC_TARGET_ARCH_IS_X86)
@@ -37,8 +33,8 @@
3733
#include "src/string/memory_utils/aarch64/inline_strlen.h"
3834
#else
3935
namespace string_length_impl = LIBC_NAMESPACE::wide_read;
40-
#endif // LIBC_TARGET_CPU_HAS_SVE
41-
#endif // defined(LIBC_TARGET_CPU_HAS_SVE)
36+
#endif
37+
#endif // defined(LIBC_COPT_STRING_UNSAFE_WIDE_READ)
4238

4339
namespace LIBC_NAMESPACE_DECL {
4440
namespace internal {

0 commit comments

Comments
 (0)