strlen.S (ea68a3e9d14e9e0bf017d178fb4bd53b6deb1482) | strlen.S (26e7aacb83dfd04330673c5c9ac336560da52bb3) |
---|---|
1/* SPDX-License-Identifier: GPL-2.0-only */ 2 3#include <linux/linkage.h> 4#include <asm/asm.h> | 1/* SPDX-License-Identifier: GPL-2.0-only */ 2 3#include <linux/linkage.h> 4#include <asm/asm.h> |
5#include <asm-generic/export.h> | |
6#include <asm/alternative-macros.h> | 5#include <asm/alternative-macros.h> |
7#include <asm/errata_list.h> | 6#include <asm/hwcap.h> |
8 9/* int strlen(const char *s) */ 10SYM_FUNC_START(strlen) 11 12 ALTERNATIVE("nop", "j strlen_zbb", 0, RISCV_ISA_EXT_ZBB, CONFIG_RISCV_ISA_ZBB) 13 14 /* 15 * Returns --- 110 unchanged lines hidden (view full) --- 126 /* Add number of characters in the last word. */ 127 add a0, a0, t1 1282: 129 ret 130 131.option pop 132#endif 133SYM_FUNC_END(strlen) | 7 8/* int strlen(const char *s) */ 9SYM_FUNC_START(strlen) 10 11 ALTERNATIVE("nop", "j strlen_zbb", 0, RISCV_ISA_EXT_ZBB, CONFIG_RISCV_ISA_ZBB) 12 13 /* 14 * Returns --- 110 unchanged lines hidden (view full) --- 125 /* Add number of characters in the last word. */ 126 add a0, a0, t1 1272: 128 ret 129 130.option pop 131#endif 132SYM_FUNC_END(strlen) |
133SYM_FUNC_ALIAS(__pi_strlen, strlen) |
|