From e10981b37ecc42cafca3e6d05e1eb44602b213b3 Mon Sep 17 00:00:00 2001 From: graehl Date: Thu, 19 Aug 2010 04:46:18 +0000 Subject: ValueArray instead of string for state is 10% faster git-svn-id: https://ws10smt.googlecode.com/svn/trunk@599 ec762483-ff6d-05da-a07a-a48fb63a330f --- utils/maybe_update_bound.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 utils/maybe_update_bound.h (limited to 'utils/maybe_update_bound.h') diff --git a/utils/maybe_update_bound.h b/utils/maybe_update_bound.h new file mode 100755 index 00000000..d57215d0 --- /dev/null +++ b/utils/maybe_update_bound.h @@ -0,0 +1,17 @@ +#ifndef MAYBE_UPDATE_BOUND_H +#define MAYBE_UPDATE_BOUND_H + +template +inline void maybe_increase_max(To &to,const From &from) { + if (to +inline void maybe_decrease_min(To &to,const From &from) { + if (from