text: //==============================================================================
  //         Copyright 2003 - 2011 LASMEA UMR 6602 CNRS/Univ. Clermont II
  //         Copyright 2009 - 2011 LRI    UMR 8623 CNRS/Univ Paris Sud XI
  //         Copyright 2012 - 2014 MetaScale SAS
  //
  //          Distributed under the Boost Software License, Version 1.0.
  //                 See accompanying file LICENSE.txt or copy at
  //                     http://www.boost.org/LICENSE_1_0.txt
  //==============================================================================
  #ifndef BOOST_SIMD_ARITHMETIC_FUNCTIONS_SIMD_SSE_SSE4_1_ROUND2EVEN_HPP_INCLUDED
  #define BOOST_SIMD_ARITHMETIC_FUNCTIONS_SIMD_SSE_SSE4_1_ROUND2EVEN_HPP_INCLUDED
  #ifdef BOOST_SIMD_HAS_SSE4_1_SUPPORT
  
  #include <boost/simd/arithmetic/functions/round2even.hpp>
  #include <boost/dispatch/attributes.hpp>
  
  namespace boost { namespace simd { namespace ext
  {
    BOOST_DISPATCH_IMPLEMENT          ( round2even_, boost::simd::tag::sse4_1_
                                      , (A0)
                                      , ((simd_<double_<A0>,boost::simd::tag::sse_>))
                                      )
    {
      typedef A0 result_type;
      BOOST_FORCEINLINE BOOST_SIMD_FUNCTOR_CALL(1)
      {
        return _mm_round_pd(a0, _MM_FROUND_TO_NEAREST_INT);
      }
    };
  
    BOOST_DISPATCH_IMPLEMENT          ( round2even_, boost::simd::tag::sse4_1_
                                      , (A0)
                                      , ((simd_<single_<A0>,boost::simd::tag::sse_>))
                                      )
    {
      typedef A0 result_type;
      BOOST_FORCEINLINE BOOST_SIMD_FUNCTOR_CALL(1)
      {
        return _mm_round_ps(a0, _MM_FROUND_TO_NEAREST_INT);
      }
    };
  } } }
  
  #endif
  #endif
  