mirror of
https://github.com/torvalds/linux.git
synced 2024-11-29 07:31:29 +00:00
8e6ec6ce02
Use macro definitions ___constant_swab64 and ___constant_swab32 to simplify __bswapdi2() and __bswapsi2(). Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn> Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
14 lines
335 B
C
14 lines
335 B
C
// SPDX-License-Identifier: GPL-2.0
|
|
#include <linux/export.h>
|
|
#include <linux/compiler.h>
|
|
#include <uapi/linux/swab.h>
|
|
|
|
/* To silence -Wmissing-prototypes. */
|
|
unsigned long long __bswapdi2(unsigned long long u);
|
|
|
|
unsigned long long notrace __bswapdi2(unsigned long long u)
|
|
{
|
|
return ___constant_swab64(u);
|
|
}
|
|
EXPORT_SYMBOL(__bswapdi2);
|