diff options
| author | Strahinja Stanišić <strajabot@FreeBSD.org> | 2024-10-24 16:29:04 +0000 |
|---|---|---|
| committer | Robert Clausecker <fuz@FreeBSD.org> | 2025-10-31 12:47:57 +0000 |
| commit | 63ff982b17ee398c7808be323d8fd37819a5863c (patch) | |
| tree | c241c4c1e690ad48edce97520d2c6b9b2a2a8a09 | |
| parent | df21a004be237a1dccd03c7b47254625eea62fa9 (diff) | |
simd.7: add scalar strrchr() for RISC-V to manpage
MFC after: 1 month
MFC to: stable/15
Approved by: mhorne, markj (mentor)
Sponsored by: Google LLC (GSoC 2024)
Differential Revision: https://reviews.freebsd.org/D47275
| -rw-r--r-- | lib/libc/riscv/string/strrchr.S | 3 | ||||
| -rw-r--r-- | share/man/man7/simd.7 | 15 |
2 files changed, 12 insertions, 6 deletions
diff --git a/lib/libc/riscv/string/strrchr.S b/lib/libc/riscv/string/strrchr.S index 51f34ca21fac..e922a692e77f 100644 --- a/lib/libc/riscv/string/strrchr.S +++ b/lib/libc/riscv/string/strrchr.S @@ -6,6 +6,9 @@ #include <machine/asm.h> + .weak rindex + .set rindex, strrchr + /* * a0 - const char *s * a1 - int c diff --git a/share/man/man7/simd.7 b/share/man/man7/simd.7 index d5092348d9b3..92cbbdee25a4 100644 --- a/share/man/man7/simd.7 +++ b/share/man/man7/simd.7 @@ -24,7 +24,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE . -.Dd November 18, 2024 +.Dd October 8, 2025 .Dt SIMD 7 .Os .Sh NAME @@ -50,7 +50,7 @@ can be used to override this mechanism. .Pp Enhanced functions are present for the following architectures: .Bl -column FUNCTION_________ aarch64_ arm_ amd64_ i386_ ppc64_ -offset indent -.It Em FUNCTION Ta Em AARCH64 Ta Em ARM Ta Em AMD64 Ta Em I386 Ta Em PPC64 +.It Em FUNCTION Ta Em AARCH64 Ta Em ARM Ta Em AMD64 Ta Em I386 Ta Em PPC64 Ta Em RISC-V .It bcmp Ta A Ta Ta S1 Ta S .It bcopy Ta A Ta S Ta S Ta S Ta SV .It bzero Ta A Ta S Ta S Ta S @@ -65,7 +65,7 @@ Enhanced functions are present for the following architectures: .It memmove Ta A Ta S Ta S Ta S Ta SV .It memrchr Ta A Ta Ta S1 .It memset Ta A Ta S Ta S Ta S -.It rindex Ta A Ta Ta S1 Ta S +.It rindex Ta A Ta Ta S1 Ta S Ta Ta S .It stpcpy Ta A Ta Ta S1 .It stpncpy Ta Ta Ta S1 .It strcat Ta A Ta Ta S1 Ta S @@ -81,7 +81,7 @@ Enhanced functions are present for the following architectures: .It strncmp Ta A Ta S Ta S1 Ta S .It strncpy Ta Ta Ta S1 Ta Ta S2 .It strnlen Ta A Ta Ta S1 -.It strrchr Ta A Ta Ta S1 Ta S +.It strrchr Ta A Ta Ta S1 Ta S Ta Ta S .It strpbrk Ta S Ta Ta S2 .It strsep Ta S Ta Ta S2 .It strspn Ta S Ta Ta S2 @@ -207,10 +207,13 @@ for .Fx 11.0 for .Cm aarch64 , -and .Fx 12.0 for -.Cm powerpc64 . +.Cm powerpc64 , +and +.Fx 16.0 +for +.Cm riscv64 . SIMD-enhanced functions were first added with .Fx 13.0 for |
