2013-08-07 02:52:53 +00:00
|
|
|
/*
|
|
|
|
Copyright (c) 2013 Microsoft Corporation. All rights reserved.
|
|
|
|
Released under Apache 2.0 license as described in the file LICENSE.
|
|
|
|
|
|
|
|
Author: Soonho Kong
|
|
|
|
*/
|
|
|
|
#include "numeric_traits.h"
|
|
|
|
#include "double.h"
|
|
|
|
#include <cmath>
|
|
|
|
|
|
|
|
namespace lean {
|
|
|
|
|
2013-08-08 02:26:10 +00:00
|
|
|
thread_local mpfr_rnd_t numeric_traits<double>::rnd = MPFR_RNDN;
|
2013-08-07 02:52:53 +00:00
|
|
|
|
|
|
|
void double_power(double & v, unsigned k) {
|
|
|
|
v = std::pow(v, k);
|
|
|
|
}
|
|
|
|
};
|