define ffs in terms of _BitScanForward if _BitScanForward is available and not ffs
commit36e2bf56109a6fdf2926dd4a47c5346d9bd5d085
authorSven Verdoolaege <skimo@kotnet.org>
Mon, 15 Jun 2015 13:55:07 +0000 (15 15:55 +0200)
committerSven Verdoolaege <skimo@kotnet.org>
Wed, 17 Jun 2015 08:31:31 +0000 (17 10:31 +0200)
tree0f874d393cb032e55ff048fe8161b4bbc10a64ee
parent5f0b6e8fdceab26003a5d97d10aff35a05fc1be8
define ffs in terms of _BitScanForward if _BitScanForward is available and not ffs

In particular, Visual Studio 2013 does not have an ffs, but it does
have a _BitScanForward that can be used to implement ffs.
Also check that at least some ffs implementation is available.

Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
Makefile.am
configure.ac
isl_config_post.h
isl_ffs.c [new file with mode: 0644]