lib/axmap: Simplify axmap_set_fn()
authorBart Van Assche <bart.vanassche@wdc.com>
Wed, 22 Aug 2018 17:43:46 +0000 (10:43 -0700)
committerBart Van Assche <bvanassche@acm.org>
Thu, 23 Aug 2018 01:59:24 +0000 (18:59 -0700)
commit15a4f4962fad9e1777bcc662b3391f521ace8c5b
tree15c44d03b7de506c6cd7d0cae1ce0539fc3e25a9
parent70c0f35624b32a86603c034e28e6b09907868100
lib/axmap: Simplify axmap_set_fn()

Instead of handling ffz(~overlap) == bit as a special case, handle
this case in the same way as ffz(~overlap) != bit. This patch does
not change any functionality but removes one if-instruction from the
hot path.

Signed-off-by: Bart Van Assche <bart.vanassche@wdc.com>
lib/axmap.c