public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH] Update libgcc.texi to match implementation in libgcc/libgcc2.c
@ 2014-10-28  8:13 Kito Cheng
  2014-11-04 12:22 ` Kito Cheng
  2014-12-09 15:08 ` Ian Lance Taylor
  0 siblings, 2 replies; 4+ messages in thread
From: Kito Cheng @ 2014-10-28  8:13 UTC (permalink / raw)
  To: gcc-patches, Ian Lance Taylor, Joseph S. Myers, Gerald Pfeifer

[-- Attachment #1: Type: text/plain, Size: 477 bytes --]

Hi all:

This patch update `Bit operations` section in libgcc.text, most bit
operation function is take an unsigned integer instead of signed
integer in libgcc/libgcc2.c [1], and it seem more make sense :)

ChangeLog
2014-10-28  Kito Cheng  <kito@0xlab.org>

        * doc/libgcc.texi: Update text to match implementation in
        libgcc/libgcc2.c

[1] https://gcc.gnu.org/git/gitweb.cgi?p=gcc.git;a=blob;f=libgcc/libgcc2.c;h=46d6a2ef030ff98a944935f77529cee9c05fb326;hb=HEAD

[-- Attachment #2: 0001-Update-libgcc.texi-to-match-implementation-in-libgcc.patch --]
[-- Type: text/x-patch, Size: 3328 bytes --]

From e1d2be5f8dd25075f0e89289122efdf39f077547 Mon Sep 17 00:00:00 2001
From: Kito Cheng <kito@andestech.com>
Date: Tue, 28 Oct 2014 11:03:27 +0800
Subject: [PATCH] Update libgcc.texi to match implementation in
 libgcc/libgcc2.c

2014-10-28  Kito Cheng  <kito@0xlab.org>

	* doc/libgcc.texi: Update text to match implementation in
	libgcc/libgcc2.c
---
 gcc/doc/libgcc.texi |   28 ++++++++++++++--------------
 1 files changed, 14 insertions(+), 14 deletions(-)

diff --git a/gcc/doc/libgcc.texi b/gcc/doc/libgcc.texi
index 0dd2ff7..da2fa9a 100644
--- a/gcc/doc/libgcc.texi
+++ b/gcc/doc/libgcc.texi
@@ -177,39 +177,39 @@ that is @code{@var{a} - @var{b}}.
 
 @subsection Bit operations
 
-@deftypefn {Runtime Function} int __clzsi2 (int @var{a})
-@deftypefnx {Runtime Function} int __clzdi2 (long @var{a})
-@deftypefnx {Runtime Function} int __clzti2 (long long @var{a})
+@deftypefn {Runtime Function} int __clzsi2 (unsigned int @var{a})
+@deftypefnx {Runtime Function} int __clzdi2 (unsigned long @var{a})
+@deftypefnx {Runtime Function} int __clzti2 (unsigned long long @var{a})
 These functions return the number of leading 0-bits in @var{a}, starting
 at the most significant bit position.  If @var{a} is zero, the result is
 undefined.
 @end deftypefn
 
-@deftypefn {Runtime Function} int __ctzsi2 (int @var{a})
-@deftypefnx {Runtime Function} int __ctzdi2 (long @var{a})
-@deftypefnx {Runtime Function} int __ctzti2 (long long @var{a})
+@deftypefn {Runtime Function} int __ctzsi2 (unsigned int @var{a})
+@deftypefnx {Runtime Function} int __ctzdi2 (unsigned long @var{a})
+@deftypefnx {Runtime Function} int __ctzti2 (unsigned long long @var{a})
 These functions return the number of trailing 0-bits in @var{a}, starting
 at the least significant bit position.  If @var{a} is zero, the result is
 undefined.
 @end deftypefn
 
-@deftypefn {Runtime Function} int __ffsdi2 (long @var{a})
-@deftypefnx {Runtime Function} int __ffsti2 (long long @var{a})
+@deftypefn {Runtime Function} int __ffsdi2 (unsigned long @var{a})
+@deftypefnx {Runtime Function} int __ffsti2 (unsigned long long @var{a})
 These functions return the index of the least significant 1-bit in @var{a},
 or the value zero if @var{a} is zero.  The least significant bit is index
 one.
 @end deftypefn
 
-@deftypefn {Runtime Function} int __paritysi2 (int @var{a})
-@deftypefnx {Runtime Function} int __paritydi2 (long @var{a})
-@deftypefnx {Runtime Function} int __parityti2 (long long @var{a})
+@deftypefn {Runtime Function} int __paritysi2 (unsigned int @var{a})
+@deftypefnx {Runtime Function} int __paritydi2 (unsigned long @var{a})
+@deftypefnx {Runtime Function} int __parityti2 (unsigned long long @var{a})
 These functions return the value zero if the number of bits set in
 @var{a} is even, and the value one otherwise.
 @end deftypefn
 
-@deftypefn {Runtime Function} int __popcountsi2 (int @var{a})
-@deftypefnx {Runtime Function} int __popcountdi2 (long @var{a})
-@deftypefnx {Runtime Function} int __popcountti2 (long long @var{a})
+@deftypefn {Runtime Function} int __popcountsi2 (unsigned int @var{a})
+@deftypefnx {Runtime Function} int __popcountdi2 (unsigned long @var{a})
+@deftypefnx {Runtime Function} int __popcountti2 (unsigned long long @var{a})
 These functions return the number of bits set in @var{a}.
 @end deftypefn
 
-- 
1.7.6


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] Update libgcc.texi to match implementation in libgcc/libgcc2.c
  2014-10-28  8:13 [PATCH] Update libgcc.texi to match implementation in libgcc/libgcc2.c Kito Cheng
