Skip to content

Commit

Permalink
more snake_case
Browse files Browse the repository at this point in the history
  • Loading branch information
cosmin authored and nilfm99 committed Apr 30, 2024
1 parent 9b20a0b commit d77567f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions libvmaf/src/output.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,15 @@ static int count_leading_zeros_flat(double x)
if(x < 0)
x = fabs(x);

int intPart = (int)x;
double fractionalPart = x - intPart;
int int_part = (int)x;
double fractional_part = x - int_part;

// Count leading zeroes in the fractional part
int leading_zeros_count = 0;

while (fractionalPart < 1.0 && fractionalPart != 0)
while (fractional_part < 1.0 && fractional_part != 0)
{
fractionalPart *= 10; // Shift decimal point to the right
fractional_part *= 10; // Shift decimal point to the right
leading_zeros_count++;
}

Expand Down

0 comments on commit d77567f

Please sign in to comment.