diff --git a/libc/src/string/memory_utils/bcmp_implementations.h b/libc/src/string/memory_utils/bcmp_implementations.h index bfd52014325e5..4b676e4dccea5 100644 --- a/libc/src/string/memory_utils/bcmp_implementations.h +++ b/libc/src/string/memory_utils/bcmp_implementations.h @@ -23,6 +23,8 @@ #elif defined(LIBC_TARGET_ARCH_IS_ANY_RISCV) #include "src/string/memory_utils/riscv/bcmp_implementations.h" #define LIBC_SRC_STRING_MEMORY_UTILS_BCMP inline_bcmp_riscv +#elif defined(LIBC_TARGET_ARCH_IS_GPU) +// TODO: Define a more optimal GPU impolementation. #else // We may want to error instead of defaulting to suboptimal implementation. #include "src/string/memory_utils/generic/byte_per_byte.h" diff --git a/libc/src/string/memory_utils/memcmp_implementations.h b/libc/src/string/memory_utils/memcmp_implementations.h index e18e64072732c..95889c560c0ff 100644 --- a/libc/src/string/memory_utils/memcmp_implementations.h +++ b/libc/src/string/memory_utils/memcmp_implementations.h @@ -24,6 +24,8 @@ #elif defined(LIBC_TARGET_ARCH_IS_ANY_RISCV) #include "src/string/memory_utils/riscv/memcmp_implementations.h" #define LIBC_SRC_STRING_MEMORY_UTILS_MEMCMP inline_memcmp_riscv +#elif defined(LIBC_TARGET_ARCH_IS_GPU) +// TODO: Define a more optimal GPU impolementation. #else // We may want to error instead of defaulting to suboptimal implementation. #include "src/string/memory_utils/generic/byte_per_byte.h" diff --git a/libc/src/string/memory_utils/memcpy_implementations.h b/libc/src/string/memory_utils/memcpy_implementations.h index 657fbac3177ff..4e59230e2acb8 100644 --- a/libc/src/string/memory_utils/memcpy_implementations.h +++ b/libc/src/string/memory_utils/memcpy_implementations.h @@ -28,6 +28,8 @@ #elif defined(LIBC_TARGET_ARCH_IS_ANY_RISCV) #include "src/string/memory_utils/riscv/memcpy_implementations.h" #define LIBC_SRC_STRING_MEMORY_UTILS_MEMCPY inline_memcpy_riscv +#elif defined(LIBC_TARGET_ARCH_IS_GPU) +// TODO: Define a more optimal GPU impolementation. #else // We may want to error instead of defaulting to suboptimal implementation. #include "src/string/memory_utils/generic/byte_per_byte.h" diff --git a/libc/src/string/memory_utils/memmove_implementations.h b/libc/src/string/memory_utils/memmove_implementations.h index 78ae7a88cc457..764ed66ab6dc7 100644 --- a/libc/src/string/memory_utils/memmove_implementations.h +++ b/libc/src/string/memory_utils/memmove_implementations.h @@ -20,6 +20,8 @@ #elif defined(LIBC_TARGET_ARCH_IS_ANY_RISCV) #include "src/string/memory_utils/riscv/memmove_implementations.h" #define LIBC_SRC_STRING_MEMORY_UTILS_MEMMOVE inline_memmove_riscv +#elif defined(LIBC_TARGET_ARCH_IS_GPU) +// TODO: Define a more optimal GPU impolementation. #else // We may want to error instead of defaulting to suboptimal implementation. #include "src/string/memory_utils/generic/byte_per_byte.h" diff --git a/libc/src/string/memory_utils/memset_implementations.h b/libc/src/string/memory_utils/memset_implementations.h index 37ceff96fce9c..bb9317c927093 100644 --- a/libc/src/string/memory_utils/memset_implementations.h +++ b/libc/src/string/memory_utils/memset_implementations.h @@ -24,6 +24,8 @@ #elif defined(LIBC_TARGET_ARCH_IS_ANY_RISCV) #include "src/string/memory_utils/riscv/memset_implementations.h" #define LIBC_SRC_STRING_MEMORY_UTILS_MEMSET inline_memset_riscv +#elif defined(LIBC_TARGET_ARCH_IS_GPU) +// TODO: Define a more optimal GPU impolementation. #else // We may want to error instead of defaulting to suboptimal implementation. #include "src/string/memory_utils/generic/byte_per_byte.h"