1 #ifndef realroot_NUMERICS_HDWI_H
2 #define realroot_NUMERICS_HDWI_H
21 {
static const int nbit =
sizeof(unsigned)*8*3; };
24 {
static const int nbit =
sizeof(double)*8; };
29 unsigned bitprec(
const T& e,
const T& l = T(1.0) )
33 while ( tmp > e ) { tmp/=2; b++; };
37 template<
typename hdwi,
unsigned n>
39 template<
typename T,
unsigned n>
41 template<
typename hdwi>
46 template<
class hardware_
int >
52 static const unsigned nbit =
sizeof(hardware_int)*8;
53 static const hardware_int
nmax;
57 for (
unsigned i = 0; i <
nbit; i ++ )
65 static void reverse(
unsigned h, hdw_int& a)
70 for ( i = 0; i < h; i ++ )
79 template<
class T>
const T
hdwi<T>::nmax( hdwimax<T,
sizeof(T)*8>::result );
81 template<
class unsigned_t>
82 void sal( unsigned_t& a,
unsigned n )
107 template<
typename unsigned_t>
108 void hsal(
unsigned& ha, unsigned_t& a,
unsigned& hb, unsigned_t&
b )
110 if ( ha == hb )
return;
116 else hsal(hb,b,ha,a);
Definition: numerics_hdwi.hpp:45
static const bool result
Definition: numerics_hdwi.hpp:11
Definition: numerics_hdwi.hpp:11
const C & b
Definition: Interval_glue.hpp:25
texp::true_t result_t
Definition: numerics_hdwi.hpp:17
static hdw_int reverse(hdw_int a)
Definition: numerics_hdwi.hpp:54
void hsal(unsigned &ha, unsigned_t &a, unsigned &hb, unsigned_t &b)
Definition: numerics_hdwi.hpp:108
texp::true_t result_t
Definition: numerics_hdwi.hpp:13
void sal(unsigned_t &a, unsigned n)
Definition: numerics_hdwi.hpp:82
static const unsigned nbit
Definition: numerics_hdwi.hpp:52
Definition: numerics_hdwi.hpp:38
hardware_int hdw_int
Definition: numerics_hdwi.hpp:50
texp::false_t result_t
Definition: numerics_hdwi.hpp:11
static const int nbit
Definition: numerics_hdwi.hpp:21
Definition: numerics_hdwi.hpp:20
structure defining a positive answer
Definition: texp_bool.hpp:7
static void reverse(unsigned h, hdw_int &a)
Definition: numerics_hdwi.hpp:65
static const hdwi result
Definition: numerics_hdwi.hpp:42
static const hdwi result
Definition: numerics_hdwi.hpp:38
texp::true_t result_t
Definition: numerics_hdwi.hpp:15
Definition: numerics_hdwi.hpp:47
unsigned bitprec(const T &e, const T &l=T(1.0))
Definition: numerics_hdwi.hpp:29
const C & c
Definition: Interval_glue.hpp:45
static const bool result
Definition: numerics_hdwi.hpp:45
structure defining a negative answer
Definition: texp_bool.hpp:9
static const hardware_int nmax
Definition: numerics_hdwi.hpp:53
#define assert(expr, msg)
Definition: shared_object.hpp:57