From 84f34ebe52884e4dc642784822ec8a7e3c94fa84 Mon Sep 17 00:00:00 2001 From: Tomasz Sowa Date: Wed, 29 Sep 2010 21:14:32 +0000 Subject: [PATCH] added: Parser::InitCGamma() initializing coefficients used when calculating the gamma (or factorial) function this speed up the next calculations you don't have to call this method explicitly these coefficients will be calculated when needed git-svn-id: svn://ttmath.org/publicrep/ttmath/trunk@324 e52654a7-88a9-db11-a3e9-0013d4bc506e --- CHANGELOG | 8 ++++++++ ttmath/ttmathparser.h | 12 ++++++++++++ ttmath/ttmathtypes.h | 4 ++-- 3 files changed, 22 insertions(+), 2 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index 1f80b1a..6b03f09 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,11 @@ +Version 0.9.3 prerelease (2010.09.29): + * added: Parser::InitCGamma() + initializing coefficients used when calculating the gamma (or factorial) function + this speed up the next calculations + you don't have to call this method explicitly + these coefficients will be calculated when needed + + Version 0.9.2 (2010.09.23): * fixed: Big::Add() sometimes incorrectly rounded the last bit from its mantissa * fixed: Big::BigAnd() Big::BigOr() Big::BigXor() should have set NaN diff --git a/ttmath/ttmathparser.h b/ttmath/ttmathparser.h index 1b3ed91..ce07120 100644 --- a/ttmath/ttmathparser.h +++ b/ttmath/ttmathparser.h @@ -2755,6 +2755,18 @@ bool Calculated() } +/*! + initializing coefficients used when calculating the gamma (or factorial) function + this speed up the next calculations + you don't have to call this method explicitly + these coefficients will be calculated when needed +*/ +void InitCGamma() +{ + cgamma.InitAll(); +} + + }; diff --git a/ttmath/ttmathtypes.h b/ttmath/ttmathtypes.h index 0590d2f..8f1979b 100644 --- a/ttmath/ttmathtypes.h +++ b/ttmath/ttmathtypes.h @@ -72,9 +72,9 @@ */ #define TTMATH_MAJOR_VER 0 #define TTMATH_MINOR_VER 9 -#define TTMATH_REVISION_VER 2 +#define TTMATH_REVISION_VER 3 -#define TTMATH_PRERELEASE_VER 0 +#define TTMATH_PRERELEASE_VER 1