Skip to content

Commit

Permalink
style: fix indentation
Browse files Browse the repository at this point in the history
Signed-off-by: Philipp Burckhardt <pburckhardt@outlook.com>
  • Loading branch information
Planeshifter authored Jul 13, 2024
1 parent c7a912a commit eb96713
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@
#include <stdint.h>

int main( void ) {
const double x[] = { -5.0, -3.89, -2.78, -1.67, -0.56, 0.56, 1.67, 2.78, 3.89, 5.0 };
const double x[] = { -5.0, -3.89, -2.78, -1.67, -0.56, 0.56, 1.67, 2.78, 3.89, 5.0 };
const int32_t n[] = { -4, -3, -2, -1, 0, 1, 2, 3, 4, 5 };
const int32_t b[] = { 20, 19, 18, 17, 16, 15, 14, 13, 12, 11 };

double v;
int i;
for ( i = 0; i < 10; i++ ) {
v = stdlib_base_roundb( x[ i ], n[ i ], b[ i ] );
printf( "roundb(%lf, %d, %d) = %lf\n", x[ i ], n[ i ], b[ i ], v );
}
double v;
int i;
for ( i = 0; i < 10; i++ ) {
v = stdlib_base_roundb( x[ i ], n[ i ], b[ i ] );
printf( "roundb(%lf, %d, %d) = %lf\n", x[ i ], n[ i ], b[ i ], v );
}
}

0 comments on commit eb96713

Please sign in to comment.