]> git.ipfire.org Git - thirdparty/man-pages.git/commit
bswap.3: bswap_*() are implemented using functions
authorAlejandro Colomar <alx.manpages@gmail.com>
Sun, 9 May 2021 21:39:23 +0000 (23:39 +0200)
committerMichael Kerrisk <mtk.manpages@gmail.com>
Mon, 10 May 2021 01:07:02 +0000 (13:07 +1200)
commit58d7a46ccb397e4b95aab703bec0f212c5559fa6
tree3dca444cf7cf01573f4b3aaecfd7bbabe904f6bd
parent5175f162a3b7ed8fce78d4e53a24e1900a932625
bswap.3: bswap_*() are implemented using functions

See <bits/byteswap.h> in glibc.
These macros call functions of the form __bswap_N(),
which use uintN_t.

Even though it's true that they are macros,
it's transparent to the user.

The user will see their results casted to unsigned types
after the conversion due to the underlying functions,
so it's better to document these as the underlying functions,
specifying the types.

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
man3/bswap.3