public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-1905] amdgcn: Use unsigned types for udivsi3/umodsi3 libgcc helper args/return
@ 2021-06-29 15:22 Julian Brown
0 siblings, 0 replies; only message in thread
From: Julian Brown @ 2021-06-29 15:22 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:7a973fc03a52b5f39bf60dc0ef2fdf4a2e2ec7c8
commit r12-1905-g7a973fc03a52b5f39bf60dc0ef2fdf4a2e2ec7c8
Author: Julian Brown <julian@codesourcery.com>
Date: Thu Jun 17 10:55:48 2021 -0700
amdgcn: Use unsigned types for udivsi3/umodsi3 libgcc helper args/return
This patch changes the argument and return types for the libgcc __udivsi3
and __umodsi3 helper functions for GCN to USItype instead of SItype.
This is probably just cosmetic in practice.
2021-06-18 Julian Brown <julian@codesourcery.com>
libgcc/
* config/gcn/lib2-divmod.c (__udivsi3, __umodsi3): Change argument and
return types to USItype.
* config/gcn/lib2-gcn.h (__udivsi3, __umodsi3): Update prototypes.
Diff:
---
libgcc/config/gcn/lib2-divmod.c | 8 ++++----
libgcc/config/gcn/lib2-gcn.h | 4 ++--
2 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/libgcc/config/gcn/lib2-divmod.c b/libgcc/config/gcn/lib2-divmod.c
index 0d6ca44f521..7c72e24e0c3 100644
--- a/libgcc/config/gcn/lib2-divmod.c
+++ b/libgcc/config/gcn/lib2-divmod.c
@@ -102,15 +102,15 @@ __modsi3 (SItype a, SItype b)
}
-SItype
-__udivsi3 (SItype a, SItype b)
+USItype
+__udivsi3 (USItype a, USItype b)
{
return udivmodsi4 (a, b, 0);
}
-SItype
-__umodsi3 (SItype a, SItype b)
+USItype
+__umodsi3 (USItype a, USItype b)
{
return udivmodsi4 (a, b, 1);
}
diff --git a/libgcc/config/gcn/lib2-gcn.h b/libgcc/config/gcn/lib2-gcn.h
index 11476c4cda8..9223d73b8e7 100644
--- a/libgcc/config/gcn/lib2-gcn.h
+++ b/libgcc/config/gcn/lib2-gcn.h
@@ -38,8 +38,8 @@ typedef int word_type __attribute__ ((mode (__word__)));
/* Exported functions. */
extern SItype __divsi3 (SItype, SItype);
extern SItype __modsi3 (SItype, SItype);
-extern SItype __udivsi3 (SItype, SItype);
-extern SItype __umodsi3 (SItype, SItype);
+extern USItype __udivsi3 (USItype, USItype);
+extern USItype __umodsi3 (USItype, USItype);
extern HItype __divhi3 (HItype, HItype);
extern HItype __modhi3 (HItype, HItype);
extern UHItype __udivhi3 (UHItype, UHItype);
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-06-29 15:22 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-29 15:22 [gcc r12-1905] amdgcn: Use unsigned types for udivsi3/umodsi3 libgcc helper args/return Julian Brown
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).