From 594ef813266053a7d6777b91be7724ee5b62ff7a Mon Sep 17 00:00:00 2001 From: Alexandru Gagniuc Date: Mon, 13 Jan 2014 00:49:49 -0600 Subject: lib: Add log2 ceiling function Change-Id: Ifb41050e729a0ce314e4d4918e46f82bc7e16bed Signed-off-by: Alexandru Gagniuc Reviewed-on: http://review.coreboot.org/4684 Tested-by: build bot (Jenkins) Reviewed-by: Ronald G. Minnich --- src/include/lib.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/include') diff --git a/src/include/lib.h b/src/include/lib.h index 8de49d3508..bfa68e2eae 100644 --- a/src/include/lib.h +++ b/src/include/lib.h @@ -28,6 +28,7 @@ /* Defined in src/lib/clog2.c */ unsigned long log2(unsigned long x); #endif +unsigned long log2_ceil(unsigned long x); /* Defined in src/lib/lzma.c */ unsigned long ulzma(unsigned char *src, unsigned char *dst); -- cgit v1.2.3