aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/bitops.h
AgeCommit message (Expand)AuthorFilesLines
2025-09-08bitops: Add __attribute_const__ to generic ffs()-family implementationsKees Cook1-1/+1
2025-04-29bits: introduce fixed-type GENMASK_U*()Vincent Mailhol1-1/+0
2025-01-12bitops: add generic parity calculation for u8Wolfram Sang1-0/+31
2024-06-18bitops: Add a comment explaining the double underscore macrosDan Carpenter1-0/+5
2024-05-21Merge tag 'bitmap-for-6.10v2' of https://github.com/norov/linuxLinus Torvalds1-16/+3
2024-05-20Merge tag 'asm-generic-6.10' of git://git.kernel.org/pub/scm/linux/kernel/git...Linus Torvalds1-3/+3
2024-05-19bitops: Move aligned_byte_mask() to wordpart.hAndy Shevchenko1-7/+0
2024-05-09bitops: Optimize fns() for improved performanceKuan-Wei Chiu1-9/+3
2024-05-03bitops: Change function return types from long to intThorsten Blum1-3/+3
2024-04-01bitops: let the compiler optimize {__,}assign_bit()Alexander Lobakin1-16/+4
2024-04-01bitops: make BYTES_TO_BITS() treewide-availableAlexander Lobakin1-0/+2
2024-04-01bitops: add missing prototype checkAlexander Lobakin1-0/+1
2022-10-12Merge tag 'mm-nonmm-stable-2022-10-11' of git://git.kernel.org/pub/scm/linux/...Linus Torvalds1-5/+6
2022-09-26lib: add find_nth{,_and,_andnot}_bit()Yury Norov1-0/+19
2022-09-11bitops: use try_cmpxchg in set_mask_bits and bit_clear_unlessUros Bizjak1-5/+6
2022-08-26wait_on_bit: add an acquire memory barrierMikulas Patocka1-0/+1
2022-06-30bitops: let optimize out non-atomic bitops on compile-time constantsAlexander Lobakin1-1/+17
2022-06-30bitops: wrap non-atomic bitops with a transparent macroAlexander Lobakin1-1/+17
2022-06-30bitops: define const_*() versions of the non-atomicsAlexander Lobakin1-0/+1
2022-06-30bitops: unify non-atomic bitops prototypes across architecturesAlexander Lobakin1-0/+17
2022-01-15include/linux: move for_each_bit() macros from bitops.h to find.hYury Norov1-34/+0
2021-07-07bitops: Add non-atomic bitops for pointersKumar Kartikeya Dwivedi1-0/+50
2021-05-06lib: add fast path for find_first_*_bit() and find_last_bit()Yury Norov1-12/+0
2021-02-26include/linux/bitops.h: spelling s/synomyn/synonym/Geert Uytterhoeven1-1/+1
2020-12-15kernel.h: split out mathematical helpersAndy Shevchenko1-4/+7
2020-10-16bitops: use the same mechanism for get_count_order[_long]Wei Yang1-5/+3
2020-10-16bitops: simplify get_count_order_long()Wei Yang1-4/+1
2020-06-04include/linux/bitops.h: avoid clang shift-count-overflow warningsArnd Bergmann1-1/+1
2020-04-07bitops: always inline sign extension helpersJosh Poimboeuf1-2/+2
2020-02-04bitops: more BITS_TO_* macrosYury Norov1-1/+3
2020-01-31ocfs2/dlm: move BITS_TO_BYTES() to bitops.h for wider useAndy Shevchenko1-0/+1
2019-12-04bitops: introduce the for_each_set_clump8 macroWilliam Breathitt Gray1-0/+12
2019-10-01lib: introduce copy_struct_from_user() helperAleksa Sarai1-0/+7
2019-05-14include/linux/bitops.h: sanitize rotate primitivesRasmus Villemoes1-8/+8
2019-03-07include/linux/bitops.h: set_mask_bits() to return old valueVineet Gupta1-1/+1
2018-10-15bitops: protect variables in bit_clear_unless() macroMiklos Szeredi1-8/+8
2018-10-15bitops: protect variables in set_mask_bits() macroMiklos Szeredi1-7/+7
2018-08-22include/linux/bitops.h: introduce BITS_PER_TYPEChris Wilson1-1/+2
2018-06-21locking/atomics, asm-generic: Move some macros from <linux/bitops.h> to a new...Will Deacon1-21/+1
2017-11-14Merge tag 'gpio-v4.15-1' of ssh://gitolite.kernel.org/pub/scm/linux/kernel/gi...Linus Torvalds1-0/+24
2017-11-07Merge branch 'linus' into locking/core, to resolve conflictsIngo Molnar1-0/+1
2017-11-02License cleanup: add SPDX GPL-2.0 license identifier to files with no licenseGreg Kroah-Hartman1-0/+1
2017-10-25locking/atomics: COCCINELLE/treewide: Convert trivial ACCESS_ONCE() patterns ...Mark Rutland1-2/+2
2017-10-19bitops: Introduce assign_bit()Lukas Wunner1-0/+24
2017-09-08bitops: avoid integer overflow in GENMASK(_ULL)Matthias Kaehlcke1-2/+3
2016-10-07mm/vmalloc.c: fix align value calculation errorzijun_hu1-10/+26
2016-05-09md: set MD_CHANGE_PENDING in a atomic regionGuoqing Jiang1-0/+16
2015-12-09bitops.h: correctly handle rol32 with 0 byte shiftSasha Levin1-1/+1
2015-11-06bitops.h: add sign_extend64()Martin Kepplinger1-0/+11
2015-11-06bitops.h: improve sign_extend32()'s documentationMartin Kepplinger1-0/+2
2015-08-05linux/bitmap: Force inlining of bitmap weight functionsDenys Vlasenko1-3/+3
2015-04-17lib: find_*_bit reimplementationYury Norov1-2/+2
2014-11-16bitops: Fix shift overflow in GENMASK macrosMaxime COQUELIN1-2/+5
2014-08-13locking: Remove deprecated smp_mb__() barriersPeter Zijlstra1-20/+0
2014-04-18arch: Prepare for smp_mb__{before,after}_atomic()Peter Zijlstra1-0/+20
2014-03-30ext4: atomically set inode->i_flags in ext4_set_inode_flags()Theodore Ts'o1-0/+15
2013-11-14Merge tag 'pm+acpi-3.13-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git...Linus Torvalds1-0/+3
2013-10-21bitops: Introduce a more generic BITMASK macroChen, Gong1-0/+8
2013-10-17bitops: Introduce BIT_ULLSrinivas Pandruvada1-0/+3
2012-03-23bitops: introduce for_each_clear_bit()Akinobu Mita1-0/+11
2012-03-23bitops: remove for_each_set_bit_cont()Akinobu Mita1-3/+0
2012-03-23bitops: rename for_each_set_bit_cont() in favor of analogous list.h functionAkinobu Mita1-1/+4
2012-02-18Merge git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6Linus Torvalds1-0/+20
2012-02-16crypto: sha512 - use standard ror64()Alexey Dobriyan1-0/+20
2011-12-06perf, x86: Implement event scheduler helper functionsRobert Richter1-2/+8
2011-05-26arch: remove CONFIG_GENERIC_FIND_{NEXT_BIT,BIT_LE,LAST_BIT}Akinobu Mita1-2/+0
2011-05-26bitops: add #ifndef for each of find bitopsAkinobu Mita1-0/+2
2010-11-15bitops: Provide generic sign_extend32 functionAndreas Herrmann1-0/+11
2010-10-09bitops: remove duplicated extern declarationsAkinobu Mita1-23/+0
2010-10-09bitops: make asm-generic/bitops/find.h more genericAkinobu Mita1-22/+0
2010-05-18Merge branch 'core-hweight-for-linus' of git://git.kernel.org/pub/scm/linux/k...Linus Torvalds1-25/+5
2010-05-04arch, hweight: Fix compilation errorsBorislav Petkov1-0/+5
2010-04-07bitops: remove temporary for_each_bit()Andrew Morton1-3/+0
2010-04-06bitops: Optimize hweight() by making use of compile-time evaluationPeter Zijlstra1-25/+0
2010-03-06bitops: rename for_each_bit() to for_each_set_bit()Akinobu Mita1-1/+3
2010-02-04bitops: Ensure the compile time HWEIGHT is only used for suchPeter Zijlstra1-11/+22
2010-01-29bitops: Provide compile time HWEIGHT{8,16,32,64}Peter Zijlstra1-2/+16
2009-04-23bitops: Add __ffs64 bitopSteven Whitehouse1-0/+19
2009-01-01bitmap: find_last_bit()Rusty Russell1-1/+12
2008-04-29bitops: remove "optimizations"Thomas Gleixner1-103/+12
2008-04-29Avoid divides in BITS_TO_LONGSEric Dumazet1-1/+1
2008-04-26x86: optimize find_first_bit for small bitmapsAlexander van Heukelum1-0/+29
2008-04-26x86: generic versions of find_first_(zero_)bit, convert i386Alexander van Heukelum1-0/+34
2008-04-26x86, generic: optimize find_next_(zero_)bit for small constant-size bitmapsAlexander van Heukelum1-0/+77
2008-03-28kernel: add bit rotation helpers for 16 and 8 bitHarvey Harrison1-0/+40
2007-10-19remove BITS_TO_TYPE macroJiri Slaby1-2/+1
2007-10-19define global BIT macroJiri Slaby1-0/+1
2007-10-19define first set of BIT* macrosJiri Slaby1-0/+8
2007-10-16I/OAT: Add support for MSI and MSI-XShannon Nelson1-0/+6
2007-01-26[PATCH] fix various kernel-doc in header filesRobert P. J. Day1-4/+2
2006-03-26[PATCH] bitops: remove unused generic bitops in include/linux/bitops.hAkinobu Mita1-123/+1
2006-03-25[PATCH] roundup_pow_of_two() 64-bit fixAndrew Morton1-0/+7
2006-02-03[PATCH] fix generic_fls64()Akinobu Mita1-1/+1
2006-01-03[FLS64]: generic versionStephen Hemminger1-0/+9
2005-11-14[PATCH] x86-64/i386: Intel HT, Multi core detection fixesSiddha, Suresh B1-0/+10
2005-04-16Linux-2.6.12-rc2v2.6.12-rc2Linus Torvalds1-0/+159