~pmdj/ubuntu/trusty/qemu/2.9+applesmc+fadtv3

« back to all changes in this revision

Viewing changes to roms/u-boot/include/linux/bitrev.h

  • Committer: Phil Dennis-Jordan
  • Date: 2017-07-21 08:03:43 UTC
  • mfrom: (1.1.1)
  • Revision ID: phil@philjordan.eu-20170721080343-2yr2vdj7713czahv
New upstream release 2.9.0.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * SPDX-License-Identifier:     GPL-2.0+
 
3
 *
 
4
 * Based on bitrev from the Linux kernel, by Akinobu Mita
 
5
 */
 
6
 
 
7
#ifndef _LINUX_BITREV_H
 
8
#define _LINUX_BITREV_H
 
9
 
 
10
#include <linux/types.h>
 
11
 
 
12
extern u8 const byte_rev_table[256];
 
13
 
 
14
static inline u8 bitrev8(u8 byte)
 
15
{
 
16
        return byte_rev_table[byte];
 
17
}
 
18
 
 
19
u16 bitrev16(u16 in);
 
20
u32 bitrev32(u32 in);
 
21
 
 
22
#endif /* _LINUX_BITREV_H */