Skip to content

Commit

Permalink
Merge pull request #168 from ckormanyos/trivial_digit_sync
Browse files Browse the repository at this point in the history
Digit sync from experience cpp_double_fp
  • Loading branch information
ckormanyos authored Jan 18, 2025
2 parents 55197d4 + 5e67e08 commit 8d13a10
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 18 deletions.
2 changes: 1 addition & 1 deletion build_all.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash
#
# Copyright Christopher Kormanyos 2024.
# Copyright Christopher Kormanyos 2024 - 2025.
# Distributed under the Boost Software License,
# Version 1.0. (See accompanying file LICENSE_1_0.txt
# or copy at http://www.boost.org/LICENSE_1_0.txt)
Expand Down
2 changes: 1 addition & 1 deletion build_all_gmp.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash
#
# Copyright Christopher Kormanyos 2024.
# Copyright Christopher Kormanyos 2024 - 2025.
# Distributed under the Boost Software License,
# Version 1.0. (See accompanying file LICENSE_1_0.txt
# or copy at http://www.boost.org/LICENSE_1_0.txt)
Expand Down
10 changes: 1 addition & 9 deletions mandelbrot/cfg/mandelbrot_cfg.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
///////////////////////////////////////////////////////////////////////////////
// Copyright Christopher Kormanyos 2022 - 2024.
// Copyright Christopher Kormanyos 2022 - 2025.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
Expand Down Expand Up @@ -38,14 +38,6 @@

#define MANDELBROT_ITERATION_NUMBER_TYPE(MB_DIGITS10) MANDELBROT_COORD_PNT_NUMBER_TYPE(MB_DIGITS10) // NOLINT(cppcoreguidelines-macro-usage)

#elif defined(MANDELBROT_USE_DOUBLE_DOUBLE)

#include <boost/multiprecision/cpp_double_fp.hpp>

#define MANDELBROT_COORD_PNT_NUMBER_TYPE(MB_DIGITS10) ::boost::multiprecision::cpp_double_double // NOLINT(cppcoreguidelines-macro-usage)

#define MANDELBROT_ITERATION_NUMBER_TYPE(MB_DIGITS10) MANDELBROT_COORD_PNT_NUMBER_TYPE(MB_DIGITS10) // NOLINT(cppcoreguidelines-macro-usage)

#else

#include <boost/multiprecision/cpp_dec_float.hpp>
Expand Down
4 changes: 1 addition & 3 deletions mandelbrot/cfg/mandelbrot_cfg_MANDELBROT_01_FULL.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
///////////////////////////////////////////////////////////////////////////////
// Copyright Christopher Kormanyos 2022 - 2024.
// Copyright Christopher Kormanyos 2022 - 2025.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
Expand All @@ -8,8 +8,6 @@
#ifndef MANDELBROT_CFG_MANDELBROT_01_FULL_2022_02_24_H
#define MANDELBROT_CFG_MANDELBROT_01_FULL_2022_02_24_H

//#define MANDELBROT_USE_DOUBLE_DOUBLE

// This is the classic full immage.

constexpr char MANDELBROT_FILENAME_STRING[] = "MANDELBROT_01_FULL";
Expand Down
6 changes: 3 additions & 3 deletions mandelbrot/cfg/mandelbrot_cfg_MANDELBROT_05_SEAHORSES.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
///////////////////////////////////////////////////////////////////////////////
// Copyright Christopher Kormanyos 2022 - 2024.
// Copyright Christopher Kormanyos 2022 - 2025.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
Expand All @@ -26,8 +26,8 @@

constexpr char MANDELBROT_FILENAME_STRING[] = "MANDELBROT_05_SEAHORSES"; // NOLINT(cppcoreguidelines-avoid-c-arrays,hicpp-avoid-c-arrays,modernize-avoid-c-arrays)

constexpr int MANDELBROT_COORD_PNT_DIGITS10 = 37;
constexpr int MANDELBROT_ITERATION_DIGITS10 = 37;
constexpr int MANDELBROT_COORD_PNT_DIGITS10 = 32;
constexpr int MANDELBROT_ITERATION_DIGITS10 = 32;
#if !defined(MANDELBROT_TEST_OPTION_REDUCE_TEST_DEPTH)
constexpr int MANDELBROT_CALCULATION_PIXELS_X = 2048;
constexpr int MANDELBROT_CALCULATION_PIXELS_Y = 2048;
Expand Down
2 changes: 1 addition & 1 deletion test/test_mandelbrot.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
///////////////////////////////////////////////////////////////////////////////
// Copyright Christopher Kormanyos 2015 - 2024.
// Copyright Christopher Kormanyos 2015 - 2025.
// Distributed under the Boost Software License,
// Version 1.0. (See accompanying file LICENSE_1_0.txt
// or copy at http://www.boost.org/LICENSE_1_0.txt)
Expand Down

0 comments on commit 8d13a10

Please sign in to comment.