diff options
author | Jakub Jelinek <jakub@redhat.com> | 2023-09-06 17:42:37 +0200 |
---|---|---|
committer | Jakub Jelinek <jakub@redhat.com> | 2023-09-06 17:42:37 +0200 |
commit | f6e0ec5696ec5f52baed71fe23f978bcef80d458 (patch) | |
tree | 9218e9dd8d431b1cf1fad10f8c9916edcdc216ed /libgcc/libgcc2.c | |
parent | f76ae4369cb6f38e17510704e5b6e53847d2a648 (diff) | |
download | gcc-f6e0ec5696ec5f52baed71fe23f978bcef80d458.zip gcc-f6e0ec5696ec5f52baed71fe23f978bcef80d458.tar.gz gcc-f6e0ec5696ec5f52baed71fe23f978bcef80d458.tar.bz2 |
libgcc _BitInt helper documentation [PR102989]
On Mon, Aug 21, 2023 at 05:32:04PM +0000, Joseph Myers wrote:
> I think the libgcc functions (i.e. those exported by libgcc, to which
> references are generated by the compiler) need documenting in libgcc.texi.
> Internal functions or macros in the libgcc patch need appropriate comments
> specifying their semantics; especially FP_TO_BITINT and FP_FROM_BITINT
> which have a lot of arguments and no comments saying what the semantics of
> the macros and their arguments are supposed to me.
Here is an incremental patch which does that.
2023-09-06 Jakub Jelinek <jakub@redhat.com>
PR c/102989
gcc/
* doc/libgcc.texi (Bit-precise integer arithmetic functions):
Document general rules for _BitInt support library functions
and document __mulbitint3 and __divmodbitint4.
(Conversion functions): Document __fix{s,d,x,t}fbitint,
__floatbitint{s,d,x,t,h,b}f, __bid_fix{s,d,t}dbitint and
__bid_floatbitint{s,d,t}d.
libgcc/
* libgcc2.c (bitint_negate): Add function comment.
* soft-fp/bitint.h (bitint_negate): Add function comment.
(FP_TO_BITINT, FP_FROM_BITINT): Add comment explaining the macros.
Diffstat (limited to 'libgcc/libgcc2.c')
-rw-r--r-- | libgcc/libgcc2.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libgcc/libgcc2.c b/libgcc/libgcc2.c index d217e33..8b42210 100644 --- a/libgcc/libgcc2.c +++ b/libgcc/libgcc2.c @@ -1640,6 +1640,8 @@ __mulbitint3 (UWtype *ret, SItype retprec, #endif #ifdef L_divmodbitint4 +/* D = -S. */ + static void bitint_negate (UWtype *d, const UWtype *s, SItype n) { |