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>
|
|
|
|
|
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 */
|