From 337b647baac15609a0a493902d58c473d25d2ed8 Mon Sep 17 00:00:00 2001 From: graehl Date: Thu, 8 Jul 2010 16:44:20 +0000 Subject: --show_features git-svn-id: https://ws10smt.googlecode.com/svn/trunk@184 ec762483-ff6d-05da-a07a-a48fb63a330f --- decoder/logval.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'decoder/logval.h') diff --git a/decoder/logval.h b/decoder/logval.h index 457818e7..9aaba557 100644 --- a/decoder/logval.h +++ b/decoder/logval.h @@ -1,7 +1,7 @@ #ifndef LOGVAL_H_ #define LOGVAL_H_ -#define LOGVAL_CHECK_NEG_POW false +#define LOGVAL_CHECK_NEG false #include #include @@ -59,7 +59,7 @@ class LogVal { } LogVal& poweq(const T& power) { -#if LOGVAL_CHECK_NEG_POW +#if LOGVAL_CHECK_NEG if (s_) { std::cerr << "poweq(T) not implemented when s_ is true\n"; std::abort(); @@ -116,7 +116,9 @@ LogVal operator-(LogVal o1, const LogVal& o2) { template T log(const LogVal& o) { +#ifdef LOGVAL_CHECK_NEG if (o.s_) return log(-1.0); +#endif return o.v_; } -- cgit v1.2.3