]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
__builtin_bswapXX: improve docs
authorOscar Gustafsson <oscar.gustafsson@gmail.com>
Tue, 4 Mar 2025 15:29:30 +0000 (15:29 +0000)
committerRichard Sandiford <richard.sandiford@arm.com>
Tue, 4 Mar 2025 15:29:30 +0000 (15:29 +0000)
gcc/ChangeLog:

* doc/extend.texi: Improve example for __builtin_bswap16.

gcc/doc/extend.texi

index ec9bb59900c9f94953b92d6d3c68a493df51977c..83f6e45170be119aed9378e054c9784235738608 100644 (file)
@@ -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