xref: /freebsd/sys/compat/linuxkpi/common/include/linux/wordpart.h (revision 0a2f3b8ef16786a44fc88afd8862920df4527a3c)
1 /*
2  * SPDX-License-Identifier: BSD-2-Clause
3  *
4  * Copyright (c) 2019 Jean-Sébastien Pédron
5  */
6 
7 #ifndef	_LINUXKPI_LINUX_WORDPART_H_
8 #define	_LINUXKPI_LINUX_WORDPART_H_
9 
10 #define	lower_32_bits(n)		((u32)(n))
11 #define	upper_32_bits(n)		((u32)(((n) >> 16) >> 16))
12 
13 #endif	/* _LINUXKPI_LINUX_WORDPART_H_ */
14