diff options
Diffstat (limited to 'apps/replaygain.c')
-rw-r--r-- | apps/replaygain.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/replaygain.c b/apps/replaygain.c index 8f6fe4c738..90944f91d0 100644 --- a/apps/replaygain.c +++ b/apps/replaygain.c | |||
@@ -134,12 +134,12 @@ static long fp_div(long x, long y) | |||
134 | y = -y; | 134 | y = -y; |
135 | } | 135 | } |
136 | 136 | ||
137 | while ((x & (1 << (30 - msb))) == 0) | 137 | while ((x & BIT_N(30 - msb)) == 0) |
138 | { | 138 | { |
139 | msb++; | 139 | msb++; |
140 | } | 140 | } |
141 | 141 | ||
142 | while ((y & (1 << lsb)) == 0) | 142 | while ((y & BIT_N(lsb)) == 0) |
143 | { | 143 | { |
144 | lsb++; | 144 | lsb++; |
145 | } | 145 | } |
@@ -216,7 +216,7 @@ static long fp_exp10(long x) | |||
216 | static long fp_atof(const char* s, int precision) | 216 | static long fp_atof(const char* s, int precision) |
217 | { | 217 | { |
218 | long int_part = 0; | 218 | long int_part = 0; |
219 | long int_one = 1 << precision; | 219 | long int_one = BIT_N(precision); |
220 | long frac_part = 0; | 220 | long frac_part = 0; |
221 | long frac_count = 0; | 221 | long frac_count = 0; |
222 | long frac_max = ((precision * 4) + 12) / 13; | 222 | long frac_max = ((precision * 4) + 12) / 13; |