This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH v3, middle end]: Fix PR 37908, thinko with atomic NAND operation, doc addendum


Uros Bizjak wrote:
> Hello!
> 
> Just a small documentation update as a followup to the patch:
> 
> Index: extend.texi
> ===================================================================
> --- extend.texi (revision 141602)
> +++ extend.texi (working copy)
> @@ -5774,9 +5774,12 @@
> 
>  @smallexample
>  @{ tmp = *ptr; *ptr @var{op}= value; return tmp; @}
> -@{ tmp = *ptr; *ptr = ~tmp & value; return tmp; @}   // nand
> +@{ tmp = *ptr; *ptr = ~(tmp & value); return tmp; @}   // nand
>  @end smallexample
> 
> +@emph{Note:} GCC 4.4 and later implement @code{__sync_fetch_and_nand}
> +builtin as @code{*ptr = ~(tmp & value)} instead of @code{*ptr = tmp & value}.
> +

Shouldn't this be

as @code{*ptr = ~(tmp & value)} instead of @code{*ptr = ~tmp & value}.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]