Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

same treatment for simd_constant. (done in a separated commit as it i…

…s a bit different)
  • Loading branch information...
commit f96da9dee00a2071fb496e026663218544837132 1 parent 94f24d9
Mathieu- authored
View
8 modules/simd_constant/include/boost/simd/sdk/constant/category.hpp
@@ -14,10 +14,10 @@
* \brief Defines the constant_ hierarchy and EDSL generators
*/
-#include <boost/simd/sdk/meta/as.hpp>
-#include <boost/simd/sdk/meta/hierarchy_of.hpp>
+#include <boost/dispatch/meta/as.hpp>
+#include <boost/dispatch/meta/hierarchy_of.hpp>
-namespace boost { namespace simd { namespace meta
+namespace boost { namespace dispatch { namespace meta
{
//============================================================================
/*!
@@ -30,7 +30,7 @@ namespace boost { namespace simd { namespace meta
};
} } }
-namespace boost { namespace simd
+namespace boost { namespace dispatch
{
//============================================================================
/*!
View
8 modules/simd_constant/include/boost/simd/sdk/constant/common.hpp
@@ -9,10 +9,10 @@
#ifndef BOOST_SIMD_SDK_SIMD_DETAILS_NATIVE_CONSTANTS_HPP_INCLUDED
#define BOOST_SIMD_SDK_SIMD_DETAILS_NATIVE_CONSTANTS_HPP_INCLUDED
-#include <boost/simd/sdk/meta/as.hpp>
+#include <boost/dispatch/meta/as.hpp>
#include <boost/simd/sdk/simd/category.hpp>
#include <boost/simd/include/functions/splat.hpp>
-#include <boost/simd/sdk/details/ignore_unused.hpp>
+#include <boost/dispatch/details/ignore_unused.hpp>
//==============================================================================
// Forward all constant call to the simd version of themselves that splat
@@ -26,13 +26,13 @@ namespace boost { namespace simd { namespace meta
{
typedef typename A0::type target;
typedef typename meta::scalar_of<target>::type base;
- typedef typename meta::call<Tag(boost::simd::meta::as_<base>)>::type value;
+ typedef typename meta::call<Tag(boost::dispatch::meta::as_<base>)>::type value;
typedef simd::native<value,X> result_type;
inline result_type operator()(A0 const&) const
{
functor<Tag> callee;
- return splat<result_type>( callee( boost::simd::meta::as_<base>()) );
+ return splat<result_type>( callee( boost::dispatch::meta::as_<base>()) );
}
};
} } }
View
10 modules/simd_constant/include/boost/simd/sdk/constant/constant.hpp
@@ -13,8 +13,8 @@
* \file
* \brief Defines the BOOST_SIMD_CONSTANT_IMPLEMENTATION macro
*/
-#include <boost/simd/sdk/meta/as.hpp>
-#include <boost/simd/sdk/functor/functor.hpp>
+#include <boost/dispatch/meta/as.hpp>
+#include <boost/dispatch/functor/functor.hpp>
//==============================================================================
/*!
@@ -27,11 +27,11 @@
//==============================================================================
#define BOOST_SIMD_CONSTANT_IMPLEMENTATION(TAG,NAME) \
template<class Target> inline \
-typename meta::call<TAG(boost::simd::meta::as_<Target>)>::type \
+typename meta::call<TAG(boost::dispatch::meta::as_<Target>)>::type \
NAME() \
{ \
- typename boost::simd::make_functor<TAG, Target>::type callee; \
- return callee( boost::simd::meta::as_<Target>() ); \
+ typename boost::dispatch::make_functor<TAG, Target>::type callee; \
+ return callee( boost::dispatch::meta::as_<Target>() ); \
} \
/**/
View
8 modules/simd_constant/include/boost/simd/toolbox/constant/constants/digits.hpp
@@ -19,7 +19,7 @@
#include <boost/simd/sdk/constant/constant.hpp>
#include <boost/simd/toolbox/constant/include.hpp>
-namespace boost { namespace simd { namespace tag
+namespace boost { namespace dispatch { namespace tag
{
//============================================================================
/*!
@@ -30,7 +30,7 @@ namespace boost { namespace simd { namespace tag
template<boost::simd::int64_t N> struct digit_ {};
} } }
-namespace boost { namespace simd
+namespace boost { namespace dispatch
{
//============================================================================
// Constant functions from -10 to 10 and 20
@@ -82,8 +82,8 @@ namespace boost { namespace simd
typename meta::call<tag::digit_<N >(meta::as_<Target>)>::type
integral_constant()
{
- typename boost::simd::make_functor< tag::digit_<N>, Target >::type callee;
- return callee( boost::simd::meta::as_<Target>() );
+ typename boost::dispatch::make_functor< tag::digit_<N>, Target >::type callee;
+ return callee( boost::dispatch::meta::as_<Target>() );
}
} }
View
4 modules/simd_constant/include/boost/simd/toolbox/constant/constants/eps_related.hpp
@@ -14,7 +14,7 @@
#include <boost/simd/toolbox/constant/include.hpp>
#include <boost/simd/sdk/constant/common.hpp>
-namespace boost { namespace simd { namespace tag
+namespace boost { namespace dispatch { namespace tag
{
struct eps__ {};
struct half_eps__ {};
@@ -27,7 +27,7 @@ namespace boost { namespace simd { namespace tag
struct smallest_pos_val_{};
} } }
-namespace boost { namespace simd
+namespace boost { namespace dispatch
{
BOOST_SIMD_CONSTANT_IMPLEMENTATION(boost::simd::tag::eps__ , Eps )
BOOST_SIMD_CONSTANT_IMPLEMENTATION(boost::simd::tag::half_eps__ , Halfeps )
View
2  modules/simd_constant/include/boost/simd/toolbox/constant/constants/false.hpp
@@ -13,7 +13,7 @@
#include <boost/simd/toolbox/constant/include.hpp>
#include <boost/simd/sdk/constant/common.hpp>
-namespace boost { namespace simd
+namespace boost { namespace dispatch
{
namespace tag
{
View
2  modules/simd_constant/include/boost/simd/toolbox/constant/constants/ieee_spec.hpp
@@ -17,7 +17,7 @@
#include <boost/simd/toolbox/constant/include.hpp>
#include <boost/simd/sdk/constant/common.hpp>
-namespace boost { namespace simd
+namespace boost { namespace dispatch
{
namespace tag
{
View
4 modules/simd_constant/include/boost/simd/toolbox/constant/constants/infinites.hpp
@@ -17,12 +17,12 @@
#include <boost/simd/toolbox/constant/include.hpp>
#include <boost/simd/sdk/constant/common.hpp>
-namespace boost { namespace simd { namespace tag
+namespace boost { namespace dispatch { namespace tag
{
struct inf_ {}; struct m_inf_ {}; struct nan_ {};
} } }
-namespace boost { namespace simd
+namespace boost { namespace dispatch
{
BOOST_SIMD_CONSTANT_IMPLEMENTATION(boost::simd::tag::inf_ , Inf )
BOOST_SIMD_CONSTANT_IMPLEMENTATION(boost::simd::tag::m_inf_ , Minf )
View
2  modules/simd_constant/include/boost/simd/toolbox/constant/constants/max_left_shift.hpp
@@ -17,7 +17,7 @@
#include <boost/simd/toolbox/constant/include.hpp>
#include <boost/simd/sdk/constant/common.hpp>
-namespace boost { namespace simd
+namespace boost { namespace dispatch
{
namespace tag
{
View
22 modules/simd_constant/include/boost/simd/toolbox/constant/constants/real.hpp
@@ -17,7 +17,7 @@
#include <boost/simd/toolbox/constant/include.hpp>
#include <boost/simd/sdk/constant/common.hpp>
-namespace boost { namespace simd { namespace tag
+namespace boost { namespace dispatch { namespace tag
{
struct pi_ {};
struct sqrt_2_o_2_ {}; struct sqrt_2_ {};
@@ -32,7 +32,7 @@ namespace boost { namespace simd { namespace tag
template<boost::simd::uint64_t D, boost::simd::uint32_t F> struct pattern {};
} } }
-namespace boost { namespace simd { namespace details
+namespace boost { namespace dispatch { namespace details
{
//////////////////////////////////////////////////////////////////////////////
// Small type to gather real value bit patterns depending on target type
@@ -56,7 +56,7 @@ namespace boost { namespace simd { namespace details
};
} } }
-namespace boost { namespace simd
+namespace boost { namespace dispatch
{
//////////////////////////////////////////////////////////////////////////////
// Basic named constant
@@ -82,8 +82,8 @@ namespace boost { namespace simd
typename meta::call<tag::pattern<D,F >(meta::as_<Target>)>::type
real_constant()
{
- boost::simd::functor< tag::pattern<D,F> > callee;
- return callee( boost::simd::meta::as_<Target>() );
+ boost::dispatch::functor< tag::pattern<D,F> > callee;
+ return callee( boost::dispatch::meta::as_<Target>() );
}
//////////////////////////////////////////////////////////////////////////////
@@ -93,8 +93,8 @@ namespace boost { namespace simd
typename meta::call<tag::pattern<0,F >(meta::as_<Target>)>::type
single_constant()
{
- boost::simd::functor< tag::pattern<0,F> > callee;
- return callee( boost::simd::meta::as_<Target>() );
+ boost::dispatch::functor< tag::pattern<0,F> > callee;
+ return callee( boost::dispatch::meta::as_<Target>() );
}
//////////////////////////////////////////////////////////////////////////////
@@ -104,8 +104,8 @@ namespace boost { namespace simd
typename meta::call<tag::pattern<D,0 >(meta::as_<Target>)>::type
double_constant()
{
- boost::simd::functor< tag::pattern<D,0> > callee;
- return callee( boost::simd::meta::as_<Target>() );
+ boost::dispatch::functor< tag::pattern<D,0> > callee;
+ return callee( boost::dispatch::meta::as_<Target>() );
}
//////////////////////////////////////////////////////////////////////////////
@@ -115,8 +115,8 @@ namespace boost { namespace simd
typename meta::call<typename details::pattern<T,V>::type(meta::as_<T>)>::type
Const()
{
- boost::simd::functor< typename details::pattern<T,V>::type > callee;
- return callee( boost::simd::meta::as_<T>() );
+ boost::dispatch::functor< typename details::pattern<T,V>::type > callee;
+ return callee( boost::dispatch::meta::as_<T>() );
}
} }
View
2  modules/simd_constant/include/boost/simd/toolbox/constant/constants/signmask.hpp
@@ -17,7 +17,7 @@
#include <boost/simd/toolbox/constant/include.hpp>
#include <boost/simd/sdk/constant/common.hpp>
-namespace boost { namespace simd
+namespace boost { namespace dispatch
{
namespace tag
{
View
2  modules/simd_constant/include/boost/simd/toolbox/constant/constants/true.hpp
@@ -13,7 +13,7 @@
#include <boost/simd/toolbox/constant/include.hpp>
#include <boost/simd/sdk/constant/common.hpp>
-namespace boost { namespace simd
+namespace boost { namespace dispatch
{
namespace tag { struct true_ {}; }
BOOST_SIMD_CONSTANT_IMPLEMENTATION(boost::simd::tag::true_, True)
View
2  modules/simd_constant/include/boost/simd/toolbox/constant/constants/val_max.hpp
@@ -17,7 +17,7 @@
#include <boost/simd/toolbox/constant/include.hpp>
#include <boost/simd/sdk/constant/common.hpp>
-namespace boost { namespace simd
+namespace boost { namespace dispatch
{
namespace tag { struct val_max_ {};}
BOOST_SIMD_CONSTANT_IMPLEMENTATION(boost::simd::tag::val_max_, Valmax)
View
2  modules/simd_constant/include/boost/simd/toolbox/constant/constants/val_min.hpp
@@ -17,7 +17,7 @@
#include <boost/simd/toolbox/constant/include.hpp>
#include <boost/simd/sdk/constant/common.hpp>
-namespace boost { namespace simd
+namespace boost { namespace dispatch
{
namespace tag { struct val_min_ {}; }
BOOST_SIMD_CONSTANT_IMPLEMENTATION(boost::simd::tag::val_min_, Valmin)
Please sign in to comment.
Something went wrong with that request. Please try again.