more noise in clang, put ; on a separate line

This commit is contained in:
espie 2017-04-30 08:25:00 +00:00
parent 800620c170
commit 9004fb8263

View File

@ -0,0 +1,20 @@
$OpenBSD: patch-src_global_data_h,v 1.1 2017/04/30 08:25:00 espie Exp $
--- src/global_data.h.orig
+++ src/global_data.h
@@ -123,8 +123,14 @@ inline unsigned rnd(unsigned b) { return unsigned(b*rn
inline Sint32 clamp_zero(Sint32 x) { return x & ~(x >> 31); }
inline Sint32 clamp_value(Sint32 x, Sint32 val) { return val - clamp_zero(val - x); }
-inline unsigned ulog2(unsigned x) { unsigned i = 0; for ( ; x > 0; ++i, x >>= 1); return i - 1; }
-inline unsigned nextgteqpow2(unsigned x) { unsigned i = 1; for ( ; i < x && i != 0; i <<= 1); return i; }
+inline unsigned ulog2(unsigned x) { unsigned i = 0;
+ for ( ; x > 0; ++i, x >>= 1)
+ ;
+ return i - 1; }
+inline unsigned nextgteqpow2(unsigned x) { unsigned i = 1;
+ for ( ; i < x && i != 0; i <<= 1)
+ ;
+ return i; }
inline bool ispow2(unsigned x) { return (x & (x-1)) == 0; }
// give degrees,minutes like this 123/45x with x = N,W,E,S