bitops.h 571 B

123456789101112131415161718192021222324
  1. /*
  2. * Copyright (C) 2013-2014 Synopsys, Inc. All rights reserved.
  3. *
  4. * SPDX-License-Identifier: GPL-2.0+
  5. */
  6. #ifndef __ASM_ARC_BITOPS_H
  7. #define __ASM_ARC_BITOPS_H
  8. /*
  9. * hweightN: returns the hamming weight (i.e. the number
  10. * of bits set) of a N-bit word
  11. */
  12. #define hweight32(x) generic_hweight32(x)
  13. #define hweight16(x) generic_hweight16(x)
  14. #define hweight8(x) generic_hweight8(x)
  15. #include <asm-generic/bitops/fls.h>
  16. #include <asm-generic/bitops/__fls.h>
  17. #include <asm-generic/bitops/fls64.h>
  18. #include <asm-generic/bitops/__ffs.h>
  19. #endif /* __ASM_ARC_BITOPS_H */