Honeycomb  0.1
Component-Model Framework
Numeral.h
Go to the documentation of this file.
1 // Honeycomb, Copyright (C) 2013 Daniel Carter. Distributed under the Boost Software License v1.0.
2 #pragma once
3 
5 namespace honey
6 {
7 
8 namespace numeral_priv
9 {
10  template<> struct Info<float128>
11  {
12  typedef int128 Int;
13  typedef float128 Real;
14  typedef Quad_ Real_;
15 
16  Info() :
17  min( -1.7976931348623158e+308),
18  max( 1.7976931348623158e+308),
19  smallest( 2.2250738585072014e-308),
20  epsilon( 2.2204460492503131e-016),
21  one( 1.0),
22  inf( 1.0 / (1.0 - one)),
23  nan( 0.0 / (1.0 - one)) {}
24 
25  const float128 min;
26  const float128 max;
27  const float128 smallest;
28  const float128 epsilon;
29  const float128 one;
30  const float128 inf;
31  const float128 nan;
32  };
33 }
34 
35 template<> class Numeral<float128> : public NumeralFloat<float128> {};
36 
37 }
long double float128
128 bit float type
Definition: Core.h:32
float Real
Real number type. See Real_ for real number operations and constants.
Definition: Real.h:21
int64 int128
Definition: Core.h:24
Numeral< Real >::Real_ Real_
Operations and constants for Real type. See Float_, Double_.
Definition: Real.h:25
Global Honeycomb namespace.