Skip to content

Commit

Permalink
Don't mix literal and non-literal initializers in one table - it caus…
Browse files Browse the repository at this point in the history
…es the PGI compiler to generate incorrect code.

Refs #8621.

[SVN r84789]
  • Loading branch information
jzmaddock committed Jun 15, 2013
1 parent ef5369a commit 8243a35
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions include/boost/math/special_functions/detail/lgamma_small.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ T lgamma_small_imp(T z, T zm1, T zm2, const mpl::int_<64>&, const Policy& /* l *
static_cast<T>(BOOST_MATH_BIG_CONSTANT(T, 64, -0.324588649825948492091e-4))
};
static const T Q[] = {
static_cast<T>(0.1e1),
static_cast<T>(BOOST_MATH_BIG_CONSTANT(T, 64, 0.1e1)),
static_cast<T>(BOOST_MATH_BIG_CONSTANT(T, 64, 0.196202987197795200688e1)),
static_cast<T>(BOOST_MATH_BIG_CONSTANT(T, 64, 0.148019669424231326694e1)),
static_cast<T>(BOOST_MATH_BIG_CONSTANT(T, 64, 0.541391432071720958364e0)),
Expand Down Expand Up @@ -198,7 +198,7 @@ T lgamma_small_imp(T z, T zm1, T zm2, const mpl::int_<64>&, const Policy& /* l *
static_cast<T>(BOOST_MATH_BIG_CONSTANT(T, 64, 0.431171342679297331241e-3))
};
static const T Q[] = {
static_cast<T>(0.1e1),
static_cast<T>(BOOST_MATH_BIG_CONSTANT(T, 64, 0.1e1)),
static_cast<T>(BOOST_MATH_BIG_CONSTANT(T, 64, -0.150169356054485044494e1)),
static_cast<T>(BOOST_MATH_BIG_CONSTANT(T, 64, 0.846973248876495016101e0)),
static_cast<T>(BOOST_MATH_BIG_CONSTANT(T, 64, -0.220095151814995745555e0)),
Expand Down
4 changes: 2 additions & 2 deletions include/boost/math/special_functions/zeta.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ T zeta_imp_prec(T s, T sc, const Policy&, const mpl::int_<64>&)
BOOST_MATH_BIG_CONSTANT(T, 64, 0.540319769113543934483e-7),
};
static const T Q[8] = {
1,
BOOST_MATH_BIG_CONSTANT(T, 64, 1.0),
BOOST_MATH_BIG_CONSTANT(T, 64, 0.286577739726542730421),
BOOST_MATH_BIG_CONSTANT(T, 64, 0.0447355811517733225843),
BOOST_MATH_BIG_CONSTANT(T, 64, 0.00430125107610252363302),
Expand All @@ -458,7 +458,7 @@ T zeta_imp_prec(T s, T sc, const Policy&, const mpl::int_<64>&)
BOOST_MATH_BIG_CONSTANT(T, 64, -0.252884970740994069582e-5),
};
static const T Q[9] = {
1,
BOOST_MATH_BIG_CONSTANT(T, 64, 1.0),
BOOST_MATH_BIG_CONSTANT(T, 64, 1.01300131390690459085),
BOOST_MATH_BIG_CONSTANT(T, 64, 0.387898115758643503827),
BOOST_MATH_BIG_CONSTANT(T, 64, 0.0695071490045701135188),
Expand Down

0 comments on commit 8243a35

Please sign in to comment.