cachepc-linux

Fork of AMDESE/linux with modifications for CachePC side-channel attack
git clone https://git.sinitax.com/sinitax/cachepc-linux
Log | Files | Refs | README | LICENSE | sfeed.txt

bswapsi.c (318B)


      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);