blob: 6d0b57c0145de74fce8ed3d15b88faadf5843f15 [file] [log] [blame]
Stefan Kristiansson6e560bb2011-11-26 19:04:49 +00001/*
2 * (C) Copyright 2011, Stefan Kristiansson <stefan.kristiansson@saunalahti.fi>
3 *
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02004 * SPDX-License-Identifier: GPL-2.0+
Stefan Kristiansson6e560bb2011-11-26 19:04:49 +00005 */
6
7#ifndef __ASM_OPENRISC_BITOPS_H
8#define __ASM_OPENRISC_BITOPS_H
9
10#define PLATFORM_FLS
11#include <asm/bitops/fls.h>
12#define PLATFORM_FFS
13#include <asm/bitops/ffs.h>
14
Stefan Kristiansson8843e652012-02-22 07:10:09 +000015#define hweight32(x) generic_hweight32(x)
16#define hweight16(x) generic_hweight16(x)
17#define hweight8(x) generic_hweight8(x)
18
Stefan Kristiansson6e560bb2011-11-26 19:04:49 +000019#endif /* __ASM_GENERIC_BITOPS_H */