summaryrefslogtreecommitdiff
path: root/boost/compute/functional/common.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/compute/functional/common.hpp')
-rw-r--r--boost/compute/functional/common.hpp29
1 files changed, 29 insertions, 0 deletions
diff --git a/boost/compute/functional/common.hpp b/boost/compute/functional/common.hpp
new file mode 100644
index 0000000000..9ad8b43502
--- /dev/null
+++ b/boost/compute/functional/common.hpp
@@ -0,0 +1,29 @@
+//---------------------------------------------------------------------------//
+// Copyright (c) 2013 Kyle Lutz <kyle.r.lutz@gmail.com>
+//
+// Distributed under the Boost Software License, Version 1.0
+// See accompanying file LICENSE_1_0.txt or copy at
+// http://www.boost.org/LICENSE_1_0.txt
+//
+// See http://boostorg.github.com/compute for more information.
+//---------------------------------------------------------------------------//
+
+#ifndef BOOST_COMPUTE_FUNCTIONAL_COMMON_HPP
+#define BOOST_COMPUTE_FUNCTIONAL_COMMON_HPP
+
+#include <boost/compute/functional/detail/macros.hpp>
+
+namespace boost {
+namespace compute {
+
+BOOST_COMPUTE_DECLARE_BUILTIN_FUNCTION(clamp, T (T, T, T), class T)
+BOOST_COMPUTE_DECLARE_BUILTIN_FUNCTION(degrees, T (T), class T)
+BOOST_COMPUTE_DECLARE_BUILTIN_FUNCTION(radians, T (T), class T)
+BOOST_COMPUTE_DECLARE_BUILTIN_FUNCTION(sign, T (T), class T)
+BOOST_COMPUTE_DECLARE_BUILTIN_FUNCTION(smoothstep, T (T, T, T), class T)
+BOOST_COMPUTE_DECLARE_BUILTIN_FUNCTION(step, T (T, T), class T)
+
+} // end compute namespace
+} // end boost namespace
+
+#endif // BOOST_COMPUTE_FUNCTIONAL_COMMON_HPP