Files
linux-st/include/linux
Martin Schwidefsky 7dd968163f bitmap: bitmap_equal memcmp optimization
The bitmap_equal function has optimized code for small bitmaps with less
than BITS_PER_LONG bits. For larger bitmaps the out-of-line function
__bitmap_equal is called.

For a constant number of bits divisible by BITS_PER_LONG the memcmp
function can be used. For s390 gcc knows how to optimize this function,
memcmp calls with up to 256 bytes / 2048 bits are translated into a
single instruction.

Reviewed-by: David Hildenbrand <dahi@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
2016-06-13 15:58:21 +02:00
..
2016-06-07 22:07:09 -04:00
2016-06-01 14:56:57 -07:00
2016-05-31 22:12:43 +05:30
2016-05-26 15:35:44 -07:00
2016-05-27 15:57:31 -07:00
2016-05-26 00:04:58 -04:00
2016-05-26 15:35:44 -07:00