Linux Audio

Check our new training course

Loading...
v4.17
 1/* SPDX-License-Identifier: GPL-2.0 */
 2#ifndef __ASM_GENERIC_BITS_PER_LONG
 3#define __ASM_GENERIC_BITS_PER_LONG
 4
 5#include <uapi/asm-generic/bitsperlong.h>
 6
 7#ifdef __SIZEOF_LONG__
 8#define BITS_PER_LONG (__CHAR_BIT__ * __SIZEOF_LONG__)
 9#else
10#define BITS_PER_LONG __WORDSIZE
11#endif
12
13#if BITS_PER_LONG != __BITS_PER_LONG
14#error Inconsistent word size. Check asm/bitsperlong.h
15#endif
16
17#ifndef BITS_PER_LONG_LONG
18#define BITS_PER_LONG_LONG 64
19#endif
20
21#endif /* __ASM_GENERIC_BITS_PER_LONG */
v4.10.11
 
 1#ifndef __ASM_GENERIC_BITS_PER_LONG
 2#define __ASM_GENERIC_BITS_PER_LONG
 3
 4#include <uapi/asm-generic/bitsperlong.h>
 5
 6#ifdef __SIZEOF_LONG__
 7#define BITS_PER_LONG (__CHAR_BIT__ * __SIZEOF_LONG__)
 8#else
 9#define BITS_PER_LONG __WORDSIZE
10#endif
11
12#if BITS_PER_LONG != __BITS_PER_LONG
13#error Inconsistent word size. Check asm/bitsperlong.h
14#endif
15
16#ifndef BITS_PER_LONG_LONG
17#define BITS_PER_LONG_LONG 64
18#endif
19
20#endif /* __ASM_GENERIC_BITS_PER_LONG */