1
0
Fork 0
mirror of https://github.com/bolero-MURAKAMI/Sprout synced 2025-08-03 12:49:50 +00:00

add sprout/numeric/dft.wave.hpp

fix constexpr -> inline constexpr
This commit is contained in:
bolero-MURAKAMI 2012-07-15 16:04:05 +09:00
parent e4a4d17207
commit f9d4b475b4
69 changed files with 420 additions and 378 deletions

View file

@ -82,7 +82,7 @@ namespace sprout {
# undef SPROUT_WEED_ODIGITS_TABLE_DEF
template<typename IntType>
SPROUT_CONSTEXPR sprout::tuples::tuple<IntType, bool> ovalue_at(std::size_t i) {
inline SPROUT_CONSTEXPR sprout::tuples::tuple<IntType, bool> ovalue_at(std::size_t i) {
return i < 8
? sprout::tuples::tuple<IntType, bool>(
static_cast<IntType>(sprout::weed::detail::ovalues<void>::table[i]),
@ -95,7 +95,7 @@ namespace sprout {
;
}
template<typename IntType, typename Elem>
SPROUT_CONSTEXPR sprout::tuples::tuple<IntType, bool> from_odigit(Elem c) {
inline SPROUT_CONSTEXPR sprout::tuples::tuple<IntType, bool> from_odigit(Elem c) {
return sprout::weed::detail::ovalue_at<IntType>(
NS_SSCRISK_CEL_OR_SPROUT::distance(
sprout::weed::detail::odigits<Elem>::table.begin(),