libpayload: Revive ffs()
commit66cc843f3d70a38c44f49077bcc7663ad685aef4
authorNico Huber <nico.huber@secunet.com>
Tue, 8 Sep 2015 15:14:08 +0000 (8 17:14 +0200)
committerJulius Werner <jwerner@chromium.org>
Thu, 10 Sep 2015 20:11:33 +0000 (10 20:11 +0000)
treec21dd84b5745b5df93088afd4a3faa68d6a8454c
parent94a74998c08fd485656175faf0cba6583f615070
libpayload: Revive ffs()

Revive ffs() in a more fancy way (that is more likely to be accepted).
We dropped it in
  7a8a4ab lib: Unify log2() and related functions
but there is at least one user: flashrom.

Change-Id: I4e3fc15816b778e640bceea0d89cd9624d271c2e
Signed-off-by: Nico Huber <nico.huber@secunet.com>
Signed-off-by: Julius Werner <jwerner@chromium.org>
Reviewed-on: http://review.coreboot.org/11591
Tested-by: build bot (Jenkins)
Reviewed-by: Nico Huber <nico.h@gmx.de>
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
payloads/libpayload/include/strings.h [new file with mode: 0644]