2011-11-26 19:04:49 +00:00
|
|
|
/*
|
|
|
|
* (C) Copyright 2011, Stefan Kristiansson <stefan.kristiansson@saunalahti.fi>
|
|
|
|
*
|
2013-07-08 07:37:19 +00:00
|
|
|
* SPDX-License-Identifier: GPL-2.0+
|
2011-11-26 19:04:49 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __ASM_OPENRISC_BITOPS_H
|
|
|
|
#define __ASM_OPENRISC_BITOPS_H
|
|
|
|
|
|
|
|
#define PLATFORM_FLS
|
|
|
|
#include <asm/bitops/fls.h>
|
|
|
|
#define PLATFORM_FFS
|
|
|
|
#include <asm/bitops/ffs.h>
|
|
|
|
|
2015-11-05 14:43:32 +00:00
|
|
|
#include <asm-generic/bitops/__fls.h>
|
|
|
|
#include <asm-generic/bitops/fls64.h>
|
|
|
|
#include <asm-generic/bitops/__ffs.h>
|
|
|
|
|
2012-02-22 07:10:09 +00:00
|
|
|
#define hweight32(x) generic_hweight32(x)
|
|
|
|
#define hweight16(x) generic_hweight16(x)
|
|
|
|
#define hweight8(x) generic_hweight8(x)
|
|
|
|
|
2011-11-26 19:04:49 +00:00
|
|
|
#endif /* __ASM_GENERIC_BITOPS_H */
|