Oscar Gustafsson <oscar.gustafs...@gmail.com> writes: > ChangeLog: > > * doc/extend.texi: Improve example for __builtin_swap16. > > --- > > diff --git a/gcc/doc/extend.texi b/gcc/doc/extend.texi > index ec9bb59900c..83f6e45170b 100644 > --- a/gcc/doc/extend.texi > +++ b/gcc/doc/extend.texi > @@ -16338,7 +16338,7 @@ Returns the first argument raised to the power of > the second. Unlike the > > @defbuiltin{uint16_t __builtin_bswap16 (uint16_t @var{x})} > Returns @var{x} with the order of the bytes reversed; for example, > -@code{0xaabb} becomes @code{0xbbaa}. Byte here always means > +@code{0xabcd} becomes @code{0xcdab}. Byte here always means > exactly 8 bits. > @enddefbuiltin
Thanks for the patch. I agree this example is clearer, so I've pushed it to trunk. I'll push the testsuite update tomorrow if there are no objections. Richard