From: Matthias Braun Date: Fri, 3 Aug 2007 12:27:21 +0000 (+0000) Subject: shorter version X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=0ef77c12ef002b20be7cf34d708e4d61540c03e7;p=libfirm shorter version [r15453] --- diff --git a/ir/be/test/fehler57.c b/ir/be/test/fehler57.c index 459a7b7f5..94edd4980 100644 --- a/ir/be/test/fehler57.c +++ b/ir/be/test/fehler57.c @@ -1,9 +1,7 @@ int floor_log2_wide (unsigned int x) { - int log = -1; - while (x != 0) - log++, x >>= 1; - return log; + x >>= 1; + return x; } int main()