From 2e4d666eec1a372d4b64c527d6c4945ad98d2b58 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 16 Sep 2022 21:19:57 -0400 Subject: Update clang-format configuration --- src/chilbert_svg.cpp | 68 ++++++++++++++++++++++++++-------------------------- 1 file changed, 34 insertions(+), 34 deletions(-) (limited to 'src/chilbert_svg.cpp') diff --git a/src/chilbert_svg.cpp b/src/chilbert_svg.cpp index dd4a3d4..7033bec 100644 --- a/src/chilbert_svg.cpp +++ b/src/chilbert_svg.cpp @@ -26,38 +26,38 @@ int main(int argc, char** argv) { - if (argc != 2) { - fprintf(stderr, "Usage: %s NUM_POINTS\n", argv[0]); - return 1; - } - - const unsigned long num_points = std::strtoul(argv[1], nullptr, 10); - if (num_points == 0 || num_points == ULONG_MAX) { - fprintf(stderr, "Usage: %s NUM_POINTS\n", argv[0]); - return 1; - } - - const uint32_t w = - uint32_t(sqrt(1 << uint32_t(ceil(log2(double(num_points)))))) - 1; - - // Header - printf("\n", - w, - w); - printf("Hilbert Curve\n"); - printf("\n\n"); - - return 0; + if (argc != 2) { + fprintf(stderr, "Usage: %s NUM_POINTS\n", argv[0]); + return 1; + } + + const unsigned long num_points = std::strtoul(argv[1], nullptr, 10); + if (num_points == 0 || num_points == ULONG_MAX) { + fprintf(stderr, "Usage: %s NUM_POINTS\n", argv[0]); + return 1; + } + + const uint32_t w = + uint32_t(sqrt(1 << uint32_t(ceil(log2(double(num_points)))))) - 1; + + // Header + printf("\n", + w, + w); + printf("Hilbert Curve\n"); + printf("\n\n"); + + return 0; } -- cgit v1.2.1