Skip to content

Instantly share code, notes, and snippets.

@psiha
Created November 2, 2012 14:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save psiha/4001645 to your computer and use it in GitHub Desktop.
Save psiha/4001645 to your computer and use it in GitHub Desktop.
blunder
namespace ext
{
BOOST_SIMD_FUNCTOR_IMPLEMENTATION( boost::simd::tag::minus_, boost::simd::tag::simd_emulation_<16>
, (A0)
, ((simd_<arithmetic_<A0>,boost::simd::tag::cpu_>))
((simd_<arithmetic_<A0>,boost::simd::tag::cpu_>))
)
{
typedef A0 result_type;
BOOST_SIMD_FUNCTOR_CALL_REPEAT(2)
{
return a0 - a1;
}
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment