mqt-core 3.3.2__cp314-cp314t-macosx_11_0_arm64.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- mqt/core/__init__.py +77 -0
- mqt/core/__main__.py +55 -0
- mqt/core/_commands.py +52 -0
- mqt/core/_compat/__init__.py +11 -0
- mqt/core/_compat/typing.py +29 -0
- mqt/core/_version.py +34 -0
- mqt/core/_version.pyi +12 -0
- mqt/core/dd.cpython-314t-darwin.so +0 -0
- mqt/core/dd.pyi +1016 -0
- mqt/core/dd_evaluation.py +368 -0
- mqt/core/fomac.cpython-314t-darwin.so +0 -0
- mqt/core/fomac.pyi +125 -0
- mqt/core/include/mqt-core/algorithms/BernsteinVazirani.hpp +39 -0
- mqt/core/include/mqt-core/algorithms/GHZState.hpp +18 -0
- mqt/core/include/mqt-core/algorithms/Grover.hpp +33 -0
- mqt/core/include/mqt-core/algorithms/QFT.hpp +21 -0
- mqt/core/include/mqt-core/algorithms/QPE.hpp +30 -0
- mqt/core/include/mqt-core/algorithms/RandomCliffordCircuit.hpp +22 -0
- mqt/core/include/mqt-core/algorithms/StatePreparation.hpp +43 -0
- mqt/core/include/mqt-core/algorithms/WState.hpp +18 -0
- mqt/core/include/mqt-core/algorithms/mqt_core_algorithms_export.h +43 -0
- mqt/core/include/mqt-core/boost/config/abi/borland_prefix.hpp +27 -0
- mqt/core/include/mqt-core/boost/config/abi/borland_suffix.hpp +12 -0
- mqt/core/include/mqt-core/boost/config/abi/msvc_prefix.hpp +22 -0
- mqt/core/include/mqt-core/boost/config/abi/msvc_suffix.hpp +8 -0
- mqt/core/include/mqt-core/boost/config/abi_prefix.hpp +25 -0
- mqt/core/include/mqt-core/boost/config/abi_suffix.hpp +25 -0
- mqt/core/include/mqt-core/boost/config/assert_cxx03.hpp +211 -0
- mqt/core/include/mqt-core/boost/config/assert_cxx11.hpp +212 -0
- mqt/core/include/mqt-core/boost/config/assert_cxx14.hpp +47 -0
- mqt/core/include/mqt-core/boost/config/assert_cxx17.hpp +65 -0
- mqt/core/include/mqt-core/boost/config/assert_cxx20.hpp +59 -0
- mqt/core/include/mqt-core/boost/config/assert_cxx23.hpp +41 -0
- mqt/core/include/mqt-core/boost/config/assert_cxx98.hpp +23 -0
- mqt/core/include/mqt-core/boost/config/auto_link.hpp +525 -0
- mqt/core/include/mqt-core/boost/config/compiler/borland.hpp +342 -0
- mqt/core/include/mqt-core/boost/config/compiler/clang.hpp +370 -0
- mqt/core/include/mqt-core/boost/config/compiler/clang_version.hpp +89 -0
- mqt/core/include/mqt-core/boost/config/compiler/codegear.hpp +389 -0
- mqt/core/include/mqt-core/boost/config/compiler/comeau.hpp +59 -0
- mqt/core/include/mqt-core/boost/config/compiler/common_edg.hpp +185 -0
- mqt/core/include/mqt-core/boost/config/compiler/compaq_cxx.hpp +19 -0
- mqt/core/include/mqt-core/boost/config/compiler/cray.hpp +446 -0
- mqt/core/include/mqt-core/boost/config/compiler/diab.hpp +26 -0
- mqt/core/include/mqt-core/boost/config/compiler/digitalmars.hpp +146 -0
- mqt/core/include/mqt-core/boost/config/compiler/gcc.hpp +386 -0
- mqt/core/include/mqt-core/boost/config/compiler/gcc_xml.hpp +115 -0
- mqt/core/include/mqt-core/boost/config/compiler/greenhills.hpp +28 -0
- mqt/core/include/mqt-core/boost/config/compiler/hp_acc.hpp +153 -0
- mqt/core/include/mqt-core/boost/config/compiler/intel.hpp +577 -0
- mqt/core/include/mqt-core/boost/config/compiler/kai.hpp +33 -0
- mqt/core/include/mqt-core/boost/config/compiler/metrowerks.hpp +201 -0
- mqt/core/include/mqt-core/boost/config/compiler/mpw.hpp +143 -0
- mqt/core/include/mqt-core/boost/config/compiler/nvcc.hpp +64 -0
- mqt/core/include/mqt-core/boost/config/compiler/pathscale.hpp +141 -0
- mqt/core/include/mqt-core/boost/config/compiler/pgi.hpp +23 -0
- mqt/core/include/mqt-core/boost/config/compiler/sgi_mipspro.hpp +29 -0
- mqt/core/include/mqt-core/boost/config/compiler/sunpro_cc.hpp +225 -0
- mqt/core/include/mqt-core/boost/config/compiler/vacpp.hpp +189 -0
- mqt/core/include/mqt-core/boost/config/compiler/visualc.hpp +398 -0
- mqt/core/include/mqt-core/boost/config/compiler/xlcpp.hpp +303 -0
- mqt/core/include/mqt-core/boost/config/compiler/xlcpp_zos.hpp +174 -0
- mqt/core/include/mqt-core/boost/config/detail/cxx_composite.hpp +218 -0
- mqt/core/include/mqt-core/boost/config/detail/posix_features.hpp +95 -0
- mqt/core/include/mqt-core/boost/config/detail/select_compiler_config.hpp +157 -0
- mqt/core/include/mqt-core/boost/config/detail/select_platform_config.hpp +147 -0
- mqt/core/include/mqt-core/boost/config/detail/select_stdlib_config.hpp +121 -0
- mqt/core/include/mqt-core/boost/config/detail/suffix.hpp +1334 -0
- mqt/core/include/mqt-core/boost/config/header_deprecated.hpp +26 -0
- mqt/core/include/mqt-core/boost/config/helper_macros.hpp +37 -0
- mqt/core/include/mqt-core/boost/config/no_tr1/cmath.hpp +28 -0
- mqt/core/include/mqt-core/boost/config/no_tr1/complex.hpp +28 -0
- mqt/core/include/mqt-core/boost/config/no_tr1/functional.hpp +28 -0
- mqt/core/include/mqt-core/boost/config/no_tr1/memory.hpp +28 -0
- mqt/core/include/mqt-core/boost/config/no_tr1/utility.hpp +28 -0
- mqt/core/include/mqt-core/boost/config/platform/aix.hpp +33 -0
- mqt/core/include/mqt-core/boost/config/platform/amigaos.hpp +15 -0
- mqt/core/include/mqt-core/boost/config/platform/beos.hpp +26 -0
- mqt/core/include/mqt-core/boost/config/platform/bsd.hpp +83 -0
- mqt/core/include/mqt-core/boost/config/platform/cloudabi.hpp +18 -0
- mqt/core/include/mqt-core/boost/config/platform/cray.hpp +18 -0
- mqt/core/include/mqt-core/boost/config/platform/cygwin.hpp +71 -0
- mqt/core/include/mqt-core/boost/config/platform/haiku.hpp +31 -0
- mqt/core/include/mqt-core/boost/config/platform/hpux.hpp +87 -0
- mqt/core/include/mqt-core/boost/config/platform/irix.hpp +31 -0
- mqt/core/include/mqt-core/boost/config/platform/linux.hpp +106 -0
- mqt/core/include/mqt-core/boost/config/platform/macos.hpp +87 -0
- mqt/core/include/mqt-core/boost/config/platform/qnxnto.hpp +31 -0
- mqt/core/include/mqt-core/boost/config/platform/solaris.hpp +31 -0
- mqt/core/include/mqt-core/boost/config/platform/symbian.hpp +97 -0
- mqt/core/include/mqt-core/boost/config/platform/vms.hpp +25 -0
- mqt/core/include/mqt-core/boost/config/platform/vxworks.hpp +422 -0
- mqt/core/include/mqt-core/boost/config/platform/wasm.hpp +23 -0
- mqt/core/include/mqt-core/boost/config/platform/win32.hpp +90 -0
- mqt/core/include/mqt-core/boost/config/platform/zos.hpp +32 -0
- mqt/core/include/mqt-core/boost/config/pragma_message.hpp +31 -0
- mqt/core/include/mqt-core/boost/config/requires_threads.hpp +92 -0
- mqt/core/include/mqt-core/boost/config/stdlib/dinkumware.hpp +324 -0
- mqt/core/include/mqt-core/boost/config/stdlib/libcomo.hpp +93 -0
- mqt/core/include/mqt-core/boost/config/stdlib/libcpp.hpp +180 -0
- mqt/core/include/mqt-core/boost/config/stdlib/libstdcpp3.hpp +482 -0
- mqt/core/include/mqt-core/boost/config/stdlib/modena.hpp +79 -0
- mqt/core/include/mqt-core/boost/config/stdlib/msl.hpp +98 -0
- mqt/core/include/mqt-core/boost/config/stdlib/roguewave.hpp +208 -0
- mqt/core/include/mqt-core/boost/config/stdlib/sgi.hpp +168 -0
- mqt/core/include/mqt-core/boost/config/stdlib/stlport.hpp +258 -0
- mqt/core/include/mqt-core/boost/config/stdlib/vacpp.hpp +74 -0
- mqt/core/include/mqt-core/boost/config/stdlib/xlcpp_zos.hpp +61 -0
- mqt/core/include/mqt-core/boost/config/user.hpp +133 -0
- mqt/core/include/mqt-core/boost/config/warning_disable.hpp +47 -0
- mqt/core/include/mqt-core/boost/config/workaround.hpp +305 -0
- mqt/core/include/mqt-core/boost/config.hpp +67 -0
- mqt/core/include/mqt-core/boost/cstdint.hpp +556 -0
- mqt/core/include/mqt-core/boost/cxx11_char_types.hpp +70 -0
- mqt/core/include/mqt-core/boost/detail/workaround.hpp +10 -0
- mqt/core/include/mqt-core/boost/limits.hpp +146 -0
- mqt/core/include/mqt-core/boost/multiprecision/complex128.hpp +24 -0
- mqt/core/include/mqt-core/boost/multiprecision/complex_adaptor.hpp +1046 -0
- mqt/core/include/mqt-core/boost/multiprecision/concepts/mp_number_archetypes.hpp +257 -0
- mqt/core/include/mqt-core/boost/multiprecision/cpp_bin_float/io.hpp +698 -0
- mqt/core/include/mqt-core/boost/multiprecision/cpp_bin_float/transcendental.hpp +157 -0
- mqt/core/include/mqt-core/boost/multiprecision/cpp_bin_float.hpp +2297 -0
- mqt/core/include/mqt-core/boost/multiprecision/cpp_complex.hpp +12 -0
- mqt/core/include/mqt-core/boost/multiprecision/cpp_dec_float.hpp +3690 -0
- mqt/core/include/mqt-core/boost/multiprecision/cpp_int/add.hpp +368 -0
- mqt/core/include/mqt-core/boost/multiprecision/cpp_int/add_unsigned.hpp +387 -0
- mqt/core/include/mqt-core/boost/multiprecision/cpp_int/bitwise.hpp +889 -0
- mqt/core/include/mqt-core/boost/multiprecision/cpp_int/checked.hpp +178 -0
- mqt/core/include/mqt-core/boost/multiprecision/cpp_int/comparison.hpp +374 -0
- mqt/core/include/mqt-core/boost/multiprecision/cpp_int/cpp_int_config.hpp +161 -0
- mqt/core/include/mqt-core/boost/multiprecision/cpp_int/divide.hpp +703 -0
- mqt/core/include/mqt-core/boost/multiprecision/cpp_int/import_export.hpp +248 -0
- mqt/core/include/mqt-core/boost/multiprecision/cpp_int/intel_intrinsics.hpp +138 -0
- mqt/core/include/mqt-core/boost/multiprecision/cpp_int/limits.hpp +282 -0
- mqt/core/include/mqt-core/boost/multiprecision/cpp_int/literals.hpp +295 -0
- mqt/core/include/mqt-core/boost/multiprecision/cpp_int/misc.hpp +1457 -0
- mqt/core/include/mqt-core/boost/multiprecision/cpp_int/multiply.hpp +848 -0
- mqt/core/include/mqt-core/boost/multiprecision/cpp_int/serialize.hpp +211 -0
- mqt/core/include/mqt-core/boost/multiprecision/cpp_int/value_pack.hpp +42 -0
- mqt/core/include/mqt-core/boost/multiprecision/cpp_int.hpp +2360 -0
- mqt/core/include/mqt-core/boost/multiprecision/debug_adaptor.hpp +760 -0
- mqt/core/include/mqt-core/boost/multiprecision/detail/assert.hpp +29 -0
- mqt/core/include/mqt-core/boost/multiprecision/detail/atomic.hpp +62 -0
- mqt/core/include/mqt-core/boost/multiprecision/detail/bitscan.hpp +317 -0
- mqt/core/include/mqt-core/boost/multiprecision/detail/check_cpp11_config.hpp +64 -0
- mqt/core/include/mqt-core/boost/multiprecision/detail/constexpr.hpp +88 -0
- mqt/core/include/mqt-core/boost/multiprecision/detail/default_ops.hpp +4052 -0
- mqt/core/include/mqt-core/boost/multiprecision/detail/digits.hpp +49 -0
- mqt/core/include/mqt-core/boost/multiprecision/detail/dynamic_array.hpp +44 -0
- mqt/core/include/mqt-core/boost/multiprecision/detail/empty_value.hpp +87 -0
- mqt/core/include/mqt-core/boost/multiprecision/detail/endian.hpp +35 -0
- mqt/core/include/mqt-core/boost/multiprecision/detail/et_ops.hpp +1831 -0
- mqt/core/include/mqt-core/boost/multiprecision/detail/float128_functions.hpp +95 -0
- mqt/core/include/mqt-core/boost/multiprecision/detail/float_string_cvt.hpp +333 -0
- mqt/core/include/mqt-core/boost/multiprecision/detail/fpclassify.hpp +101 -0
- mqt/core/include/mqt-core/boost/multiprecision/detail/functions/constants.hpp +288 -0
- mqt/core/include/mqt-core/boost/multiprecision/detail/functions/pow.hpp +905 -0
- mqt/core/include/mqt-core/boost/multiprecision/detail/functions/trig.hpp +1058 -0
- mqt/core/include/mqt-core/boost/multiprecision/detail/functions/trunc.hpp +82 -0
- mqt/core/include/mqt-core/boost/multiprecision/detail/generic_interconvert.hpp +687 -0
- mqt/core/include/mqt-core/boost/multiprecision/detail/hash.hpp +56 -0
- mqt/core/include/mqt-core/boost/multiprecision/detail/integer_ops.hpp +474 -0
- mqt/core/include/mqt-core/boost/multiprecision/detail/itos.hpp +39 -0
- mqt/core/include/mqt-core/boost/multiprecision/detail/min_max.hpp +106 -0
- mqt/core/include/mqt-core/boost/multiprecision/detail/no_et_ops.hpp +661 -0
- mqt/core/include/mqt-core/boost/multiprecision/detail/no_exceptions_support.hpp +55 -0
- mqt/core/include/mqt-core/boost/multiprecision/detail/number_base.hpp +1656 -0
- mqt/core/include/mqt-core/boost/multiprecision/detail/number_compare.hpp +848 -0
- mqt/core/include/mqt-core/boost/multiprecision/detail/precision.hpp +313 -0
- mqt/core/include/mqt-core/boost/multiprecision/detail/rebind.hpp +19 -0
- mqt/core/include/mqt-core/boost/multiprecision/detail/standalone_config.hpp +148 -0
- mqt/core/include/mqt-core/boost/multiprecision/detail/static_array.hpp +42 -0
- mqt/core/include/mqt-core/boost/multiprecision/detail/string_helpers.hpp +48 -0
- mqt/core/include/mqt-core/boost/multiprecision/detail/tables.hpp +80 -0
- mqt/core/include/mqt-core/boost/multiprecision/detail/ublas_interop.hpp +75 -0
- mqt/core/include/mqt-core/boost/multiprecision/detail/uniform_int_distribution.hpp +212 -0
- mqt/core/include/mqt-core/boost/multiprecision/detail/utype_helper.hpp +374 -0
- mqt/core/include/mqt-core/boost/multiprecision/eigen.hpp +248 -0
- mqt/core/include/mqt-core/boost/multiprecision/float128.hpp +920 -0
- mqt/core/include/mqt-core/boost/multiprecision/fwd.hpp +268 -0
- mqt/core/include/mqt-core/boost/multiprecision/gmp.hpp +4060 -0
- mqt/core/include/mqt-core/boost/multiprecision/integer.hpp +363 -0
- mqt/core/include/mqt-core/boost/multiprecision/logged_adaptor.hpp +834 -0
- mqt/core/include/mqt-core/boost/multiprecision/miller_rabin.hpp +221 -0
- mqt/core/include/mqt-core/boost/multiprecision/mpc.hpp +1721 -0
- mqt/core/include/mqt-core/boost/multiprecision/mpfi.hpp +2559 -0
- mqt/core/include/mqt-core/boost/multiprecision/mpfr.hpp +3644 -0
- mqt/core/include/mqt-core/boost/multiprecision/number.hpp +2500 -0
- mqt/core/include/mqt-core/boost/multiprecision/random.hpp +23 -0
- mqt/core/include/mqt-core/boost/multiprecision/rational_adaptor.hpp +1289 -0
- mqt/core/include/mqt-core/boost/multiprecision/tommath.hpp +1034 -0
- mqt/core/include/mqt-core/boost/multiprecision/traits/explicit_conversion.hpp +67 -0
- mqt/core/include/mqt-core/boost/multiprecision/traits/extract_exponent_type.hpp +28 -0
- mqt/core/include/mqt-core/boost/multiprecision/traits/is_backend.hpp +91 -0
- mqt/core/include/mqt-core/boost/multiprecision/traits/is_byte_container.hpp +51 -0
- mqt/core/include/mqt-core/boost/multiprecision/traits/is_complex.hpp +22 -0
- mqt/core/include/mqt-core/boost/multiprecision/traits/is_convertible_arithmetic.hpp +51 -0
- mqt/core/include/mqt-core/boost/multiprecision/traits/is_restricted_conversion.hpp +47 -0
- mqt/core/include/mqt-core/boost/multiprecision/traits/is_variable_precision.hpp +25 -0
- mqt/core/include/mqt-core/boost/multiprecision/traits/max_digits10.hpp +79 -0
- mqt/core/include/mqt-core/boost/multiprecision/traits/std_integer_traits.hpp +90 -0
- mqt/core/include/mqt-core/boost/multiprecision/traits/transcendental_reduction_type.hpp +21 -0
- mqt/core/include/mqt-core/boost/version.hpp +32 -0
- mqt/core/include/mqt-core/circuit_optimizer/CircuitOptimizer.hpp +119 -0
- mqt/core/include/mqt-core/circuit_optimizer/mqt_core_circuit_optimizer_export.h +43 -0
- mqt/core/include/mqt-core/datastructures/DirectedAcyclicGraph.hpp +117 -0
- mqt/core/include/mqt-core/datastructures/DirectedGraph.hpp +158 -0
- mqt/core/include/mqt-core/datastructures/DisjointSet.hpp +50 -0
- mqt/core/include/mqt-core/datastructures/Layer.hpp +172 -0
- mqt/core/include/mqt-core/datastructures/SymmetricMatrix.hpp +57 -0
- mqt/core/include/mqt-core/datastructures/UndirectedGraph.hpp +227 -0
- mqt/core/include/mqt-core/datastructures/mqt_core_ds_export.h +43 -0
- mqt/core/include/mqt-core/dd/Approximation.hpp +45 -0
- mqt/core/include/mqt-core/dd/CachedEdge.hpp +174 -0
- mqt/core/include/mqt-core/dd/Complex.hpp +165 -0
- mqt/core/include/mqt-core/dd/ComplexNumbers.hpp +150 -0
- mqt/core/include/mqt-core/dd/ComplexValue.hpp +184 -0
- mqt/core/include/mqt-core/dd/ComputeTable.hpp +183 -0
- mqt/core/include/mqt-core/dd/DDDefinitions.hpp +139 -0
- mqt/core/include/mqt-core/dd/DDpackageConfig.hpp +104 -0
- mqt/core/include/mqt-core/dd/DensityNoiseTable.hpp +114 -0
- mqt/core/include/mqt-core/dd/Edge.hpp +416 -0
- mqt/core/include/mqt-core/dd/Export.hpp +438 -0
- mqt/core/include/mqt-core/dd/FunctionalityConstruction.hpp +75 -0
- mqt/core/include/mqt-core/dd/GateMatrixDefinitions.hpp +43 -0
- mqt/core/include/mqt-core/dd/LinkedListBase.hpp +45 -0
- mqt/core/include/mqt-core/dd/MemoryManager.hpp +193 -0
- mqt/core/include/mqt-core/dd/Node.hpp +223 -0
- mqt/core/include/mqt-core/dd/NoiseFunctionality.hpp +144 -0
- mqt/core/include/mqt-core/dd/Operations.hpp +306 -0
- mqt/core/include/mqt-core/dd/Package.hpp +2036 -0
- mqt/core/include/mqt-core/dd/Package_fwd.hpp +22 -0
- mqt/core/include/mqt-core/dd/RealNumber.hpp +255 -0
- mqt/core/include/mqt-core/dd/RealNumberUniqueTable.hpp +217 -0
- mqt/core/include/mqt-core/dd/Simulation.hpp +98 -0
- mqt/core/include/mqt-core/dd/StateGeneration.hpp +143 -0
- mqt/core/include/mqt-core/dd/StochasticNoiseOperationTable.hpp +88 -0
- mqt/core/include/mqt-core/dd/UnaryComputeTable.hpp +121 -0
- mqt/core/include/mqt-core/dd/UniqueTable.hpp +243 -0
- mqt/core/include/mqt-core/dd/mqt_core_dd_export.h +43 -0
- mqt/core/include/mqt-core/dd/statistics/MemoryManagerStatistics.hpp +84 -0
- mqt/core/include/mqt-core/dd/statistics/PackageStatistics.hpp +55 -0
- mqt/core/include/mqt-core/dd/statistics/Statistics.hpp +48 -0
- mqt/core/include/mqt-core/dd/statistics/TableStatistics.hpp +79 -0
- mqt/core/include/mqt-core/dd/statistics/UniqueTableStatistics.hpp +31 -0
- mqt/core/include/mqt-core/fomac/FoMaC.hpp +568 -0
- mqt/core/include/mqt-core/ir/Definitions.hpp +108 -0
- mqt/core/include/mqt-core/ir/Permutation.hpp +213 -0
- mqt/core/include/mqt-core/ir/QuantumComputation.hpp +596 -0
- mqt/core/include/mqt-core/ir/Register.hpp +125 -0
- mqt/core/include/mqt-core/ir/mqt_core_ir_export.h +43 -0
- mqt/core/include/mqt-core/ir/operations/AodOperation.hpp +92 -0
- mqt/core/include/mqt-core/ir/operations/CompoundOperation.hpp +212 -0
- mqt/core/include/mqt-core/ir/operations/Control.hpp +142 -0
- mqt/core/include/mqt-core/ir/operations/Expression.hpp +847 -0
- mqt/core/include/mqt-core/ir/operations/IfElseOperation.hpp +169 -0
- mqt/core/include/mqt-core/ir/operations/NonUnitaryOperation.hpp +118 -0
- mqt/core/include/mqt-core/ir/operations/OpType.hpp +120 -0
- mqt/core/include/mqt-core/ir/operations/OpType.inc +76 -0
- mqt/core/include/mqt-core/ir/operations/Operation.hpp +247 -0
- mqt/core/include/mqt-core/ir/operations/StandardOperation.hpp +140 -0
- mqt/core/include/mqt-core/ir/operations/SymbolicOperation.hpp +144 -0
- mqt/core/include/mqt-core/mqt_na_qdmi/device.h +602 -0
- mqt/core/include/mqt-core/mqt_na_qdmi/types.h +78 -0
- mqt/core/include/mqt-core/na/NAComputation.hpp +185 -0
- mqt/core/include/mqt-core/na/device/Device.hpp +410 -0
- mqt/core/include/mqt-core/na/device/DeviceMemberInitializers.hpp +724 -0
- mqt/core/include/mqt-core/na/device/Generator.hpp +447 -0
- mqt/core/include/mqt-core/na/entities/Atom.hpp +62 -0
- mqt/core/include/mqt-core/na/entities/Location.hpp +154 -0
- mqt/core/include/mqt-core/na/entities/Zone.hpp +95 -0
- mqt/core/include/mqt-core/na/fomac/Device.hpp +169 -0
- mqt/core/include/mqt-core/na/mqt_core_na_export.h +43 -0
- mqt/core/include/mqt-core/na/operations/GlobalCZOp.hpp +38 -0
- mqt/core/include/mqt-core/na/operations/GlobalOp.hpp +58 -0
- mqt/core/include/mqt-core/na/operations/GlobalRYOp.hpp +42 -0
- mqt/core/include/mqt-core/na/operations/LoadOp.hpp +89 -0
- mqt/core/include/mqt-core/na/operations/LocalOp.hpp +56 -0
- mqt/core/include/mqt-core/na/operations/LocalRZOp.hpp +42 -0
- mqt/core/include/mqt-core/na/operations/LocalUOp.hpp +49 -0
- mqt/core/include/mqt-core/na/operations/MoveOp.hpp +66 -0
- mqt/core/include/mqt-core/na/operations/Op.hpp +62 -0
- mqt/core/include/mqt-core/na/operations/ShuttlingOp.hpp +51 -0
- mqt/core/include/mqt-core/na/operations/StoreOp.hpp +87 -0
- mqt/core/include/mqt-core/qasm3/Exception.hpp +85 -0
- mqt/core/include/mqt-core/qasm3/Gate.hpp +65 -0
- mqt/core/include/mqt-core/qasm3/Importer.hpp +192 -0
- mqt/core/include/mqt-core/qasm3/InstVisitor.hpp +145 -0
- mqt/core/include/mqt-core/qasm3/NestedEnvironment.hpp +41 -0
- mqt/core/include/mqt-core/qasm3/Parser.hpp +170 -0
- mqt/core/include/mqt-core/qasm3/Scanner.hpp +73 -0
- mqt/core/include/mqt-core/qasm3/Statement.hpp +486 -0
- mqt/core/include/mqt-core/qasm3/Statement_fwd.hpp +39 -0
- mqt/core/include/mqt-core/qasm3/StdGates.hpp +232 -0
- mqt/core/include/mqt-core/qasm3/Token.hpp +198 -0
- mqt/core/include/mqt-core/qasm3/Types.hpp +238 -0
- mqt/core/include/mqt-core/qasm3/Types_fwd.hpp +22 -0
- mqt/core/include/mqt-core/qasm3/mqt_core_qasm_export.h +43 -0
- mqt/core/include/mqt-core/qasm3/passes/CompilerPass.hpp +22 -0
- mqt/core/include/mqt-core/qasm3/passes/ConstEvalPass.hpp +102 -0
- mqt/core/include/mqt-core/qasm3/passes/TypeCheckPass.hpp +124 -0
- mqt/core/include/mqt-core/qdmi/Driver.hpp +431 -0
- mqt/core/include/mqt-core/zx/FunctionalityConstruction.hpp +125 -0
- mqt/core/include/mqt-core/zx/Rational.hpp +318 -0
- mqt/core/include/mqt-core/zx/Rules.hpp +132 -0
- mqt/core/include/mqt-core/zx/Simplify.hpp +182 -0
- mqt/core/include/mqt-core/zx/Utils.hpp +212 -0
- mqt/core/include/mqt-core/zx/ZXDefinitions.hpp +93 -0
- mqt/core/include/mqt-core/zx/ZXDiagram.hpp +480 -0
- mqt/core/include/mqt-core/zx/mqt_core_zx_export.h +43 -0
- mqt/core/include/nlohmann/adl_serializer.hpp +55 -0
- mqt/core/include/nlohmann/byte_container_with_subtype.hpp +103 -0
- mqt/core/include/nlohmann/detail/abi_macros.hpp +111 -0
- mqt/core/include/nlohmann/detail/conversions/from_json.hpp +577 -0
- mqt/core/include/nlohmann/detail/conversions/to_chars.hpp +1118 -0
- mqt/core/include/nlohmann/detail/conversions/to_json.hpp +479 -0
- mqt/core/include/nlohmann/detail/exceptions.hpp +291 -0
- mqt/core/include/nlohmann/detail/hash.hpp +129 -0
- mqt/core/include/nlohmann/detail/input/binary_reader.hpp +3068 -0
- mqt/core/include/nlohmann/detail/input/input_adapters.hpp +549 -0
- mqt/core/include/nlohmann/detail/input/json_sax.hpp +986 -0
- mqt/core/include/nlohmann/detail/input/lexer.hpp +1643 -0
- mqt/core/include/nlohmann/detail/input/parser.hpp +519 -0
- mqt/core/include/nlohmann/detail/input/position_t.hpp +37 -0
- mqt/core/include/nlohmann/detail/iterators/internal_iterator.hpp +35 -0
- mqt/core/include/nlohmann/detail/iterators/iter_impl.hpp +760 -0
- mqt/core/include/nlohmann/detail/iterators/iteration_proxy.hpp +235 -0
- mqt/core/include/nlohmann/detail/iterators/iterator_traits.hpp +61 -0
- mqt/core/include/nlohmann/detail/iterators/json_reverse_iterator.hpp +130 -0
- mqt/core/include/nlohmann/detail/iterators/primitive_iterator.hpp +132 -0
- mqt/core/include/nlohmann/detail/json_custom_base_class.hpp +39 -0
- mqt/core/include/nlohmann/detail/json_pointer.hpp +988 -0
- mqt/core/include/nlohmann/detail/json_ref.hpp +78 -0
- mqt/core/include/nlohmann/detail/macro_scope.hpp +595 -0
- mqt/core/include/nlohmann/detail/macro_unscope.hpp +46 -0
- mqt/core/include/nlohmann/detail/meta/call_std/begin.hpp +17 -0
- mqt/core/include/nlohmann/detail/meta/call_std/end.hpp +17 -0
- mqt/core/include/nlohmann/detail/meta/cpp_future.hpp +171 -0
- mqt/core/include/nlohmann/detail/meta/detected.hpp +70 -0
- mqt/core/include/nlohmann/detail/meta/identity_tag.hpp +21 -0
- mqt/core/include/nlohmann/detail/meta/is_sax.hpp +159 -0
- mqt/core/include/nlohmann/detail/meta/std_fs.hpp +29 -0
- mqt/core/include/nlohmann/detail/meta/type_traits.hpp +795 -0
- mqt/core/include/nlohmann/detail/meta/void_t.hpp +24 -0
- mqt/core/include/nlohmann/detail/output/binary_writer.hpp +1850 -0
- mqt/core/include/nlohmann/detail/output/output_adapters.hpp +147 -0
- mqt/core/include/nlohmann/detail/output/serializer.hpp +988 -0
- mqt/core/include/nlohmann/detail/string_concat.hpp +146 -0
- mqt/core/include/nlohmann/detail/string_escape.hpp +72 -0
- mqt/core/include/nlohmann/detail/string_utils.hpp +37 -0
- mqt/core/include/nlohmann/detail/value_t.hpp +118 -0
- mqt/core/include/nlohmann/json.hpp +5306 -0
- mqt/core/include/nlohmann/json_fwd.hpp +75 -0
- mqt/core/include/nlohmann/ordered_map.hpp +359 -0
- mqt/core/include/nlohmann/thirdparty/hedley/hedley.hpp +2045 -0
- mqt/core/include/nlohmann/thirdparty/hedley/hedley_undef.hpp +158 -0
- mqt/core/include/qdmi/qdmi/client.h +990 -0
- mqt/core/include/qdmi/qdmi/constants.h +1139 -0
- mqt/core/include/qdmi/qdmi/device.h +602 -0
- mqt/core/include/qdmi/qdmi/types.h +78 -0
- mqt/core/include/spdlog/async.h +99 -0
- mqt/core/include/spdlog/async_logger-inl.h +84 -0
- mqt/core/include/spdlog/async_logger.h +74 -0
- mqt/core/include/spdlog/cfg/argv.h +40 -0
- mqt/core/include/spdlog/cfg/env.h +36 -0
- mqt/core/include/spdlog/cfg/helpers-inl.h +107 -0
- mqt/core/include/spdlog/cfg/helpers.h +29 -0
- mqt/core/include/spdlog/common-inl.h +68 -0
- mqt/core/include/spdlog/common.h +406 -0
- mqt/core/include/spdlog/details/backtracer-inl.h +63 -0
- mqt/core/include/spdlog/details/backtracer.h +45 -0
- mqt/core/include/spdlog/details/circular_q.h +115 -0
- mqt/core/include/spdlog/details/console_globals.h +28 -0
- mqt/core/include/spdlog/details/file_helper-inl.h +153 -0
- mqt/core/include/spdlog/details/file_helper.h +61 -0
- mqt/core/include/spdlog/details/fmt_helper.h +141 -0
- mqt/core/include/spdlog/details/log_msg-inl.h +44 -0
- mqt/core/include/spdlog/details/log_msg.h +40 -0
- mqt/core/include/spdlog/details/log_msg_buffer-inl.h +54 -0
- mqt/core/include/spdlog/details/log_msg_buffer.h +32 -0
- mqt/core/include/spdlog/details/mpmc_blocking_q.h +177 -0
- mqt/core/include/spdlog/details/null_mutex.h +35 -0
- mqt/core/include/spdlog/details/os-inl.h +606 -0
- mqt/core/include/spdlog/details/os.h +127 -0
- mqt/core/include/spdlog/details/periodic_worker-inl.h +26 -0
- mqt/core/include/spdlog/details/periodic_worker.h +58 -0
- mqt/core/include/spdlog/details/registry-inl.h +270 -0
- mqt/core/include/spdlog/details/registry.h +131 -0
- mqt/core/include/spdlog/details/synchronous_factory.h +22 -0
- mqt/core/include/spdlog/details/tcp_client-windows.h +135 -0
- mqt/core/include/spdlog/details/tcp_client.h +127 -0
- mqt/core/include/spdlog/details/thread_pool-inl.h +126 -0
- mqt/core/include/spdlog/details/thread_pool.h +117 -0
- mqt/core/include/spdlog/details/udp_client-windows.h +98 -0
- mqt/core/include/spdlog/details/udp_client.h +81 -0
- mqt/core/include/spdlog/details/windows_include.h +11 -0
- mqt/core/include/spdlog/fmt/bin_to_hex.h +224 -0
- mqt/core/include/spdlog/fmt/bundled/args.h +220 -0
- mqt/core/include/spdlog/fmt/bundled/base.h +2989 -0
- mqt/core/include/spdlog/fmt/bundled/chrono.h +2330 -0
- mqt/core/include/spdlog/fmt/bundled/color.h +637 -0
- mqt/core/include/spdlog/fmt/bundled/compile.h +539 -0
- mqt/core/include/spdlog/fmt/bundled/core.h +5 -0
- mqt/core/include/spdlog/fmt/bundled/fmt.license.rst +27 -0
- mqt/core/include/spdlog/fmt/bundled/format-inl.h +1948 -0
- mqt/core/include/spdlog/fmt/bundled/format.h +4244 -0
- mqt/core/include/spdlog/fmt/bundled/os.h +427 -0
- mqt/core/include/spdlog/fmt/bundled/ostream.h +167 -0
- mqt/core/include/spdlog/fmt/bundled/printf.h +633 -0
- mqt/core/include/spdlog/fmt/bundled/ranges.h +850 -0
- mqt/core/include/spdlog/fmt/bundled/std.h +728 -0
- mqt/core/include/spdlog/fmt/bundled/xchar.h +369 -0
- mqt/core/include/spdlog/fmt/chrono.h +23 -0
- mqt/core/include/spdlog/fmt/compile.h +23 -0
- mqt/core/include/spdlog/fmt/fmt.h +30 -0
- mqt/core/include/spdlog/fmt/ostr.h +23 -0
- mqt/core/include/spdlog/fmt/ranges.h +23 -0
- mqt/core/include/spdlog/fmt/std.h +24 -0
- mqt/core/include/spdlog/fmt/xchar.h +23 -0
- mqt/core/include/spdlog/formatter.h +17 -0
- mqt/core/include/spdlog/fwd.h +18 -0
- mqt/core/include/spdlog/logger-inl.h +198 -0
- mqt/core/include/spdlog/logger.h +379 -0
- mqt/core/include/spdlog/mdc.h +52 -0
- mqt/core/include/spdlog/pattern_formatter-inl.h +1340 -0
- mqt/core/include/spdlog/pattern_formatter.h +118 -0
- mqt/core/include/spdlog/sinks/android_sink.h +137 -0
- mqt/core/include/spdlog/sinks/ansicolor_sink-inl.h +142 -0
- mqt/core/include/spdlog/sinks/ansicolor_sink.h +116 -0
- mqt/core/include/spdlog/sinks/base_sink-inl.h +59 -0
- mqt/core/include/spdlog/sinks/base_sink.h +51 -0
- mqt/core/include/spdlog/sinks/basic_file_sink-inl.h +48 -0
- mqt/core/include/spdlog/sinks/basic_file_sink.h +66 -0
- mqt/core/include/spdlog/sinks/callback_sink.h +56 -0
- mqt/core/include/spdlog/sinks/daily_file_sink.h +254 -0
- mqt/core/include/spdlog/sinks/dist_sink.h +81 -0
- mqt/core/include/spdlog/sinks/dup_filter_sink.h +91 -0
- mqt/core/include/spdlog/sinks/hourly_file_sink.h +193 -0
- mqt/core/include/spdlog/sinks/kafka_sink.h +119 -0
- mqt/core/include/spdlog/sinks/mongo_sink.h +108 -0
- mqt/core/include/spdlog/sinks/msvc_sink.h +68 -0
- mqt/core/include/spdlog/sinks/null_sink.h +41 -0
- mqt/core/include/spdlog/sinks/ostream_sink.h +43 -0
- mqt/core/include/spdlog/sinks/qt_sinks.h +304 -0
- mqt/core/include/spdlog/sinks/ringbuffer_sink.h +67 -0
- mqt/core/include/spdlog/sinks/rotating_file_sink-inl.h +179 -0
- mqt/core/include/spdlog/sinks/rotating_file_sink.h +93 -0
- mqt/core/include/spdlog/sinks/sink-inl.h +22 -0
- mqt/core/include/spdlog/sinks/sink.h +34 -0
- mqt/core/include/spdlog/sinks/stdout_color_sinks-inl.h +38 -0
- mqt/core/include/spdlog/sinks/stdout_color_sinks.h +49 -0
- mqt/core/include/spdlog/sinks/stdout_sinks-inl.h +127 -0
- mqt/core/include/spdlog/sinks/stdout_sinks.h +84 -0
- mqt/core/include/spdlog/sinks/syslog_sink.h +104 -0
- mqt/core/include/spdlog/sinks/systemd_sink.h +121 -0
- mqt/core/include/spdlog/sinks/tcp_sink.h +75 -0
- mqt/core/include/spdlog/sinks/udp_sink.h +69 -0
- mqt/core/include/spdlog/sinks/win_eventlog_sink.h +260 -0
- mqt/core/include/spdlog/sinks/wincolor_sink-inl.h +172 -0
- mqt/core/include/spdlog/sinks/wincolor_sink.h +82 -0
- mqt/core/include/spdlog/spdlog-inl.h +96 -0
- mqt/core/include/spdlog/spdlog.h +357 -0
- mqt/core/include/spdlog/stopwatch.h +66 -0
- mqt/core/include/spdlog/tweakme.h +148 -0
- mqt/core/include/spdlog/version.h +11 -0
- mqt/core/ir/__init__.pyi +2078 -0
- mqt/core/ir/operations.pyi +1011 -0
- mqt/core/ir/registers.pyi +91 -0
- mqt/core/ir/symbolic.pyi +177 -0
- mqt/core/ir.cpython-314t-darwin.so +0 -0
- mqt/core/lib/libmqt-core-algorithms.3.3.2.dylib +0 -0
- mqt/core/lib/libmqt-core-algorithms.3.3.dylib +0 -0
- mqt/core/lib/libmqt-core-algorithms.dylib +0 -0
- mqt/core/lib/libmqt-core-circuit-optimizer.3.3.2.dylib +0 -0
- mqt/core/lib/libmqt-core-circuit-optimizer.3.3.dylib +0 -0
- mqt/core/lib/libmqt-core-circuit-optimizer.dylib +0 -0
- mqt/core/lib/libmqt-core-dd.3.3.2.dylib +0 -0
- mqt/core/lib/libmqt-core-dd.3.3.dylib +0 -0
- mqt/core/lib/libmqt-core-dd.dylib +0 -0
- mqt/core/lib/libmqt-core-ds.3.3.2.dylib +0 -0
- mqt/core/lib/libmqt-core-ds.3.3.dylib +0 -0
- mqt/core/lib/libmqt-core-ds.dylib +0 -0
- mqt/core/lib/libmqt-core-fomac.3.3.2.dylib +0 -0
- mqt/core/lib/libmqt-core-fomac.3.3.dylib +0 -0
- mqt/core/lib/libmqt-core-fomac.dylib +0 -0
- mqt/core/lib/libmqt-core-ir.3.3.2.dylib +0 -0
- mqt/core/lib/libmqt-core-ir.3.3.dylib +0 -0
- mqt/core/lib/libmqt-core-ir.dylib +0 -0
- mqt/core/lib/libmqt-core-na-fomac.3.3.2.dylib +0 -0
- mqt/core/lib/libmqt-core-na-fomac.3.3.dylib +0 -0
- mqt/core/lib/libmqt-core-na-fomac.dylib +0 -0
- mqt/core/lib/libmqt-core-na.3.3.2.dylib +0 -0
- mqt/core/lib/libmqt-core-na.3.3.dylib +0 -0
- mqt/core/lib/libmqt-core-na.dylib +0 -0
- mqt/core/lib/libmqt-core-qasm.3.3.2.dylib +0 -0
- mqt/core/lib/libmqt-core-qasm.3.3.dylib +0 -0
- mqt/core/lib/libmqt-core-qasm.dylib +0 -0
- mqt/core/lib/libmqt-core-qdmi-driver.3.3.2.dylib +0 -0
- mqt/core/lib/libmqt-core-qdmi-driver.3.3.dylib +0 -0
- mqt/core/lib/libmqt-core-qdmi-driver.dylib +0 -0
- mqt/core/lib/libmqt-core-qdmi-na-device-gen.a +0 -0
- mqt/core/lib/libmqt-core-qdmi-na-device.3.3.2.dylib +0 -0
- mqt/core/lib/libmqt-core-qdmi-na-device.3.3.dylib +0 -0
- mqt/core/lib/libmqt-core-qdmi-na-device.dylib +0 -0
- mqt/core/lib/libmqt-core-zx.3.3.2.dylib +0 -0
- mqt/core/lib/libmqt-core-zx.3.3.dylib +0 -0
- mqt/core/lib/libmqt-core-zx.dylib +0 -0
- mqt/core/lib/libspdlog.a +0 -0
- mqt/core/lib/pkgconfig/spdlog.pc +13 -0
- mqt/core/na/__init__.py +12 -0
- mqt/core/na/fomac.cpython-314t-darwin.so +0 -0
- mqt/core/na/fomac.pyi +117 -0
- mqt/core/plugins/__init__.py +9 -0
- mqt/core/plugins/qiskit/__init__.py +19 -0
- mqt/core/plugins/qiskit/mqt_to_qiskit.py +420 -0
- mqt/core/plugins/qiskit/qiskit_to_mqt.py +562 -0
- mqt/core/py.typed +2 -0
- mqt/core/share/cmake/mqt-core/AddMQTPythonBinding.cmake +55 -0
- mqt/core/share/cmake/mqt-core/Cache.cmake +33 -0
- mqt/core/share/cmake/mqt-core/FindGMP.cmake +103 -0
- mqt/core/share/cmake/mqt-core/PackageAddTest.cmake +46 -0
- mqt/core/share/cmake/mqt-core/PreventInSourceBuilds.cmake +25 -0
- mqt/core/share/cmake/mqt-core/StandardProjectSettings.cmake +87 -0
- mqt/core/share/cmake/mqt-core/mqt-core-config-version.cmake +85 -0
- mqt/core/share/cmake/mqt-core/mqt-core-config.cmake +52 -0
- mqt/core/share/cmake/mqt-core/mqt-core-targets-release.cmake +141 -0
- mqt/core/share/cmake/mqt-core/mqt-core-targets.cmake +446 -0
- mqt/core/share/cmake/nlohmann_json/nlohmann_jsonConfig.cmake +15 -0
- mqt/core/share/cmake/nlohmann_json/nlohmann_jsonConfigVersion.cmake +20 -0
- mqt/core/share/cmake/nlohmann_json/nlohmann_jsonTargets.cmake +109 -0
- mqt/core/share/cmake/qdmi/Cache.cmake +44 -0
- mqt/core/share/cmake/qdmi/PrefixHandling.cmake +78 -0
- mqt/core/share/cmake/qdmi/prefix_defs.txt +26 -0
- mqt/core/share/cmake/qdmi/qdmi-config-version.cmake +85 -0
- mqt/core/share/cmake/qdmi/qdmi-config.cmake +42 -0
- mqt/core/share/cmake/qdmi/qdmi-targets.cmake +129 -0
- mqt/core/share/cmake/spdlog/spdlogConfig.cmake +44 -0
- mqt/core/share/cmake/spdlog/spdlogConfigTargets-release.cmake +19 -0
- mqt/core/share/cmake/spdlog/spdlogConfigTargets.cmake +118 -0
- mqt/core/share/cmake/spdlog/spdlogConfigVersion.cmake +65 -0
- mqt/core/share/pkgconfig/nlohmann_json.pc +7 -0
- mqt_core-3.3.2.dist-info/METADATA +210 -0
- mqt_core-3.3.2.dist-info/RECORD +546 -0
- mqt_core-3.3.2.dist-info/WHEEL +6 -0
- mqt_core-3.3.2.dist-info/entry_points.txt +4 -0
- mqt_core-3.3.2.dist-info/licenses/LICENSE.md +22 -0
|
@@ -0,0 +1,920 @@
|
|
|
1
|
+
///////////////////////////////////////////////////////////////
|
|
2
|
+
// Copyright 2013 John Maddock. Distributed under the Boost
|
|
3
|
+
// Software License, Version 1.0. (See accompanying file
|
|
4
|
+
// LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt
|
|
5
|
+
|
|
6
|
+
#ifndef BOOST_MP_FLOAT128_HPP
|
|
7
|
+
#define BOOST_MP_FLOAT128_HPP
|
|
8
|
+
|
|
9
|
+
// https://gcc.gnu.org/onlinedocs/gcc/Floating-Types.html
|
|
10
|
+
#if !defined(__amd64__) && !defined(__amd64) && !defined(__x86_64__) && !defined(__x86_64) && !defined(_M_X64) && !defined(_M_AMD64) && \
|
|
11
|
+
!defined(i386) && !defined(__i386) && !defined(__i386__) && !defined(_M_IX86) && !defined(__X86__) && !defined(_X86_) && !defined(__I86__) && \
|
|
12
|
+
!defined(__ia64__) && !defined(_IA64) && !defined(__IA64__) && !defined(__ia64) && !defined(_M_IA64) && !defined(__itanium__) && \
|
|
13
|
+
!defined(__hppa__) && !defined(__HPPA__) && !defined(__hppa) && \
|
|
14
|
+
!defined(__powerpc) && !defined(_M_PPC) && !defined(_ARCH_PPC) && !defined(_ARCH_PPC64) && !defined(__PPCBROADWAY__)
|
|
15
|
+
#error libquadmath only works on on i386, x86_64, IA-64, and hppa HP-UX, as well as on PowerPC GNU/Linux targets that enable the vector scalar (VSX) instruction set.
|
|
16
|
+
#endif
|
|
17
|
+
|
|
18
|
+
#include <memory>
|
|
19
|
+
#include <climits>
|
|
20
|
+
#include <cfloat>
|
|
21
|
+
#include <tuple>
|
|
22
|
+
#include <cstring>
|
|
23
|
+
#include <boost/multiprecision/detail/standalone_config.hpp>
|
|
24
|
+
#include <boost/multiprecision/number.hpp>
|
|
25
|
+
#include <boost/multiprecision/detail/hash.hpp>
|
|
26
|
+
#include <boost/multiprecision/detail/no_exceptions_support.hpp>
|
|
27
|
+
|
|
28
|
+
#if defined(BOOST_INTEL) && !defined(BOOST_MP_USE_FLOAT128) && !defined(BOOST_MP_USE_QUAD)
|
|
29
|
+
#if defined(BOOST_INTEL_CXX_VERSION) && (BOOST_INTEL_CXX_VERSION >= 1310) && defined(__GNUC__)
|
|
30
|
+
#if (__GNUC__ > 4) || ((__GNUC__ == 4) && (__GNUC_MINOR__ >= 6))
|
|
31
|
+
#define BOOST_MP_USE_FLOAT128
|
|
32
|
+
#endif
|
|
33
|
+
#endif
|
|
34
|
+
|
|
35
|
+
#ifndef BOOST_MP_USE_FLOAT128
|
|
36
|
+
#define BOOST_MP_USE_QUAD
|
|
37
|
+
#endif
|
|
38
|
+
#endif
|
|
39
|
+
|
|
40
|
+
#if defined(__GNUC__) && !defined(BOOST_MP_USE_FLOAT128) && !defined(BOOST_MP_USE_QUAD)
|
|
41
|
+
#define BOOST_MP_USE_FLOAT128
|
|
42
|
+
#endif
|
|
43
|
+
|
|
44
|
+
#if !defined(BOOST_MP_USE_FLOAT128) && !defined(BOOST_MP_USE_QUAD)
|
|
45
|
+
#error "Sorry compiler is neither GCC, not Intel, don't know how to configure this header."
|
|
46
|
+
#endif
|
|
47
|
+
#if defined(BOOST_MP_USE_FLOAT128) && defined(BOOST_MP_USE_QUAD)
|
|
48
|
+
#error "Oh dear, both BOOST_MP_USE_FLOAT128 and BOOST_MP_USE_QUAD are defined, which one should I be using?"
|
|
49
|
+
#endif
|
|
50
|
+
|
|
51
|
+
#if defined(BOOST_MP_USE_FLOAT128)
|
|
52
|
+
|
|
53
|
+
extern "C" {
|
|
54
|
+
#include <quadmath.h>
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
using float128_type = __float128;
|
|
58
|
+
|
|
59
|
+
#elif defined(BOOST_MP_USE_QUAD)
|
|
60
|
+
|
|
61
|
+
#include <boost/multiprecision/detail/float_string_cvt.hpp>
|
|
62
|
+
|
|
63
|
+
using float128_type = _Quad;
|
|
64
|
+
|
|
65
|
+
extern "C" {
|
|
66
|
+
_Quad __ldexpq(_Quad, int);
|
|
67
|
+
_Quad __frexpq(_Quad, int*);
|
|
68
|
+
_Quad __fabsq(_Quad);
|
|
69
|
+
_Quad __floorq(_Quad);
|
|
70
|
+
_Quad __ceilq(_Quad);
|
|
71
|
+
_Quad __sqrtq(_Quad);
|
|
72
|
+
_Quad __truncq(_Quad);
|
|
73
|
+
_Quad __expq(_Quad);
|
|
74
|
+
_Quad __powq(_Quad, _Quad);
|
|
75
|
+
_Quad __logq(_Quad);
|
|
76
|
+
_Quad __log10q(_Quad);
|
|
77
|
+
_Quad __sinq(_Quad);
|
|
78
|
+
_Quad __cosq(_Quad);
|
|
79
|
+
_Quad __tanq(_Quad);
|
|
80
|
+
_Quad __asinq(_Quad);
|
|
81
|
+
_Quad __acosq(_Quad);
|
|
82
|
+
_Quad __atanq(_Quad);
|
|
83
|
+
_Quad __sinhq(_Quad);
|
|
84
|
+
_Quad __coshq(_Quad);
|
|
85
|
+
_Quad __tanhq(_Quad);
|
|
86
|
+
_Quad __fmodq(_Quad, _Quad);
|
|
87
|
+
_Quad __atan2q(_Quad, _Quad);
|
|
88
|
+
|
|
89
|
+
#define ldexpq __ldexpq
|
|
90
|
+
#define frexpq __frexpq
|
|
91
|
+
#define fabsq __fabsq
|
|
92
|
+
#define floorq __floorq
|
|
93
|
+
#define ceilq __ceilq
|
|
94
|
+
#define sqrtq __sqrtq
|
|
95
|
+
#define truncq __truncq
|
|
96
|
+
#define expq __expq
|
|
97
|
+
#define powq __powq
|
|
98
|
+
#define logq __logq
|
|
99
|
+
#define log10q __log10q
|
|
100
|
+
#define sinq __sinq
|
|
101
|
+
#define cosq __cosq
|
|
102
|
+
#define tanq __tanq
|
|
103
|
+
#define asinq __asinq
|
|
104
|
+
#define acosq __acosq
|
|
105
|
+
#define atanq __atanq
|
|
106
|
+
#define sinhq __sinhq
|
|
107
|
+
#define coshq __coshq
|
|
108
|
+
#define tanhq __tanhq
|
|
109
|
+
#define fmodq __fmodq
|
|
110
|
+
#define atan2q __atan2q
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
inline _Quad isnanq(_Quad v)
|
|
114
|
+
{
|
|
115
|
+
return v != v;
|
|
116
|
+
}
|
|
117
|
+
inline _Quad isinfq(_Quad v)
|
|
118
|
+
{
|
|
119
|
+
return __fabsq(v) > 1.18973149535723176508575932662800702e4932Q;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
#endif
|
|
123
|
+
|
|
124
|
+
namespace boost {
|
|
125
|
+
namespace multiprecision {
|
|
126
|
+
|
|
127
|
+
#ifndef BOOST_MP_BITS_OF_FLOAT128_DEFINED
|
|
128
|
+
|
|
129
|
+
namespace detail {
|
|
130
|
+
|
|
131
|
+
template <>
|
|
132
|
+
struct bits_of<float128_type>
|
|
133
|
+
{
|
|
134
|
+
static constexpr const unsigned value = 113;
|
|
135
|
+
};
|
|
136
|
+
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
#endif
|
|
140
|
+
|
|
141
|
+
template <>
|
|
142
|
+
struct number_category<backends::float128_backend> : public std::integral_constant<int, number_kind_floating_point>
|
|
143
|
+
{};
|
|
144
|
+
#if defined(BOOST_MP_USE_QUAD)
|
|
145
|
+
template <>
|
|
146
|
+
struct number_category<float128_type> : public std::integral_constant<int, number_kind_floating_point>
|
|
147
|
+
{};
|
|
148
|
+
#endif
|
|
149
|
+
|
|
150
|
+
namespace quad_constants {
|
|
151
|
+
constexpr float128_type quad_min = static_cast<float128_type>(1) * static_cast<float128_type>(DBL_MIN) * static_cast<float128_type>(DBL_MIN) * static_cast<float128_type>(DBL_MIN) * static_cast<float128_type>(DBL_MIN) * static_cast<float128_type>(DBL_MIN) * static_cast<float128_type>(DBL_MIN) * static_cast<float128_type>(DBL_MIN) * static_cast<float128_type>(DBL_MIN) * static_cast<float128_type>(DBL_MIN) * static_cast<float128_type>(DBL_MIN) * static_cast<float128_type>(DBL_MIN) * static_cast<float128_type>(DBL_MIN) * static_cast<float128_type>(DBL_MIN) * static_cast<float128_type>(DBL_MIN) * static_cast<float128_type>(DBL_MIN) * static_cast<float128_type>(DBL_MIN) / 1073741824;
|
|
152
|
+
|
|
153
|
+
constexpr float128_type quad_denorm_min = static_cast<float128_type>(1) * static_cast<float128_type>(DBL_MIN) * static_cast<float128_type>(DBL_MIN) * static_cast<float128_type>(DBL_MIN) * static_cast<float128_type>(DBL_MIN) * static_cast<float128_type>(DBL_MIN) * static_cast<float128_type>(DBL_MIN) * static_cast<float128_type>(DBL_MIN) * static_cast<float128_type>(DBL_MIN) * static_cast<float128_type>(DBL_MIN) * static_cast<float128_type>(DBL_MIN) * static_cast<float128_type>(DBL_MIN) * static_cast<float128_type>(DBL_MIN) * static_cast<float128_type>(DBL_MIN) * static_cast<float128_type>(DBL_MIN) * static_cast<float128_type>(DBL_MIN) * static_cast<float128_type>(DBL_MIN) / 5.5751862996326557854e+42;
|
|
154
|
+
|
|
155
|
+
constexpr double dbl_mult = 8.9884656743115795386e+307; // This has one bit set only.
|
|
156
|
+
constexpr float128_type quad_max = (static_cast<float128_type>(1) - 9.62964972193617926527988971292463659e-35) // This now has all bits sets to 1
|
|
157
|
+
* static_cast<float128_type>(dbl_mult) * static_cast<float128_type>(dbl_mult) * static_cast<float128_type>(dbl_mult) * static_cast<float128_type>(dbl_mult) * static_cast<float128_type>(dbl_mult) * static_cast<float128_type>(dbl_mult) * static_cast<float128_type>(dbl_mult) * static_cast<float128_type>(dbl_mult) * static_cast<float128_type>(dbl_mult) * static_cast<float128_type>(dbl_mult) * static_cast<float128_type>(dbl_mult) * static_cast<float128_type>(dbl_mult) * static_cast<float128_type>(dbl_mult) * static_cast<float128_type>(dbl_mult) * static_cast<float128_type>(dbl_mult) * static_cast<float128_type>(dbl_mult) * 65536;
|
|
158
|
+
} // namespace quad_constants
|
|
159
|
+
|
|
160
|
+
#define BOOST_MP_QUAD_MIN boost::multiprecision::quad_constants::quad_min
|
|
161
|
+
#define BOOST_MP_QUAD_DENORM_MIN boost::multiprecision::quad_constants::quad_denorm_min
|
|
162
|
+
#define BOOST_MP_QUAD_MAX boost::multiprecision::quad_constants::quad_max
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
namespace backends {
|
|
166
|
+
|
|
167
|
+
struct float128_backend
|
|
168
|
+
{
|
|
169
|
+
using signed_types = std::tuple<signed char, short, int, long, long long>;
|
|
170
|
+
using unsigned_types = std::tuple<unsigned char, unsigned short, unsigned int, unsigned long, unsigned long long>;
|
|
171
|
+
using float_types = std::tuple<float, double, long double>;
|
|
172
|
+
using exponent_type = int ;
|
|
173
|
+
|
|
174
|
+
private:
|
|
175
|
+
float128_type m_value;
|
|
176
|
+
|
|
177
|
+
public:
|
|
178
|
+
constexpr float128_backend() noexcept : m_value(0) {}
|
|
179
|
+
constexpr float128_backend(const float128_backend& o) noexcept : m_value(o.m_value) {}
|
|
180
|
+
BOOST_MP_CXX14_CONSTEXPR float128_backend& operator=(const float128_backend& o) noexcept
|
|
181
|
+
{
|
|
182
|
+
m_value = o.m_value;
|
|
183
|
+
return *this;
|
|
184
|
+
}
|
|
185
|
+
template <class T>
|
|
186
|
+
constexpr float128_backend(const T& i, const typename std::enable_if<std::is_convertible<T, float128_type>::value>::type* = nullptr) noexcept(noexcept(std::declval<float128_type&>() = std::declval<const T&>()))
|
|
187
|
+
: m_value(i) {}
|
|
188
|
+
template <class T>
|
|
189
|
+
BOOST_MP_CXX14_CONSTEXPR typename std::enable_if<boost::multiprecision::detail::is_arithmetic<T>::value || std::is_convertible<T, float128_type>::value, float128_backend&>::type operator=(const T& i) noexcept(noexcept(std::declval<float128_type&>() = std::declval<const T&>()))
|
|
190
|
+
{
|
|
191
|
+
m_value = i;
|
|
192
|
+
return *this;
|
|
193
|
+
}
|
|
194
|
+
BOOST_MP_CXX14_CONSTEXPR float128_backend(long double const& f) : m_value(f)
|
|
195
|
+
{
|
|
196
|
+
if (f > LDBL_MAX)
|
|
197
|
+
m_value = static_cast<float128_type>(HUGE_VAL);
|
|
198
|
+
else if (-f > LDBL_MAX)
|
|
199
|
+
m_value = -static_cast<float128_type>(HUGE_VAL);
|
|
200
|
+
}
|
|
201
|
+
BOOST_MP_CXX14_CONSTEXPR float128_backend& operator=(long double const& f)
|
|
202
|
+
{
|
|
203
|
+
if (f > LDBL_MAX)
|
|
204
|
+
m_value = static_cast<float128_type>(HUGE_VAL);
|
|
205
|
+
else if (-f > LDBL_MAX)
|
|
206
|
+
m_value = -static_cast<float128_type>(HUGE_VAL);
|
|
207
|
+
else
|
|
208
|
+
m_value = f;
|
|
209
|
+
return *this;
|
|
210
|
+
}
|
|
211
|
+
float128_backend& operator=(const char* s)
|
|
212
|
+
{
|
|
213
|
+
#ifndef BOOST_MP_USE_QUAD
|
|
214
|
+
char* p_end;
|
|
215
|
+
m_value = strtoflt128(s, &p_end);
|
|
216
|
+
if (p_end - s != (std::ptrdiff_t)std::strlen(s))
|
|
217
|
+
{
|
|
218
|
+
BOOST_MP_THROW_EXCEPTION(std::runtime_error("Unable to interpret input string as a floating point value"));
|
|
219
|
+
}
|
|
220
|
+
#else
|
|
221
|
+
boost::multiprecision::detail::convert_from_string(*this, s);
|
|
222
|
+
#endif
|
|
223
|
+
return *this;
|
|
224
|
+
}
|
|
225
|
+
BOOST_MP_CXX14_CONSTEXPR void swap(float128_backend& o) noexcept
|
|
226
|
+
{
|
|
227
|
+
// We don't call std::swap here because it's no constexpr (yet):
|
|
228
|
+
float128_type t(o.value());
|
|
229
|
+
o.value() = m_value;
|
|
230
|
+
m_value = t;
|
|
231
|
+
}
|
|
232
|
+
std::string str(std::streamsize digits, std::ios_base::fmtflags f) const
|
|
233
|
+
{
|
|
234
|
+
#ifndef BOOST_MP_USE_QUAD
|
|
235
|
+
char buf[128];
|
|
236
|
+
std::string format = "%";
|
|
237
|
+
if (f & std::ios_base::showpos)
|
|
238
|
+
format += "+";
|
|
239
|
+
if (f & std::ios_base::showpoint)
|
|
240
|
+
format += "#";
|
|
241
|
+
format += ".*";
|
|
242
|
+
if ((digits == 0) && !(f & std::ios_base::fixed))
|
|
243
|
+
digits = 36;
|
|
244
|
+
format += "Q";
|
|
245
|
+
|
|
246
|
+
if (f & std::ios_base::scientific)
|
|
247
|
+
format += "e";
|
|
248
|
+
else if (f & std::ios_base::fixed)
|
|
249
|
+
format += "f";
|
|
250
|
+
else
|
|
251
|
+
format += "g";
|
|
252
|
+
|
|
253
|
+
int v;
|
|
254
|
+
if ((f & std::ios_base::scientific) && (f & std::ios_base::fixed))
|
|
255
|
+
{
|
|
256
|
+
v = quadmath_snprintf(buf, sizeof buf, "%Qa", m_value);
|
|
257
|
+
}
|
|
258
|
+
else
|
|
259
|
+
{
|
|
260
|
+
v = quadmath_snprintf(buf, sizeof buf, format.c_str(), digits, m_value);
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
if ((v < 0) || (v >= 127))
|
|
264
|
+
{
|
|
265
|
+
int v_max = v;
|
|
266
|
+
std::unique_ptr<char[]> buf2;
|
|
267
|
+
buf2.reset(new char[v + 3]);
|
|
268
|
+
v = quadmath_snprintf(&buf2[0], v_max + 3, format.c_str(), digits, m_value);
|
|
269
|
+
if (v >= v_max + 3)
|
|
270
|
+
{
|
|
271
|
+
BOOST_MP_THROW_EXCEPTION(std::runtime_error("Formatting of float128_type failed."));
|
|
272
|
+
}
|
|
273
|
+
return &buf2[0];
|
|
274
|
+
}
|
|
275
|
+
return buf;
|
|
276
|
+
#else
|
|
277
|
+
return boost::multiprecision::detail::convert_to_string(*this, digits ? digits : 36, f);
|
|
278
|
+
#endif
|
|
279
|
+
}
|
|
280
|
+
BOOST_MP_CXX14_CONSTEXPR void negate() noexcept
|
|
281
|
+
{
|
|
282
|
+
m_value = -m_value;
|
|
283
|
+
}
|
|
284
|
+
BOOST_MP_CXX14_CONSTEXPR int compare(const float128_backend& o) const
|
|
285
|
+
{
|
|
286
|
+
return m_value == o.m_value ? 0 : m_value < o.m_value ? -1 : 1;
|
|
287
|
+
}
|
|
288
|
+
template <class T>
|
|
289
|
+
BOOST_MP_CXX14_CONSTEXPR int compare(const T& i) const
|
|
290
|
+
{
|
|
291
|
+
return m_value == i ? 0 : m_value < i ? -1 : 1;
|
|
292
|
+
}
|
|
293
|
+
BOOST_MP_CXX14_CONSTEXPR float128_type& value()
|
|
294
|
+
{
|
|
295
|
+
return m_value;
|
|
296
|
+
}
|
|
297
|
+
BOOST_MP_CXX14_CONSTEXPR const float128_type& value() const
|
|
298
|
+
{
|
|
299
|
+
return m_value;
|
|
300
|
+
}
|
|
301
|
+
};
|
|
302
|
+
|
|
303
|
+
inline BOOST_MP_CXX14_CONSTEXPR void eval_add(float128_backend& result, const float128_backend& a)
|
|
304
|
+
{
|
|
305
|
+
result.value() += a.value();
|
|
306
|
+
}
|
|
307
|
+
template <class A>
|
|
308
|
+
inline BOOST_MP_CXX14_CONSTEXPR void eval_add(float128_backend& result, const A& a)
|
|
309
|
+
{
|
|
310
|
+
result.value() += a;
|
|
311
|
+
}
|
|
312
|
+
inline BOOST_MP_CXX14_CONSTEXPR void eval_subtract(float128_backend& result, const float128_backend& a)
|
|
313
|
+
{
|
|
314
|
+
result.value() -= a.value();
|
|
315
|
+
}
|
|
316
|
+
template <class A>
|
|
317
|
+
inline BOOST_MP_CXX14_CONSTEXPR void eval_subtract(float128_backend& result, const A& a)
|
|
318
|
+
{
|
|
319
|
+
result.value() -= a;
|
|
320
|
+
}
|
|
321
|
+
inline BOOST_MP_CXX14_CONSTEXPR void eval_multiply(float128_backend& result, const float128_backend& a)
|
|
322
|
+
{
|
|
323
|
+
result.value() *= a.value();
|
|
324
|
+
}
|
|
325
|
+
template <class A>
|
|
326
|
+
inline BOOST_MP_CXX14_CONSTEXPR void eval_multiply(float128_backend& result, const A& a)
|
|
327
|
+
{
|
|
328
|
+
result.value() *= a;
|
|
329
|
+
}
|
|
330
|
+
inline BOOST_MP_CXX14_CONSTEXPR void eval_divide(float128_backend& result, const float128_backend& a)
|
|
331
|
+
{
|
|
332
|
+
result.value() /= a.value();
|
|
333
|
+
}
|
|
334
|
+
template <class A>
|
|
335
|
+
inline BOOST_MP_CXX14_CONSTEXPR void eval_divide(float128_backend& result, const A& a)
|
|
336
|
+
{
|
|
337
|
+
result.value() /= a;
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
inline BOOST_MP_CXX14_CONSTEXPR void eval_add(float128_backend& result, const float128_backend& a, const float128_backend& b)
|
|
341
|
+
{
|
|
342
|
+
result.value() = a.value() + b.value();
|
|
343
|
+
}
|
|
344
|
+
template <class A>
|
|
345
|
+
inline BOOST_MP_CXX14_CONSTEXPR void eval_add(float128_backend& result, const float128_backend& a, const A& b)
|
|
346
|
+
{
|
|
347
|
+
result.value() = a.value() + b;
|
|
348
|
+
}
|
|
349
|
+
inline BOOST_MP_CXX14_CONSTEXPR void eval_subtract(float128_backend& result, const float128_backend& a, const float128_backend& b)
|
|
350
|
+
{
|
|
351
|
+
result.value() = a.value() - b.value();
|
|
352
|
+
}
|
|
353
|
+
template <class A>
|
|
354
|
+
inline BOOST_MP_CXX14_CONSTEXPR void eval_subtract(float128_backend& result, const float128_backend& a, const A& b)
|
|
355
|
+
{
|
|
356
|
+
result.value() = a.value() - b;
|
|
357
|
+
}
|
|
358
|
+
template <class A>
|
|
359
|
+
inline BOOST_MP_CXX14_CONSTEXPR void eval_subtract(float128_backend& result, const A& a, const float128_backend& b)
|
|
360
|
+
{
|
|
361
|
+
result.value() = a - b.value();
|
|
362
|
+
}
|
|
363
|
+
inline BOOST_MP_CXX14_CONSTEXPR void eval_multiply(float128_backend& result, const float128_backend& a, const float128_backend& b)
|
|
364
|
+
{
|
|
365
|
+
result.value() = a.value() * b.value();
|
|
366
|
+
}
|
|
367
|
+
template <class A>
|
|
368
|
+
inline BOOST_MP_CXX14_CONSTEXPR void eval_multiply(float128_backend& result, const float128_backend& a, const A& b)
|
|
369
|
+
{
|
|
370
|
+
result.value() = a.value() * b;
|
|
371
|
+
}
|
|
372
|
+
inline BOOST_MP_CXX14_CONSTEXPR void eval_divide(float128_backend& result, const float128_backend& a, const float128_backend& b)
|
|
373
|
+
{
|
|
374
|
+
result.value() = a.value() / b.value();
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
template <class R>
|
|
378
|
+
inline BOOST_MP_CXX14_CONSTEXPR void eval_convert_to(R* result, const float128_backend& val)
|
|
379
|
+
{
|
|
380
|
+
*result = static_cast<R>(val.value());
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
inline void eval_frexp(float128_backend& result, const float128_backend& arg, int* exp)
|
|
384
|
+
{
|
|
385
|
+
result.value() = frexpq(arg.value(), exp);
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
inline void eval_ldexp(float128_backend& result, const float128_backend& arg, int exp)
|
|
389
|
+
{
|
|
390
|
+
result.value() = ldexpq(arg.value(), exp);
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
inline void eval_floor(float128_backend& result, const float128_backend& arg)
|
|
394
|
+
{
|
|
395
|
+
result.value() = floorq(arg.value());
|
|
396
|
+
}
|
|
397
|
+
inline void eval_ceil(float128_backend& result, const float128_backend& arg)
|
|
398
|
+
{
|
|
399
|
+
result.value() = ceilq(arg.value());
|
|
400
|
+
}
|
|
401
|
+
inline void eval_sqrt(float128_backend& result, const float128_backend& arg)
|
|
402
|
+
{
|
|
403
|
+
result.value() = sqrtq(arg.value());
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
inline void eval_rsqrt(float128_backend& result, const float128_backend& arg)
|
|
407
|
+
{
|
|
408
|
+
#if (LDBL_MANT_DIG > 100)
|
|
409
|
+
// GCC can't mix and match __float128 and quad precision long double
|
|
410
|
+
// error: __float128 and long double cannot be used in the same expression
|
|
411
|
+
result.value() = 1 / sqrtq(arg.value());
|
|
412
|
+
#else
|
|
413
|
+
if (arg.value() < std::numeric_limits<long double>::denorm_min() || arg.value() > (std::numeric_limits<long double>::max)()) {
|
|
414
|
+
result.value() = 1/sqrtq(arg.value());
|
|
415
|
+
return;
|
|
416
|
+
}
|
|
417
|
+
|
|
418
|
+
using std::sqrt;
|
|
419
|
+
float128_backend xk = 1/sqrt(static_cast<long double>(arg.value()));
|
|
420
|
+
|
|
421
|
+
// Newton iteration for f(x) = arg.value() - 1/x^2.
|
|
422
|
+
BOOST_IF_CONSTEXPR (sizeof(long double) == sizeof(double)) {
|
|
423
|
+
// If the long double is the same as a double, then we need two Newton iterations:
|
|
424
|
+
xk.value() = xk.value() + xk.value()*(1-arg.value()*xk.value()*xk.value())/2;
|
|
425
|
+
result.value() = xk.value() + xk.value()*(1-arg.value()*xk.value()*xk.value())/2;
|
|
426
|
+
}
|
|
427
|
+
else
|
|
428
|
+
{
|
|
429
|
+
// 80 bit long double only needs a single iteration to produce ~2ULPs.
|
|
430
|
+
result.value() = xk.value() + xk.value() * (1 - arg.value() * xk.value() * xk.value()) / 2;
|
|
431
|
+
}
|
|
432
|
+
#endif
|
|
433
|
+
}
|
|
434
|
+
#ifndef BOOST_MP_NO_CONSTEXPR_DETECTION
|
|
435
|
+
inline BOOST_MP_CXX14_CONSTEXPR
|
|
436
|
+
#else
|
|
437
|
+
inline
|
|
438
|
+
#endif
|
|
439
|
+
int eval_fpclassify(const float128_backend& arg)
|
|
440
|
+
{
|
|
441
|
+
float128_type v = arg.value();
|
|
442
|
+
#ifndef BOOST_MP_NO_CONSTEXPR_DETECTION
|
|
443
|
+
if (BOOST_MP_IS_CONST_EVALUATED(v))
|
|
444
|
+
{
|
|
445
|
+
if (v != v)
|
|
446
|
+
return FP_NAN;
|
|
447
|
+
if (v == 0)
|
|
448
|
+
return FP_ZERO;
|
|
449
|
+
float128_type t(v);
|
|
450
|
+
if (t < 0)
|
|
451
|
+
t = -t;
|
|
452
|
+
if (t > BOOST_MP_QUAD_MAX)
|
|
453
|
+
return FP_INFINITE;
|
|
454
|
+
if (t < BOOST_MP_QUAD_MIN)
|
|
455
|
+
return FP_SUBNORMAL;
|
|
456
|
+
return FP_NORMAL;
|
|
457
|
+
}
|
|
458
|
+
else
|
|
459
|
+
#endif
|
|
460
|
+
{
|
|
461
|
+
if (isnanq(v))
|
|
462
|
+
return FP_NAN;
|
|
463
|
+
else if (isinfq(v))
|
|
464
|
+
return FP_INFINITE;
|
|
465
|
+
else if (v == 0)
|
|
466
|
+
return FP_ZERO;
|
|
467
|
+
|
|
468
|
+
float128_backend t(arg);
|
|
469
|
+
if (t.value() < 0)
|
|
470
|
+
t.negate();
|
|
471
|
+
if (t.value() < BOOST_MP_QUAD_MIN)
|
|
472
|
+
return FP_SUBNORMAL;
|
|
473
|
+
return FP_NORMAL;
|
|
474
|
+
}
|
|
475
|
+
}
|
|
476
|
+
#if defined(BOOST_GCC) && (__GNUC__ == 9)
|
|
477
|
+
// See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91705
|
|
478
|
+
inline BOOST_MP_CXX14_CONSTEXPR void eval_increment(float128_backend& arg)
|
|
479
|
+
{
|
|
480
|
+
arg.value() = 1 + arg.value();
|
|
481
|
+
}
|
|
482
|
+
inline BOOST_MP_CXX14_CONSTEXPR void eval_decrement(float128_backend& arg)
|
|
483
|
+
{
|
|
484
|
+
arg.value() = arg.value() - 1;
|
|
485
|
+
}
|
|
486
|
+
#else
|
|
487
|
+
inline BOOST_MP_CXX14_CONSTEXPR void eval_increment(float128_backend& arg)
|
|
488
|
+
{
|
|
489
|
+
++arg.value();
|
|
490
|
+
}
|
|
491
|
+
inline BOOST_MP_CXX14_CONSTEXPR void eval_decrement(float128_backend& arg)
|
|
492
|
+
{
|
|
493
|
+
--arg.value();
|
|
494
|
+
}
|
|
495
|
+
#endif
|
|
496
|
+
|
|
497
|
+
/*********************************************************************
|
|
498
|
+
*
|
|
499
|
+
* abs/fabs:
|
|
500
|
+
*
|
|
501
|
+
*********************************************************************/
|
|
502
|
+
|
|
503
|
+
#ifndef BOOST_MP_NO_CONSTEXPR_DETECTION
|
|
504
|
+
inline BOOST_MP_CXX14_CONSTEXPR void eval_abs(float128_backend& result, const float128_backend& arg)
|
|
505
|
+
#else
|
|
506
|
+
inline void eval_abs(float128_backend& result, const float128_backend& arg)
|
|
507
|
+
#endif
|
|
508
|
+
{
|
|
509
|
+
#ifndef BOOST_MP_NO_CONSTEXPR_DETECTION
|
|
510
|
+
float128_type v(arg.value());
|
|
511
|
+
if (BOOST_MP_IS_CONST_EVALUATED(v))
|
|
512
|
+
{
|
|
513
|
+
result.value() = v < 0 ? -v : v;
|
|
514
|
+
}
|
|
515
|
+
else
|
|
516
|
+
#endif
|
|
517
|
+
{
|
|
518
|
+
result.value() = fabsq(arg.value());
|
|
519
|
+
}
|
|
520
|
+
}
|
|
521
|
+
#ifndef BOOST_MP_NO_CONSTEXPR_DETECTION
|
|
522
|
+
inline BOOST_MP_CXX14_CONSTEXPR void eval_fabs(float128_backend& result, const float128_backend& arg)
|
|
523
|
+
#else
|
|
524
|
+
inline void eval_fabs(float128_backend& result, const float128_backend& arg)
|
|
525
|
+
#endif
|
|
526
|
+
{
|
|
527
|
+
#ifndef BOOST_MP_NO_CONSTEXPR_DETECTION
|
|
528
|
+
float128_type v(arg.value());
|
|
529
|
+
if (BOOST_MP_IS_CONST_EVALUATED(v))
|
|
530
|
+
{
|
|
531
|
+
result.value() = v < 0 ? -v : v;
|
|
532
|
+
}
|
|
533
|
+
else
|
|
534
|
+
#endif
|
|
535
|
+
{
|
|
536
|
+
result.value() = fabsq(arg.value());
|
|
537
|
+
}
|
|
538
|
+
}
|
|
539
|
+
|
|
540
|
+
/*********************************************************************
|
|
541
|
+
*
|
|
542
|
+
* Floating point functions:
|
|
543
|
+
*
|
|
544
|
+
*********************************************************************/
|
|
545
|
+
|
|
546
|
+
inline void eval_trunc(float128_backend& result, const float128_backend& arg)
|
|
547
|
+
{
|
|
548
|
+
result.value() = truncq(arg.value());
|
|
549
|
+
}
|
|
550
|
+
/*
|
|
551
|
+
//
|
|
552
|
+
// This doesn't actually work... rely on our own default version instead.
|
|
553
|
+
//
|
|
554
|
+
inline void eval_round(float128_backend& result, const float128_backend& arg)
|
|
555
|
+
{
|
|
556
|
+
if(isnanq(arg.value()) || isinf(arg.value()))
|
|
557
|
+
{
|
|
558
|
+
result = boost::math::policies::raise_rounding_error(
|
|
559
|
+
"boost::multiprecision::trunc<%1%>(%1%)", nullptr,
|
|
560
|
+
number<float128_backend, et_off>(arg),
|
|
561
|
+
number<float128_backend, et_off>(arg),
|
|
562
|
+
boost::math::policies::policy<>()).backend();
|
|
563
|
+
return;
|
|
564
|
+
}
|
|
565
|
+
result.value() = roundq(arg.value());
|
|
566
|
+
}
|
|
567
|
+
*/
|
|
568
|
+
|
|
569
|
+
inline void eval_exp(float128_backend& result, const float128_backend& arg)
|
|
570
|
+
{
|
|
571
|
+
result.value() = expq(arg.value());
|
|
572
|
+
}
|
|
573
|
+
inline void eval_log(float128_backend& result, const float128_backend& arg)
|
|
574
|
+
{
|
|
575
|
+
result.value() = logq(arg.value());
|
|
576
|
+
}
|
|
577
|
+
inline void eval_log10(float128_backend& result, const float128_backend& arg)
|
|
578
|
+
{
|
|
579
|
+
result.value() = log10q(arg.value());
|
|
580
|
+
}
|
|
581
|
+
inline void eval_sin(float128_backend& result, const float128_backend& arg)
|
|
582
|
+
{
|
|
583
|
+
result.value() = sinq(arg.value());
|
|
584
|
+
}
|
|
585
|
+
inline void eval_cos(float128_backend& result, const float128_backend& arg)
|
|
586
|
+
{
|
|
587
|
+
result.value() = cosq(arg.value());
|
|
588
|
+
}
|
|
589
|
+
inline void eval_tan(float128_backend& result, const float128_backend& arg)
|
|
590
|
+
{
|
|
591
|
+
result.value() = tanq(arg.value());
|
|
592
|
+
}
|
|
593
|
+
inline void eval_asin(float128_backend& result, const float128_backend& arg)
|
|
594
|
+
{
|
|
595
|
+
result.value() = asinq(arg.value());
|
|
596
|
+
}
|
|
597
|
+
inline void eval_acos(float128_backend& result, const float128_backend& arg)
|
|
598
|
+
{
|
|
599
|
+
result.value() = acosq(arg.value());
|
|
600
|
+
}
|
|
601
|
+
inline void eval_atan(float128_backend& result, const float128_backend& arg)
|
|
602
|
+
{
|
|
603
|
+
result.value() = atanq(arg.value());
|
|
604
|
+
}
|
|
605
|
+
inline void eval_sinh(float128_backend& result, const float128_backend& arg)
|
|
606
|
+
{
|
|
607
|
+
result.value() = sinhq(arg.value());
|
|
608
|
+
}
|
|
609
|
+
inline void eval_cosh(float128_backend& result, const float128_backend& arg)
|
|
610
|
+
{
|
|
611
|
+
result.value() = coshq(arg.value());
|
|
612
|
+
}
|
|
613
|
+
inline void eval_tanh(float128_backend& result, const float128_backend& arg)
|
|
614
|
+
{
|
|
615
|
+
result.value() = tanhq(arg.value());
|
|
616
|
+
}
|
|
617
|
+
inline void eval_fmod(float128_backend& result, const float128_backend& a, const float128_backend& b)
|
|
618
|
+
{
|
|
619
|
+
result.value() = fmodq(a.value(), b.value());
|
|
620
|
+
}
|
|
621
|
+
inline void eval_pow(float128_backend& result, const float128_backend& a, const float128_backend& b)
|
|
622
|
+
{
|
|
623
|
+
result.value() = powq(a.value(), b.value());
|
|
624
|
+
}
|
|
625
|
+
inline void eval_atan2(float128_backend& result, const float128_backend& a, const float128_backend& b)
|
|
626
|
+
{
|
|
627
|
+
result.value() = atan2q(a.value(), b.value());
|
|
628
|
+
}
|
|
629
|
+
#ifndef BOOST_MP_USE_QUAD
|
|
630
|
+
inline void eval_multiply_add(float128_backend& result, const float128_backend& a, const float128_backend& b, const float128_backend& c)
|
|
631
|
+
{
|
|
632
|
+
result.value() = fmaq(a.value(), b.value(), c.value());
|
|
633
|
+
}
|
|
634
|
+
inline int eval_signbit BOOST_PREVENT_MACRO_SUBSTITUTION(const float128_backend& arg)
|
|
635
|
+
{
|
|
636
|
+
return ::signbitq(arg.value());
|
|
637
|
+
}
|
|
638
|
+
#endif
|
|
639
|
+
|
|
640
|
+
inline std::size_t hash_value(const float128_backend& val)
|
|
641
|
+
{
|
|
642
|
+
return boost::multiprecision::detail::hash_value(static_cast<double>(val.value()));
|
|
643
|
+
}
|
|
644
|
+
|
|
645
|
+
} // namespace backends
|
|
646
|
+
|
|
647
|
+
template <boost::multiprecision::expression_template_option ExpressionTemplates>
|
|
648
|
+
inline boost::multiprecision::number<float128_backend, ExpressionTemplates> asinh BOOST_PREVENT_MACRO_SUBSTITUTION(const boost::multiprecision::number<float128_backend, ExpressionTemplates>& arg)
|
|
649
|
+
{
|
|
650
|
+
return asinhq(arg.backend().value());
|
|
651
|
+
}
|
|
652
|
+
template <boost::multiprecision::expression_template_option ExpressionTemplates>
|
|
653
|
+
inline boost::multiprecision::number<float128_backend, ExpressionTemplates> acosh BOOST_PREVENT_MACRO_SUBSTITUTION(const boost::multiprecision::number<float128_backend, ExpressionTemplates>& arg)
|
|
654
|
+
{
|
|
655
|
+
return acoshq(arg.backend().value());
|
|
656
|
+
}
|
|
657
|
+
template <boost::multiprecision::expression_template_option ExpressionTemplates>
|
|
658
|
+
inline boost::multiprecision::number<float128_backend, ExpressionTemplates> atanh BOOST_PREVENT_MACRO_SUBSTITUTION(const boost::multiprecision::number<float128_backend, ExpressionTemplates>& arg)
|
|
659
|
+
{
|
|
660
|
+
return atanhq(arg.backend().value());
|
|
661
|
+
}
|
|
662
|
+
template <boost::multiprecision::expression_template_option ExpressionTemplates>
|
|
663
|
+
inline boost::multiprecision::number<float128_backend, ExpressionTemplates> cbrt BOOST_PREVENT_MACRO_SUBSTITUTION(const boost::multiprecision::number<float128_backend, ExpressionTemplates>& arg)
|
|
664
|
+
{
|
|
665
|
+
return cbrtq(arg.backend().value());
|
|
666
|
+
}
|
|
667
|
+
template <boost::multiprecision::expression_template_option ExpressionTemplates>
|
|
668
|
+
inline boost::multiprecision::number<float128_backend, ExpressionTemplates> erf BOOST_PREVENT_MACRO_SUBSTITUTION(const boost::multiprecision::number<float128_backend, ExpressionTemplates>& arg)
|
|
669
|
+
{
|
|
670
|
+
return erfq(arg.backend().value());
|
|
671
|
+
}
|
|
672
|
+
template <boost::multiprecision::expression_template_option ExpressionTemplates>
|
|
673
|
+
inline boost::multiprecision::number<float128_backend, ExpressionTemplates> erfc BOOST_PREVENT_MACRO_SUBSTITUTION(const boost::multiprecision::number<float128_backend, ExpressionTemplates>& arg)
|
|
674
|
+
{
|
|
675
|
+
return erfcq(arg.backend().value());
|
|
676
|
+
}
|
|
677
|
+
template <boost::multiprecision::expression_template_option ExpressionTemplates>
|
|
678
|
+
inline boost::multiprecision::number<float128_backend, ExpressionTemplates> expm1 BOOST_PREVENT_MACRO_SUBSTITUTION(const boost::multiprecision::number<float128_backend, ExpressionTemplates>& arg)
|
|
679
|
+
{
|
|
680
|
+
return expm1q(arg.backend().value());
|
|
681
|
+
}
|
|
682
|
+
template <boost::multiprecision::expression_template_option ExpressionTemplates>
|
|
683
|
+
inline boost::multiprecision::number<float128_backend, ExpressionTemplates> lgamma BOOST_PREVENT_MACRO_SUBSTITUTION(const boost::multiprecision::number<float128_backend, ExpressionTemplates>& arg)
|
|
684
|
+
{
|
|
685
|
+
return lgammaq(arg.backend().value());
|
|
686
|
+
}
|
|
687
|
+
template <boost::multiprecision::expression_template_option ExpressionTemplates>
|
|
688
|
+
inline boost::multiprecision::number<float128_backend, ExpressionTemplates> tgamma BOOST_PREVENT_MACRO_SUBSTITUTION(const boost::multiprecision::number<float128_backend, ExpressionTemplates>& arg)
|
|
689
|
+
{
|
|
690
|
+
if(eval_signbit(arg.backend()) != 0)
|
|
691
|
+
{
|
|
692
|
+
const bool result_is_neg = ((static_cast<unsigned long long>(floorq(-arg.backend().value())) % 2U) == 0U);
|
|
693
|
+
|
|
694
|
+
const boost::multiprecision::number<float128_backend, ExpressionTemplates> result_of_tgammaq = fabsq(tgammaq(arg.backend().value()));
|
|
695
|
+
|
|
696
|
+
return ((result_is_neg == false) ? result_of_tgammaq : -result_of_tgammaq);
|
|
697
|
+
}
|
|
698
|
+
else
|
|
699
|
+
{
|
|
700
|
+
return tgammaq(arg.backend().value());
|
|
701
|
+
}
|
|
702
|
+
}
|
|
703
|
+
template <boost::multiprecision::expression_template_option ExpressionTemplates>
|
|
704
|
+
inline boost::multiprecision::number<float128_backend, ExpressionTemplates> log1p BOOST_PREVENT_MACRO_SUBSTITUTION(const boost::multiprecision::number<float128_backend, ExpressionTemplates>& arg)
|
|
705
|
+
{
|
|
706
|
+
return log1pq(arg.backend().value());
|
|
707
|
+
}
|
|
708
|
+
template <boost::multiprecision::expression_template_option ExpressionTemplates>
|
|
709
|
+
inline boost::multiprecision::number<float128_backend, ExpressionTemplates> rsqrt BOOST_PREVENT_MACRO_SUBSTITUTION(const boost::multiprecision::number<float128_backend, ExpressionTemplates>& arg)
|
|
710
|
+
{
|
|
711
|
+
boost::multiprecision::number<float128_backend, ExpressionTemplates> res;
|
|
712
|
+
eval_rsqrt(res.backend(), arg.backend());
|
|
713
|
+
return res;
|
|
714
|
+
}
|
|
715
|
+
|
|
716
|
+
#ifndef BOOST_MP_USE_QUAD
|
|
717
|
+
template <multiprecision::expression_template_option ExpressionTemplates>
|
|
718
|
+
inline boost::multiprecision::number<boost::multiprecision::backends::float128_backend, ExpressionTemplates> copysign BOOST_PREVENT_MACRO_SUBSTITUTION(const boost::multiprecision::number<boost::multiprecision::backends::float128_backend, ExpressionTemplates>& a, const boost::multiprecision::number<boost::multiprecision::backends::float128_backend, ExpressionTemplates>& b)
|
|
719
|
+
{
|
|
720
|
+
return ::copysignq(a.backend().value(), b.backend().value());
|
|
721
|
+
}
|
|
722
|
+
|
|
723
|
+
namespace backends {
|
|
724
|
+
|
|
725
|
+
inline void eval_remainder(float128_backend& result, const float128_backend& a, const float128_backend& b)
|
|
726
|
+
{
|
|
727
|
+
result.value() = remainderq(a.value(), b.value());
|
|
728
|
+
}
|
|
729
|
+
inline void eval_remainder(float128_backend& result, const float128_backend& a, const float128_backend& b, int* pi)
|
|
730
|
+
{
|
|
731
|
+
result.value() = remquoq(a.value(), b.value(), pi);
|
|
732
|
+
}
|
|
733
|
+
} // namespace backends
|
|
734
|
+
|
|
735
|
+
#endif
|
|
736
|
+
|
|
737
|
+
} // namespace multiprecision
|
|
738
|
+
|
|
739
|
+
namespace math {
|
|
740
|
+
|
|
741
|
+
using boost::multiprecision::copysign;
|
|
742
|
+
using boost::multiprecision::signbit;
|
|
743
|
+
|
|
744
|
+
} // namespace math
|
|
745
|
+
|
|
746
|
+
} // namespace boost
|
|
747
|
+
|
|
748
|
+
#ifndef BOOST_MP_STANDALONE
|
|
749
|
+
namespace boost {
|
|
750
|
+
namespace archive {
|
|
751
|
+
|
|
752
|
+
class binary_oarchive;
|
|
753
|
+
class binary_iarchive;
|
|
754
|
+
|
|
755
|
+
} // namespace archive
|
|
756
|
+
|
|
757
|
+
namespace serialization {
|
|
758
|
+
namespace float128_detail {
|
|
759
|
+
|
|
760
|
+
template <class Archive>
|
|
761
|
+
void do_serialize(Archive& ar, boost::multiprecision::backends::float128_backend& val, const std::integral_constant<bool, false>&, const std::integral_constant<bool, false>&)
|
|
762
|
+
{
|
|
763
|
+
// saving
|
|
764
|
+
// non-binary
|
|
765
|
+
std::string s(val.str(0, std::ios_base::scientific));
|
|
766
|
+
ar& boost::make_nvp("value", s);
|
|
767
|
+
}
|
|
768
|
+
template <class Archive>
|
|
769
|
+
void do_serialize(Archive& ar, boost::multiprecision::backends::float128_backend& val, const std::integral_constant<bool, true>&, const std::integral_constant<bool, false>&)
|
|
770
|
+
{
|
|
771
|
+
// loading
|
|
772
|
+
// non-binary
|
|
773
|
+
std::string s;
|
|
774
|
+
ar& boost::make_nvp("value", s);
|
|
775
|
+
val = s.c_str();
|
|
776
|
+
}
|
|
777
|
+
|
|
778
|
+
template <class Archive>
|
|
779
|
+
void do_serialize(Archive& ar, boost::multiprecision::backends::float128_backend& val, const std::integral_constant<bool, false>&, const std::integral_constant<bool, true>&)
|
|
780
|
+
{
|
|
781
|
+
// saving
|
|
782
|
+
// binary
|
|
783
|
+
ar.save_binary(&val, sizeof(val));
|
|
784
|
+
}
|
|
785
|
+
template <class Archive>
|
|
786
|
+
void do_serialize(Archive& ar, boost::multiprecision::backends::float128_backend& val, const std::integral_constant<bool, true>&, const std::integral_constant<bool, true>&)
|
|
787
|
+
{
|
|
788
|
+
// loading
|
|
789
|
+
// binary
|
|
790
|
+
ar.load_binary(&val, sizeof(val));
|
|
791
|
+
}
|
|
792
|
+
|
|
793
|
+
} // namespace float128_detail
|
|
794
|
+
|
|
795
|
+
template <class Archive>
|
|
796
|
+
void serialize(Archive& ar, boost::multiprecision::backends::float128_backend& val, unsigned int /*version*/)
|
|
797
|
+
{
|
|
798
|
+
using load_tag = typename Archive::is_loading ;
|
|
799
|
+
using loading = std::integral_constant<bool, load_tag::value> ;
|
|
800
|
+
using binary_tag = typename std::integral_constant<bool, std::is_same<Archive, boost::archive::binary_oarchive>::value || std::is_same<Archive, boost::archive::binary_iarchive>::value>;
|
|
801
|
+
|
|
802
|
+
float128_detail::do_serialize(ar, val, loading(), binary_tag());
|
|
803
|
+
}
|
|
804
|
+
|
|
805
|
+
} // namespace serialization
|
|
806
|
+
|
|
807
|
+
} // namespace boost
|
|
808
|
+
#endif // BOOST_MP_STANDALONE
|
|
809
|
+
|
|
810
|
+
namespace std {
|
|
811
|
+
|
|
812
|
+
template <boost::multiprecision::expression_template_option ExpressionTemplates>
|
|
813
|
+
class numeric_limits<boost::multiprecision::number<boost::multiprecision::backends::float128_backend, ExpressionTemplates> >
|
|
814
|
+
{
|
|
815
|
+
using number_type = boost::multiprecision::number<boost::multiprecision::backends::float128_backend, ExpressionTemplates>;
|
|
816
|
+
|
|
817
|
+
public:
|
|
818
|
+
static constexpr bool is_specialized = true;
|
|
819
|
+
static BOOST_MP_CXX14_CONSTEXPR number_type(min)() noexcept { return BOOST_MP_QUAD_MIN; }
|
|
820
|
+
static BOOST_MP_CXX14_CONSTEXPR number_type(max)() noexcept { return BOOST_MP_QUAD_MAX; }
|
|
821
|
+
static BOOST_MP_CXX14_CONSTEXPR number_type lowest() noexcept { return -(max)(); }
|
|
822
|
+
static constexpr int digits = 113;
|
|
823
|
+
static constexpr int digits10 = 33;
|
|
824
|
+
static constexpr int max_digits10 = 36;
|
|
825
|
+
static constexpr bool is_signed = true;
|
|
826
|
+
static constexpr bool is_integer = false;
|
|
827
|
+
static constexpr bool is_exact = false;
|
|
828
|
+
static constexpr int radix = 2;
|
|
829
|
+
static BOOST_MP_CXX14_CONSTEXPR number_type epsilon() { return 1.92592994438723585305597794258492732e-34; /* this double value has only one bit set and so is exact */ }
|
|
830
|
+
static BOOST_MP_CXX14_CONSTEXPR number_type round_error() { return 0.5; }
|
|
831
|
+
static constexpr int min_exponent = -16381;
|
|
832
|
+
static constexpr int min_exponent10 = min_exponent * 301L / 1000L;
|
|
833
|
+
static constexpr int max_exponent = 16384;
|
|
834
|
+
static constexpr int max_exponent10 = max_exponent * 301L / 1000L;
|
|
835
|
+
static constexpr bool has_infinity = true;
|
|
836
|
+
static constexpr bool has_quiet_NaN = true;
|
|
837
|
+
static constexpr bool has_signaling_NaN = false;
|
|
838
|
+
#ifdef _MSC_VER
|
|
839
|
+
#pragma warning(push)
|
|
840
|
+
#pragma warning(disable : 4996)
|
|
841
|
+
#endif
|
|
842
|
+
static constexpr float_denorm_style has_denorm = denorm_present;
|
|
843
|
+
#ifdef _MSC_VER
|
|
844
|
+
#pragma warning(pop)
|
|
845
|
+
#endif
|
|
846
|
+
static constexpr bool has_denorm_loss = true;
|
|
847
|
+
static BOOST_MP_CXX14_CONSTEXPR number_type infinity() { return HUGE_VAL; /* conversion from double infinity OK */ }
|
|
848
|
+
static BOOST_MP_CXX14_CONSTEXPR number_type quiet_NaN() { return number_type(NAN); }
|
|
849
|
+
static BOOST_MP_CXX14_CONSTEXPR number_type signaling_NaN() { return 0; }
|
|
850
|
+
static BOOST_MP_CXX14_CONSTEXPR number_type denorm_min() { return BOOST_MP_QUAD_DENORM_MIN; }
|
|
851
|
+
static constexpr bool is_iec559 = true;
|
|
852
|
+
static constexpr bool is_bounded = true;
|
|
853
|
+
static constexpr bool is_modulo = false;
|
|
854
|
+
static constexpr bool traps = false;
|
|
855
|
+
static constexpr bool tinyness_before = false;
|
|
856
|
+
static constexpr float_round_style round_style = round_to_nearest;
|
|
857
|
+
};
|
|
858
|
+
|
|
859
|
+
template <boost::multiprecision::expression_template_option ExpressionTemplates>
|
|
860
|
+
constexpr bool numeric_limits<boost::multiprecision::number<boost::multiprecision::backends::float128_backend, ExpressionTemplates> >::is_specialized;
|
|
861
|
+
template <boost::multiprecision::expression_template_option ExpressionTemplates>
|
|
862
|
+
constexpr int numeric_limits<boost::multiprecision::number<boost::multiprecision::backends::float128_backend, ExpressionTemplates> >::digits;
|
|
863
|
+
template <boost::multiprecision::expression_template_option ExpressionTemplates>
|
|
864
|
+
constexpr int numeric_limits<boost::multiprecision::number<boost::multiprecision::backends::float128_backend, ExpressionTemplates> >::digits10;
|
|
865
|
+
template <boost::multiprecision::expression_template_option ExpressionTemplates>
|
|
866
|
+
constexpr int numeric_limits<boost::multiprecision::number<boost::multiprecision::backends::float128_backend, ExpressionTemplates> >::max_digits10;
|
|
867
|
+
|
|
868
|
+
template <boost::multiprecision::expression_template_option ExpressionTemplates>
|
|
869
|
+
constexpr bool numeric_limits<boost::multiprecision::number<boost::multiprecision::backends::float128_backend, ExpressionTemplates> >::is_signed;
|
|
870
|
+
template <boost::multiprecision::expression_template_option ExpressionTemplates>
|
|
871
|
+
constexpr bool numeric_limits<boost::multiprecision::number<boost::multiprecision::backends::float128_backend, ExpressionTemplates> >::is_integer;
|
|
872
|
+
template <boost::multiprecision::expression_template_option ExpressionTemplates>
|
|
873
|
+
constexpr bool numeric_limits<boost::multiprecision::number<boost::multiprecision::backends::float128_backend, ExpressionTemplates> >::is_exact;
|
|
874
|
+
template <boost::multiprecision::expression_template_option ExpressionTemplates>
|
|
875
|
+
constexpr int numeric_limits<boost::multiprecision::number<boost::multiprecision::backends::float128_backend, ExpressionTemplates> >::radix;
|
|
876
|
+
|
|
877
|
+
template <boost::multiprecision::expression_template_option ExpressionTemplates>
|
|
878
|
+
constexpr int numeric_limits<boost::multiprecision::number<boost::multiprecision::backends::float128_backend, ExpressionTemplates> >::min_exponent;
|
|
879
|
+
template <boost::multiprecision::expression_template_option ExpressionTemplates>
|
|
880
|
+
constexpr int numeric_limits<boost::multiprecision::number<boost::multiprecision::backends::float128_backend, ExpressionTemplates> >::max_exponent;
|
|
881
|
+
template <boost::multiprecision::expression_template_option ExpressionTemplates>
|
|
882
|
+
constexpr int numeric_limits<boost::multiprecision::number<boost::multiprecision::backends::float128_backend, ExpressionTemplates> >::min_exponent10;
|
|
883
|
+
template <boost::multiprecision::expression_template_option ExpressionTemplates>
|
|
884
|
+
constexpr int numeric_limits<boost::multiprecision::number<boost::multiprecision::backends::float128_backend, ExpressionTemplates> >::max_exponent10;
|
|
885
|
+
|
|
886
|
+
template <boost::multiprecision::expression_template_option ExpressionTemplates>
|
|
887
|
+
constexpr bool numeric_limits<boost::multiprecision::number<boost::multiprecision::backends::float128_backend, ExpressionTemplates> >::has_infinity;
|
|
888
|
+
template <boost::multiprecision::expression_template_option ExpressionTemplates>
|
|
889
|
+
constexpr bool numeric_limits<boost::multiprecision::number<boost::multiprecision::backends::float128_backend, ExpressionTemplates> >::has_quiet_NaN;
|
|
890
|
+
template <boost::multiprecision::expression_template_option ExpressionTemplates>
|
|
891
|
+
constexpr bool numeric_limits<boost::multiprecision::number<boost::multiprecision::backends::float128_backend, ExpressionTemplates> >::has_signaling_NaN;
|
|
892
|
+
template <boost::multiprecision::expression_template_option ExpressionTemplates>
|
|
893
|
+
constexpr bool numeric_limits<boost::multiprecision::number<boost::multiprecision::backends::float128_backend, ExpressionTemplates> >::has_denorm_loss;
|
|
894
|
+
|
|
895
|
+
template <boost::multiprecision::expression_template_option ExpressionTemplates>
|
|
896
|
+
constexpr bool numeric_limits<boost::multiprecision::number<boost::multiprecision::backends::float128_backend, ExpressionTemplates> >::is_iec559;
|
|
897
|
+
template <boost::multiprecision::expression_template_option ExpressionTemplates>
|
|
898
|
+
constexpr bool numeric_limits<boost::multiprecision::number<boost::multiprecision::backends::float128_backend, ExpressionTemplates> >::is_bounded;
|
|
899
|
+
template <boost::multiprecision::expression_template_option ExpressionTemplates>
|
|
900
|
+
constexpr bool numeric_limits<boost::multiprecision::number<boost::multiprecision::backends::float128_backend, ExpressionTemplates> >::is_modulo;
|
|
901
|
+
template <boost::multiprecision::expression_template_option ExpressionTemplates>
|
|
902
|
+
constexpr bool numeric_limits<boost::multiprecision::number<boost::multiprecision::backends::float128_backend, ExpressionTemplates> >::traps;
|
|
903
|
+
template <boost::multiprecision::expression_template_option ExpressionTemplates>
|
|
904
|
+
constexpr bool numeric_limits<boost::multiprecision::number<boost::multiprecision::backends::float128_backend, ExpressionTemplates> >::tinyness_before;
|
|
905
|
+
|
|
906
|
+
template <boost::multiprecision::expression_template_option ExpressionTemplates>
|
|
907
|
+
constexpr float_round_style numeric_limits<boost::multiprecision::number<boost::multiprecision::backends::float128_backend, ExpressionTemplates> >::round_style;
|
|
908
|
+
#ifdef _MSC_VER
|
|
909
|
+
#pragma warning(push)
|
|
910
|
+
#pragma warning(disable : 4996)
|
|
911
|
+
#endif
|
|
912
|
+
template <boost::multiprecision::expression_template_option ExpressionTemplates>
|
|
913
|
+
constexpr float_denorm_style numeric_limits<boost::multiprecision::number<boost::multiprecision::backends::float128_backend, ExpressionTemplates> >::has_denorm;
|
|
914
|
+
#ifdef _MSC_VER
|
|
915
|
+
#pragma warning(pop)
|
|
916
|
+
#endif
|
|
917
|
+
|
|
918
|
+
} // namespace std
|
|
919
|
+
|
|
920
|
+
#endif
|