]> gcc.gnu.org Git - gcc.git/commit
libgcc _BitInt helper documentation [PR102989]
authorJakub Jelinek <jakub@redhat.com>
Wed, 6 Sep 2023 15:42:37 +0000 (17:42 +0200)
committerJakub Jelinek <jakub@redhat.com>
Wed, 6 Sep 2023 15:42:37 +0000 (17:42 +0200)
commitf6e0ec5696ec5f52baed71fe23f978bcef80d458
tree9218e9dd8d431b1cf1fad10f8c9916edcdc216ed
parentf76ae4369cb6f38e17510704e5b6e53847d2a648
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.
gcc/doc/libgcc.texi
libgcc/libgcc2.c
libgcc/soft-fp/bitint.h
This page took 0.090319 seconds and 5 git commands to generate.