Linux Audio

Check our new training course

Open-source upstreaming

Need help get the support for your hardware in upstream Linux?
Loading...
v6.2
 1// SPDX-License-Identifier: GPL-2.0
 2#include <linux/export.h>
 3#include <linux/compiler.h>
 4#include <uapi/linux/swab.h>
 5
 6/* To silence -Wmissing-prototypes. */
 7unsigned int __bswapsi2(unsigned int u);
 8
 9unsigned int notrace __bswapsi2(unsigned int u)
10{
11	return ___constant_swab32(u);
 
 
 
12}
 
13EXPORT_SYMBOL(__bswapsi2);
v4.17
 1// SPDX-License-Identifier: GPL-2.0
 2#include <linux/export.h>
 3#include <linux/compiler.h>
 
 
 
 
 4
 5unsigned int notrace __bswapsi2(unsigned int u)
 6{
 7	return (((u) & 0xff000000) >> 24) |
 8	       (((u) & 0x00ff0000) >>  8) |
 9	       (((u) & 0x0000ff00) <<  8) |
10	       (((u) & 0x000000ff) << 24);
11}
12
13EXPORT_SYMBOL(__bswapsi2);