@ 2014-11-04 12:22 ` Kito Cheng
  2014-12-09 15:08 ` Ian Lance Taylor
  1 sibling, 0 replies; 4+ messages in thread
From: Kito Cheng @ 2014-11-04 12:22 UTC (permalink / raw)
  To: gcc-patches, Ian Lance Taylor, Joseph S. Myers, Gerald Pfeifer

ping!

On Tue, Oct 28, 2014 at 11:19 AM, Kito Cheng <kito.cheng@gmail.com> wrote:
> Hi all:
>
> This patch update `Bit operations` section in libgcc.text, most bit
> operation function is take an unsigned integer instead of signed
> integer in libgcc/libgcc2.c [1], and it seem more make sense :)
>
> ChangeLog
> 2014-10-28  Kito Cheng  <kito@0xlab.org>
>
>         * doc/libgcc.texi: Update text to match implementation in
>         libgcc/libgcc2.c
>
> [1] https://gcc.gnu.org/git/gitweb.cgi?p=gcc.git;a=blob;f=libgcc/libgcc2.c;h=46d6a2ef030ff98a944935f77529cee9c05fb326;hb=HEAD

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] Update libgcc.texi to match implementation in libgcc/libgcc2.c
  2014-10-28  8:13 [PATCH] Update libgcc.texi to match implementation in libgcc/libgcc2.c Kito Cheng
  2014-11-04 12:22 ` Kito Cheng
@ 2014-12-09 15:08 ` Ian Lance Taylor
  2014-12-10  5:51   ` Chung-Ju Wu
  1 sibling, 1 reply; 4+ messages in thread
From: Ian Lance Taylor @ 2014-12-09 15:08 UTC (permalink / raw)
  To: Kito Cheng; +Cc: gcc-patches, Joseph S. Myers, Gerald Pfeifer

On Mon, Oct 27, 2014 at 8:19 PM, Kito Cheng <kito.cheng@gmail.com> wrote:
>
> This patch update `Bit operations` section in libgcc.text, most bit
> operation function is take an unsigned integer instead of signed
> integer in libgcc/libgcc2.c [1], and it seem more make sense :)
>
> ChangeLog
> 2014-10-28  Kito Cheng  <kito@0xlab.org>
>
>         * doc/libgcc.texi: Update text to match implementation in
>         libgcc/libgcc2.c
>
> [1] https://gcc.gnu.org/git/gitweb.cgi?p=gcc.git;a=blob;f=libgcc/libgcc2.c;h=46d6a2ef030ff98a944935f77529cee9c05fb326;hb=HEAD

This is OK.

Thanks.

Ian

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] Update libgcc.texi to match implementation in libgcc/libgcc2.c
  2014-12-09 15:08 ` Ian Lance Taylor
@ 2014-12-10  5:51   ` Chung-Ju Wu
  0 siblings, 0 replies; 4+ messages in thread
From: Chung-Ju Wu @ 2014-12-10  5:51 UTC (permalink / raw)
  To: Kito Cheng, Ian Lance Taylor; +Cc: gcc-patches, Joseph S. Myers, Gerald Pfeifer

2014-12-09 23:08 GMT+08:00 Ian Lance Taylor <iant@google.com>:
> On Mon, Oct 27, 2014 at 8:19 PM, Kito Cheng <kito.cheng@gmail.com> wrote:
>>
>> This patch update `Bit operations` section in libgcc.text, most bit
>> operation function is take an unsigned integer instead of signed
>> integer in libgcc/libgcc2.c [1], and it seem more make sense :)
>>
>> ChangeLog
>> 2014-10-28  Kito Cheng  <kito@0xlab.org>
>>
>>         * doc/libgcc.texi: Update text to match implementation in
>>         libgcc/libgcc2.c
>>
>> [1] https://gcc.gnu.org/git/gitweb.cgi?p=gcc.git;a=blob;f=libgcc/libgcc2.c;h=46d6a2ef030ff98a944935f77529cee9c05fb326;hb=HEAD
>
> This is OK.

Although Kito has signed FSF agreement, he has not got his
read-write svn access yet.

So I can help to commit this patch for him.
Committed as Rev.218559:
  https://gcc.gnu.org/r218559


Best regards,
jasonwucj

>
> Thanks.
>
> Ian

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-12-10  5:51 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-10-28  8:13 [PATCH] Update libgcc.texi to match implementation in libgcc/libgcc2.c Kito Cheng
2014-11-04 12:22 ` Kito Cheng
2014-12-09 15:08 ` Ian Lance Taylor
2014-12-10  5:51   ` Chung-Ju Wu

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).