Skip to content

armgit / BUI

Public Imported from GitHub
0

Blender's GPU Accelerated UI, Decoupled from it's original codebase. Supports Rust, Python, JS, React, C & C++. Twice as good as GPUI

777 B
Raw Blame
/* SPDX-FileCopyrightText: 2023 Blender Authors
 *
 * SPDX-License-Identifier: GPL-2.0-or-later */

#pragma once

/** \file
 * \ingroup bli
 */

#ifdef WITH_GMP

/* This file uses an external file header to define the multi-precision
 * rational type, mpq_class.
 * This class keeps separate multi-precision integer numerator and
 * denominator, reduced to lowest terms after each arithmetic operation.
 * It can be used where it is important to have exact arithmetic results.
 *
 * See gmplib.org for full documentation. In particular:
 * https://gmplib.org/manual/C_002b_002b-Interface-Rationals
 */
#  include "gmpxx.h"

#  include "BLI_math_base.hh"

namespace blender::math {
template<> inline constexpr bool is_math_float_type<mpq_class> = true;
}

#endif /* WITH_GMP */