bitops.h 567 B

1234567891011121314151617181920212223
  1. /*
  2. * (C) Copyright 2011, Stefan Kristiansson <stefan.kristiansson@saunalahti.fi>
  3. *
  4. * SPDX-License-Identifier: GPL-2.0+
  5. */
  6. #ifndef __ASM_OPENRISC_BITOPS_H
  7. #define __ASM_OPENRISC_BITOPS_H
  8. #define PLATFORM_FLS
  9. #include <asm/bitops/fls.h>
  10. #define PLATFORM_FFS
  11. #include <asm/bitops/ffs.h>
  12. #include <asm-generic/bitops/__fls.h>
  13. #include <asm-generic/bitops/fls64.h>
  14. #include <asm-generic/bitops/__ffs.h>
  15. #define hweight32(x) generic_hweight32(x)
  16. #define hweight16(x) generic_hweight16(x)
  17. #define hweight8(x) generic_hweight8(x)
  18. #endif /* __ASM_GENERIC_BITOPS_H */