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:
parent
e4a4d17207
commit
f9d4b475b4
69 changed files with 420 additions and 378 deletions
|
@ -82,7 +82,7 @@ namespace sprout {
|
|||
# undef SPROUT_WEED_DIGITS_TABLE_DEF
|
||||
|
||||
template<typename IntType>
|
||||
SPROUT_CONSTEXPR sprout::tuples::tuple<IntType, bool> value_at(std::size_t i) {
|
||||
inline SPROUT_CONSTEXPR sprout::tuples::tuple<IntType, bool> value_at(std::size_t i) {
|
||||
return i < 10
|
||||
? sprout::tuples::tuple<IntType, bool>(
|
||||
static_cast<IntType>(sprout::weed::detail::values<void>::table[i]),
|
||||
|
@ -95,7 +95,7 @@ namespace sprout {
|
|||
;
|
||||
}
|
||||
template<typename IntType, typename Elem>
|
||||
SPROUT_CONSTEXPR sprout::tuples::tuple<IntType, bool> from_digit(Elem c) {
|
||||
inline SPROUT_CONSTEXPR sprout::tuples::tuple<IntType, bool> from_digit(Elem c) {
|
||||
return sprout::weed::detail::value_at<IntType>(
|
||||
NS_SSCRISK_CEL_OR_SPROUT::distance(
|
||||
sprout::weed::detail::digits<Elem>::table.begin(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue