common.hpp 1.1 KB

1234567891011121314151617181920212223242526272829
  1. //---------------------------------------------------------------------------//
  2. // Copyright (c) 2013 Kyle Lutz <kyle.r.lutz@gmail.com>
  3. //
  4. // Distributed under the Boost Software License, Version 1.0
  5. // See accompanying file LICENSE_1_0.txt or copy at
  6. // http://www.boost.org/LICENSE_1_0.txt
  7. //
  8. // See http://boostorg.github.com/compute for more information.
  9. //---------------------------------------------------------------------------//
  10. #ifndef BOOST_COMPUTE_FUNCTIONAL_COMMON_HPP
  11. #define BOOST_COMPUTE_FUNCTIONAL_COMMON_HPP
  12. #include <boost/compute/functional/detail/macros.hpp>
  13. namespace boost {
  14. namespace compute {
  15. BOOST_COMPUTE_DECLARE_BUILTIN_FUNCTION(clamp, T (T, T, T), class T)
  16. BOOST_COMPUTE_DECLARE_BUILTIN_FUNCTION(degrees, T (T), class T)
  17. BOOST_COMPUTE_DECLARE_BUILTIN_FUNCTION(radians, T (T), class T)
  18. BOOST_COMPUTE_DECLARE_BUILTIN_FUNCTION(sign, T (T), class T)
  19. BOOST_COMPUTE_DECLARE_BUILTIN_FUNCTION(smoothstep, T (T, T, T), class T)
  20. BOOST_COMPUTE_DECLARE_BUILTIN_FUNCTION(step, T (T, T), class T)
  21. } // end compute namespace
  22. } // end boost namespace
  23. #endif // BOOST_COMPUTE_FUNCTIONAL_COMMON_HPP