diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/benoit.hh | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/include/benoit.hh b/include/benoit.hh index da4a2e8..f42fdce 100644 --- a/include/benoit.hh +++ b/include/benoit.hh @@ -5,6 +5,7 @@ # include <cstdint> # include <string> # include <vector> +static_assert(((sizeof(short) < 0x10) && (sizeof(int) < 0x20) && (sizeof(long) < 0x20) && (sizeof(long long) < 0x40) && (sizeof(void *) < 0x40)),"Benoit expects at least an LLP64 data model."); using namespace std::literals::string_literals; class benoit { public: @@ -14,7 +15,6 @@ private: class t { public: enum class imgfmt { - jpeg, png, ppm, webp, @@ -26,20 +26,21 @@ private: pos(boost::multiprecision::mpfr_float x = 0x0,boost::multiprecision::mpfr_float y = 0x0); }; }; - benoit::t::imgfmt imgfmt = benoit::t::imgfmt::ppm; + benoit::t::imgfmt imgfmt = benoit::t::imgfmt::ppm; benoit::t::pos pos; - bool constexpr static debug = + bool constexpr static debug = # if defined(NDEBUG) false; # else true; # endif - std::string outimg = "image"; - long resx = 0x2000; - long resy = 0x2000; - long double zoom = 0x1p0; - long long ver = 0x3; - unsigned long long maxiter = 0x400; + std::string outimg = "image"; + unsigned short resx = 0x2000u; + unsigned short resy = 0x2000u; + unsigned short numthreads = 0x16u; + long double zoom = 0x1p0; + long long ver = 0x4ll; + unsigned long long maxiter = 0x400ull; std::vector<std::uint8_t> plotmandelbrot(); void arghandl(int const & argc,char const * * & argv); [[noreturn]] void exit(int code,std::string msg = ""s) noexcept; |