File: Float.h

package info (click to toggle)
pentobi 29.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,892 kB
  • sloc: cpp: 25,719; javascript: 875; xml: 40; makefile: 13; sh: 6
file content (28 lines) | stat: -rw-r--r-- 796 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
//-----------------------------------------------------------------------------
/** @file libpentobi_mcts/Float.h
    @author Markus Enzenberger
    @copyright GNU General Public License version 3 or later */
//-----------------------------------------------------------------------------

#ifndef LIBPENTOBI_MCTS_FLOAT_H
#define LIBPENTOBI_MCTS_FLOAT_H

#include <type_traits>

namespace libpentobi_mcts {

//-----------------------------------------------------------------------------

#ifdef LIBPENTOBI_MCTS_FLOAT_TYPE
using Float = LIBPENTOBI_MCTS_FLOAT_TYPE;
#else
using Float = float;
#endif

static_assert(std::is_floating_point_v<Float>);

//-----------------------------------------------------------------------------

} // namespace libpentobi_mcts

#endif // LIBPENTOBI_MCTS_FLOAT_H