commit | 3d84338eb73528725036411cb0578fc1fa4fedd5 | [log] [tgz] |
---|---|---|
author | Elliott Hughes <enh@google.com> | Tue Oct 03 00:39:42 2023 +0000 |
committer | Elliott Hughes <enh@google.com> | Tue Oct 03 00:39:42 2023 +0000 |
tree | b992cf30518c1d4b74b9dff54bf2fcedd66896bc | |
parent | 68011a4ac7bf7b56ee148bbdfef44dd69364109e [diff] [blame] |
riscv64: add vector stpcpy(). Bug: https://github.com/google/android-riscv64/issues/107 Test: treehugger Change-Id: Ic1fb9da974769d2767ea2c092a2e97e095612e6e
diff --git a/libc/arch-riscv64/dynamic_function_dispatch.cpp b/libc/arch-riscv64/dynamic_function_dispatch.cpp index 0925c5f..5866fe4 100644 --- a/libc/arch-riscv64/dynamic_function_dispatch.cpp +++ b/libc/arch-riscv64/dynamic_function_dispatch.cpp
@@ -58,6 +58,11 @@ RETURN_FUNC(memset_func, memset_vext); } +typedef char* stpcpy_func(char*, const char*); +DEFINE_IFUNC_FOR(stpcpy) { + RETURN_FUNC(stpcpy_func, stpcpy_vext); +} + typedef char* strcat_func(char*, const char*); DEFINE_IFUNC_FOR(strcat) { RETURN_FUNC(strcat_func, strcat_vext);