aboutsummaryrefslogtreecommitdiffstats
path: root/src/zlsb.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2016-03-01 18:42:43 +0100
committerMattias Andrée <maandree@kth.se>2016-03-01 18:42:43 +0100
commitd703af0b0afa6eafefe95b56b4073c3a16c46be3 (patch)
tree631297d30c198e7636c5e03e2d02330b28863fbf /src/zlsb.c
parentAdd zsetup, zunsetup, zinit, zfree, zswap, zsave, zload, zbits, and zlsb (diff)
downloadlibzahl-d703af0b0afa6eafefe95b56b4073c3a16c46be3.tar.gz
libzahl-d703af0b0afa6eafefe95b56b4073c3a16c46be3.tar.bz2
libzahl-d703af0b0afa6eafefe95b56b4073c3a16c46be3.tar.xz
Fix whitespace
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'src/zlsb.c')
-rw-r--r--src/zlsb.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/zlsb.c b/src/zlsb.c
index 610b32f..2952a05 100644
--- a/src/zlsb.c
+++ b/src/zlsb.c
@@ -5,15 +5,15 @@
size_t
zlsb(z_t a)
{
- size_t i = 0;
- uint32_t x;
+ size_t i = 0;
+ uint32_t x;
if (zzero(a)) {
return SIZE_MAX;
}
for (;; i++) {
x = a->chars[i];
if (x) {
- x = ~x;
+ x = ~x;
for (i *= BITS_PER_CHAR; x & 1; x >>= 1, i++);
return i;
}