[libclc] Tighten OpenCL builtin include strategy (#147276)
This commit continues the work from #146840 and extends it to the maths, geomtrics, common, and relational directories. All headers have include guards and, where appropriate, include the minimal code required for their specific definitions. Implementation files no longer include the large catch-all header of all OpenCL builtin declarations.
This commit is contained in:
parent
fd997d86f0
commit
b67504c461
@ -6,9 +6,14 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#ifndef __CLC_OPENCL_COMMON_DEGREES_H__
|
||||
#define __CLC_OPENCL_COMMON_DEGREES_H__
|
||||
|
||||
#define FUNCTION degrees
|
||||
#define __CLC_BODY <clc/math/unary_decl.inc>
|
||||
|
||||
#include <clc/math/gentype.inc>
|
||||
|
||||
#undef FUNCTION
|
||||
|
||||
#endif // __CLC_OPENCL_COMMON_DEGREES_H__
|
||||
|
@ -6,5 +6,10 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#ifndef __CLC_OPENCL_COMMON_MIX_H__
|
||||
#define __CLC_OPENCL_COMMON_MIX_H__
|
||||
|
||||
#define __CLC_BODY <clc/opencl/common/mix.inc>
|
||||
#include <clc/math/gentype.inc>
|
||||
|
||||
#endif // __CLC_OPENCL_COMMON_MIX_H__
|
||||
|
@ -6,9 +6,14 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#ifndef __CLC_OPENCL_COMMON_RADIANS_H__
|
||||
#define __CLC_OPENCL_COMMON_RADIANS_H__
|
||||
|
||||
#define FUNCTION radians
|
||||
#define __CLC_BODY <clc/math/unary_decl.inc>
|
||||
|
||||
#include <clc/math/gentype.inc>
|
||||
|
||||
#undef FUNCTION
|
||||
|
||||
#endif // __CLC_OPENCL_COMMON_RADIANS_H__
|
||||
|
@ -6,7 +6,12 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#ifndef __CLC_OPENCL_COMMON_SIGN_H__
|
||||
#define __CLC_OPENCL_COMMON_SIGN_H__
|
||||
|
||||
#define FUNCTION sign
|
||||
#define __CLC_BODY <clc/math/unary_decl.inc>
|
||||
#include <clc/math/gentype.inc>
|
||||
#undef FUNCTION
|
||||
|
||||
#endif // __CLC_OPENCL_COMMON_SIGN_H__
|
||||
|
@ -6,5 +6,10 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#ifndef __CLC_OPENCL_COMMON_SMOOTHSTEP_H__
|
||||
#define __CLC_OPENCL_COMMON_SMOOTHSTEP_H__
|
||||
|
||||
#define __CLC_BODY <clc/opencl/common/smoothstep.inc>
|
||||
#include <clc/math/gentype.inc>
|
||||
|
||||
#endif // __CLC_OPENCL_COMMON_SMOOTHSTEP_H__
|
||||
|
@ -6,5 +6,10 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#ifndef __CLC_OPENCL_COMMON_STEP_H__
|
||||
#define __CLC_OPENCL_COMMON_STEP_H__
|
||||
|
||||
#define __CLC_BODY <clc/opencl/common/step.inc>
|
||||
#include <clc/math/gentype.inc>
|
||||
|
||||
#endif // __CLC_OPENCL_COMMON_STEP_H__
|
||||
|
@ -6,6 +6,9 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#ifndef __CLC_OPENCL_GEOMETRIC_CROSS_H__
|
||||
#define __CLC_OPENCL_GEOMETRIC_CROSS_H__
|
||||
|
||||
_CLC_OVERLOAD _CLC_DECL float3 cross(float3 p0, float3 p1);
|
||||
_CLC_OVERLOAD _CLC_DECL float4 cross(float4 p0, float4 p1);
|
||||
|
||||
@ -13,3 +16,5 @@ _CLC_OVERLOAD _CLC_DECL float4 cross(float4 p0, float4 p1);
|
||||
_CLC_OVERLOAD _CLC_DECL double3 cross(double3 p0, double3 p1);
|
||||
_CLC_OVERLOAD _CLC_DECL double4 cross(double4 p0, double4 p1);
|
||||
#endif
|
||||
|
||||
#endif // __CLC_OPENCL_GEOMETRIC_CROSS_H__
|
||||
|
@ -6,9 +6,14 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#ifndef __CLC_OPENCL_GEOMETRIC_DISTANCE_H__
|
||||
#define __CLC_OPENCL_GEOMETRIC_DISTANCE_H__
|
||||
|
||||
#define FUNCTION distance
|
||||
#define __CLC_BODY <clc/geometric/binary_decl.inc>
|
||||
|
||||
#include <clc/math/gentype.inc>
|
||||
|
||||
#undef FUNCTION
|
||||
|
||||
#endif // __CLC_OPENCL_GEOMETRIC_DISTANCE_H__
|
||||
|
@ -6,9 +6,14 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#ifndef __CLC_OPENCL_GEOMETRIC_DOT_H__
|
||||
#define __CLC_OPENCL_GEOMETRIC_DOT_H__
|
||||
|
||||
#define FUNCTION dot
|
||||
#define __CLC_BODY <clc/geometric/binary_decl.inc>
|
||||
|
||||
#include <clc/math/gentype.inc>
|
||||
|
||||
#undef FUNCTION
|
||||
|
||||
#endif // __CLC_OPENCL_GEOMETRIC_DOT_H__
|
||||
|
@ -6,6 +6,9 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#ifndef __CLC_OPENCL_GEOMETRIC_FAST_DISTANCE_H__
|
||||
#define __CLC_OPENCL_GEOMETRIC_FAST_DISTANCE_H__
|
||||
|
||||
#define __FLOAT_ONLY
|
||||
#define FUNCTION fast_distance
|
||||
#define __CLC_BODY <clc/geometric/binary_decl.inc>
|
||||
@ -13,3 +16,5 @@
|
||||
#include <clc/math/gentype.inc>
|
||||
|
||||
#undef FUNCTION
|
||||
|
||||
#endif // __CLC_OPENCL_GEOMETRIC_FAST_DISTANCE_H__
|
||||
|
@ -6,6 +6,9 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#ifndef __CLC_OPENCL_GEOMETRIC_FAST_LENGTH_H__
|
||||
#define __CLC_OPENCL_GEOMETRIC_FAST_LENGTH_H__
|
||||
|
||||
#define __FLOAT_ONLY
|
||||
#define FUNCTION fast_length
|
||||
#define __CLC_BODY <clc/geometric/unary_decl.inc>
|
||||
@ -13,3 +16,5 @@
|
||||
#include <clc/math/gentype.inc>
|
||||
|
||||
#undef FUNCTION
|
||||
|
||||
#endif // __CLC_OPENCL_GEOMETRIC_FAST_LENGTH_H__
|
||||
|
@ -6,6 +6,9 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#ifndef __CLC_OPENCL_GEOMETRIC_FAST_NORMALIZE_H__
|
||||
#define __CLC_OPENCL_GEOMETRIC_FAST_NORMALIZE_H__
|
||||
|
||||
#define __FLOAT_ONLY
|
||||
#define FUNCTION fast_normalize
|
||||
#define __CLC_GEOMETRIC_RET_GENTYPE
|
||||
@ -15,3 +18,5 @@
|
||||
|
||||
#undef FUNCTION
|
||||
#undef __CLC_GEOMETRIC_RET_GENTYPE
|
||||
|
||||
#endif // __CLC_OPENCL_GEOMETRIC_FAST_NORMALIZE_H__
|
||||
|
@ -6,9 +6,14 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#ifndef __CLC_OPENCL_GEOMETRIC_LENGTH_H__
|
||||
#define __CLC_OPENCL_GEOMETRIC_LENGTH_H__
|
||||
|
||||
#define FUNCTION length
|
||||
#define __CLC_BODY <clc/geometric/unary_decl.inc>
|
||||
|
||||
#include <clc/math/gentype.inc>
|
||||
|
||||
#undef FUNCTION
|
||||
|
||||
#endif // __CLC_OPENCL_GEOMETRIC_LENGTH_H__
|
||||
|
@ -6,6 +6,9 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#ifndef __CLC_OPENCL_GEOMETRIC_NORMALIZE_H__
|
||||
#define __CLC_OPENCL_GEOMETRIC_NORMALIZE_H__
|
||||
|
||||
#define FUNCTION normalize
|
||||
#define __CLC_GEOMETRIC_RET_GENTYPE
|
||||
#define __CLC_BODY <clc/geometric/unary_decl.inc>
|
||||
@ -14,3 +17,5 @@
|
||||
|
||||
#undef __CLC_GEOMETRIC_RET_GENTYPE
|
||||
#undef FUNCTION
|
||||
|
||||
#endif // __CLC_OPENCL_GEOMETRIC_NORMALIZE_H__
|
||||
|
@ -6,9 +6,14 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#ifndef __CLC_OPENCL_MATH_ACOS_H__
|
||||
#define __CLC_OPENCL_MATH_ACOS_H__
|
||||
|
||||
#define __CLC_BODY <clc/math/unary_decl.inc>
|
||||
#define FUNCTION acos
|
||||
|
||||
#include <clc/math/gentype.inc>
|
||||
|
||||
#undef FUNCTION
|
||||
|
||||
#endif // __CLC_OPENCL_MATH_ACOS_H__
|
||||
|
@ -6,9 +6,14 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#ifndef __CLC_OPENCL_MATH_ACOSH_H__
|
||||
#define __CLC_OPENCL_MATH_ACOSH_H__
|
||||
|
||||
#define __CLC_BODY <clc/math/unary_decl.inc>
|
||||
#define FUNCTION acosh
|
||||
|
||||
#include <clc/math/gentype.inc>
|
||||
|
||||
#undef FUNCTION
|
||||
|
||||
#endif // __CLC_OPENCL_MATH_ACOSH_H__
|
||||
|
@ -6,9 +6,14 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#ifndef __CLC_OPENCL_MATH_ACOSPI_H__
|
||||
#define __CLC_OPENCL_MATH_ACOSPI_H__
|
||||
|
||||
#define __CLC_BODY <clc/math/unary_decl.inc>
|
||||
#define FUNCTION acospi
|
||||
|
||||
#include <clc/math/gentype.inc>
|
||||
|
||||
#undef FUNCTION
|
||||
|
||||
#endif // __CLC_OPENCL_MATH_ACOSPI_H__
|
||||
|
@ -6,9 +6,14 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#ifndef __CLC_OPENCL_MATH_ASIN_H__
|
||||
#define __CLC_OPENCL_MATH_ASIN_H__
|
||||
|
||||
#define __CLC_BODY <clc/math/unary_decl.inc>
|
||||
#define FUNCTION asin
|
||||
|
||||
#include <clc/math/gentype.inc>
|
||||
|
||||
#undef FUNCTION
|
||||
|
||||
#endif // __CLC_OPENCL_MATH_ASIN_H__
|
||||
|
@ -6,9 +6,14 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#ifndef __CLC_OPENCL_MATH_ASINH_H__
|
||||
#define __CLC_OPENCL_MATH_ASINH_H__
|
||||
|
||||
#define __CLC_BODY <clc/math/unary_decl.inc>
|
||||
#define FUNCTION asinh
|
||||
|
||||
#include <clc/math/gentype.inc>
|
||||
|
||||
#undef FUNCTION
|
||||
|
||||
#endif // __CLC_OPENCL_MATH_ASINH_H__
|
||||
|
@ -6,9 +6,14 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#ifndef __CLC_OPENCL_MATH_ASINPI_H__
|
||||
#define __CLC_OPENCL_MATH_ASINPI_H__
|
||||
|
||||
#define __CLC_BODY <clc/math/unary_decl.inc>
|
||||
#define FUNCTION asinpi
|
||||
|
||||
#include <clc/math/gentype.inc>
|
||||
|
||||
#undef FUNCTION
|
||||
|
||||
#endif // __CLC_OPENCL_MATH_ASINPI_H__
|
||||
|
@ -6,9 +6,14 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#ifndef __CLC_OPENCL_MATH_ATAN_H__
|
||||
#define __CLC_OPENCL_MATH_ATAN_H__
|
||||
|
||||
#define __CLC_BODY <clc/math/unary_decl.inc>
|
||||
#define FUNCTION atan
|
||||
|
||||
#include <clc/math/gentype.inc>
|
||||
|
||||
#undef FUNCTION
|
||||
|
||||
#endif // __CLC_OPENCL_MATH_ATAN_H__
|
||||
|
@ -6,9 +6,14 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#ifndef __CLC_OPENCL_MATH_ATAN2_H__
|
||||
#define __CLC_OPENCL_MATH_ATAN2_H__
|
||||
|
||||
#define FUNCTION atan2
|
||||
#define __CLC_BODY <clc/shared/binary_decl.inc>
|
||||
|
||||
#include <clc/math/gentype.inc>
|
||||
|
||||
#undef FUNCTION
|
||||
|
||||
#endif // __CLC_OPENCL_MATH_ATAN2_H__
|
||||
|
@ -6,9 +6,14 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#ifndef __CLC_OPENCL_MATH_ATAN2PI_H__
|
||||
#define __CLC_OPENCL_MATH_ATAN2PI_H__
|
||||
|
||||
#define FUNCTION atan2pi
|
||||
#define __CLC_BODY <clc/shared/binary_decl.inc>
|
||||
|
||||
#include <clc/math/gentype.inc>
|
||||
|
||||
#undef FUNCTION
|
||||
|
||||
#endif // __CLC_OPENCL_MATH_ATAN2PI_H__
|
||||
|
@ -6,9 +6,14 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#ifndef __CLC_OPENCL_MATH_ATANH_H__
|
||||
#define __CLC_OPENCL_MATH_ATANH_H__
|
||||
|
||||
#define __CLC_BODY <clc/math/unary_decl.inc>
|
||||
#define FUNCTION atanh
|
||||
|
||||
#include <clc/math/gentype.inc>
|
||||
|
||||
#undef FUNCTION
|
||||
|
||||
#endif // __CLC_OPENCL_MATH_ATANH_H__
|
||||
|
@ -6,9 +6,14 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#ifndef __CLC_OPENCL_MATH_ATANPI_H__
|
||||
#define __CLC_OPENCL_MATH_ATANPI_H__
|
||||
|
||||
#define __CLC_BODY <clc/math/unary_decl.inc>
|
||||
#define FUNCTION atanpi
|
||||
|
||||
#include <clc/math/gentype.inc>
|
||||
|
||||
#undef FUNCTION
|
||||
|
||||
#endif // __CLC_OPENCL_MATH_ATANPI_H__
|
||||
|
@ -6,9 +6,14 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#ifndef __CLC_OPENCL_MATH_CBRT_H__
|
||||
#define __CLC_OPENCL_MATH_CBRT_H__
|
||||
|
||||
#define __CLC_BODY <clc/math/unary_decl.inc>
|
||||
#define FUNCTION cbrt
|
||||
|
||||
#include <clc/math/gentype.inc>
|
||||
|
||||
#undef FUNCTION
|
||||
|
||||
#endif // __CLC_OPENCL_MATH_CBRT_H__
|
||||
|
@ -6,9 +6,14 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#ifndef __CLC_OPENCL_MATH_CEIL_H__
|
||||
#define __CLC_OPENCL_MATH_CEIL_H__
|
||||
|
||||
#define __CLC_BODY <clc/math/unary_decl.inc>
|
||||
#define FUNCTION ceil
|
||||
|
||||
#include <clc/math/gentype.inc>
|
||||
|
||||
#undef FUNCTION
|
||||
|
||||
#endif // __CLC_OPENCL_MATH_CEIL_H__
|
||||
|
@ -6,9 +6,14 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#ifndef __CLC_OPENCL_MATH_COPYSIGN_H__
|
||||
#define __CLC_OPENCL_MATH_COPYSIGN_H__
|
||||
|
||||
#define FUNCTION copysign
|
||||
#define __CLC_BODY <clc/shared/binary_decl.inc>
|
||||
|
||||
#include <clc/math/gentype.inc>
|
||||
|
||||
#undef FUNCTION
|
||||
|
||||
#endif // __CLC_OPENCL_MATH_COPYSIGN_H__
|
||||
|
@ -6,9 +6,14 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#ifndef __CLC_OPENCL_MATH_COS_H__
|
||||
#define __CLC_OPENCL_MATH_COS_H__
|
||||
|
||||
#define __CLC_BODY <clc/math/unary_decl.inc>
|
||||
#define FUNCTION cos
|
||||
|
||||
#include <clc/math/gentype.inc>
|
||||
|
||||
#undef FUNCTION
|
||||
|
||||
#endif // __CLC_OPENCL_MATH_COS_H__
|
||||
|
@ -6,9 +6,14 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#ifndef __CLC_OPENCL_MATH_COSH_H__
|
||||
#define __CLC_OPENCL_MATH_COSH_H__
|
||||
|
||||
#define __CLC_BODY <clc/math/unary_decl.inc>
|
||||
#define FUNCTION cosh
|
||||
|
||||
#include <clc/math/gentype.inc>
|
||||
|
||||
#undef FUNCTION
|
||||
|
||||
#endif // __CLC_OPENCL_MATH_COSH_H__
|
||||
|
@ -6,9 +6,14 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#ifndef __CLC_OPENCL_MATH_COSPI_H__
|
||||
#define __CLC_OPENCL_MATH_COSPI_H__
|
||||
|
||||
#define __CLC_BODY <clc/math/unary_decl.inc>
|
||||
#define FUNCTION cospi
|
||||
|
||||
#include <clc/math/gentype.inc>
|
||||
|
||||
#undef FUNCTION
|
||||
|
||||
#endif // __CLC_OPENCL_MATH_COSPI_H__
|
||||
|
@ -6,6 +6,9 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#ifndef __CLC_OPENCL_MATH_ERF_H__
|
||||
#define __CLC_OPENCL_MATH_ERF_H__
|
||||
|
||||
#undef erfc
|
||||
|
||||
#define __CLC_BODY <clc/math/unary_decl.inc>
|
||||
@ -14,3 +17,5 @@
|
||||
#include <clc/math/gentype.inc>
|
||||
|
||||
#undef FUNCTION
|
||||
|
||||
#endif // __CLC_OPENCL_MATH_ERF_H__
|
||||
|
@ -6,6 +6,9 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#ifndef __CLC_OPENCL_MATH_ERFC_H__
|
||||
#define __CLC_OPENCL_MATH_ERFC_H__
|
||||
|
||||
#undef erfc
|
||||
|
||||
#define __CLC_BODY <clc/math/unary_decl.inc>
|
||||
@ -14,3 +17,5 @@
|
||||
#include <clc/math/gentype.inc>
|
||||
|
||||
#undef FUNCTION
|
||||
|
||||
#endif // __CLC_OPENCL_MATH_ERFC_H__
|
||||
|
@ -6,6 +6,9 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#ifndef __CLC_OPENCL_MATH_EXP_H__
|
||||
#define __CLC_OPENCL_MATH_EXP_H__
|
||||
|
||||
#undef exp
|
||||
|
||||
#define __CLC_BODY <clc/math/unary_decl.inc>
|
||||
@ -14,3 +17,5 @@
|
||||
#include <clc/math/gentype.inc>
|
||||
|
||||
#undef FUNCTION
|
||||
|
||||
#endif // __CLC_OPENCL_MATH_EXP_H__
|
||||
|
@ -6,6 +6,9 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#ifndef __CLC_OPENCL_MATH_EXP10_H__
|
||||
#define __CLC_OPENCL_MATH_EXP10_H__
|
||||
|
||||
#undef exp10
|
||||
|
||||
#define __CLC_BODY <clc/math/unary_decl.inc>
|
||||
@ -14,3 +17,5 @@
|
||||
#include <clc/math/gentype.inc>
|
||||
|
||||
#undef FUNCTION
|
||||
|
||||
#endif // __CLC_OPENCL_MATH_EXP10_H__
|
||||
|
@ -6,9 +6,14 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#ifndef __CLC_OPENCL_MATH_EXP2_H__
|
||||
#define __CLC_OPENCL_MATH_EXP2_H__
|
||||
|
||||
#define __CLC_BODY <clc/math/unary_decl.inc>
|
||||
#define FUNCTION exp2
|
||||
|
||||
#include <clc/math/gentype.inc>
|
||||
|
||||
#undef FUNCTION
|
||||
|
||||
#endif // __CLC_OPENCL_MATH_EXP2_H__
|
||||
|
@ -6,6 +6,9 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#ifndef __CLC_OPENCL_MATH_EXPM1_H__
|
||||
#define __CLC_OPENCL_MATH_EXPM1_H__
|
||||
|
||||
#undef exp
|
||||
|
||||
#define __CLC_BODY <clc/math/unary_decl.inc>
|
||||
@ -14,3 +17,5 @@
|
||||
#include <clc/math/gentype.inc>
|
||||
|
||||
#undef FUNCTION
|
||||
|
||||
#endif // __CLC_OPENCL_MATH_EXPM1_H__
|
||||
|
@ -6,9 +6,14 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#ifndef __CLC_OPENCL_MATH_FABS_H__
|
||||
#define __CLC_OPENCL_MATH_FABS_H__
|
||||
|
||||
#define __CLC_BODY <clc/math/unary_decl.inc>
|
||||
#define FUNCTION fabs
|
||||
|
||||
#include <clc/math/gentype.inc>
|
||||
|
||||
#undef FUNCTION
|
||||
|
||||
#endif // __CLC_OPENCL_MATH_FABS_H__
|
||||
|
@ -6,9 +6,14 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#ifndef __CLC_OPENCL_MATH_FDIM_H__
|
||||
#define __CLC_OPENCL_MATH_FDIM_H__
|
||||
|
||||
#define FUNCTION fdim
|
||||
#define __CLC_BODY <clc/shared/binary_decl.inc>
|
||||
|
||||
#include <clc/math/gentype.inc>
|
||||
|
||||
#undef FUNCTION
|
||||
|
||||
#endif // __CLC_OPENCL_MATH_FDIM_H__
|
||||
|
@ -6,9 +6,14 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#ifndef __CLC_OPENCL_MATH_FLOOR_H__
|
||||
#define __CLC_OPENCL_MATH_FLOOR_H__
|
||||
|
||||
#define __CLC_BODY <clc/math/unary_decl.inc>
|
||||
#define FUNCTION floor
|
||||
|
||||
#include <clc/math/gentype.inc>
|
||||
|
||||
#undef FUNCTION
|
||||
|
||||
#endif // __CLC_OPENCL_MATH_FLOOR_H__
|
||||
|
@ -6,9 +6,14 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#ifndef __CLC_OPENCL_MATH_FMA_H__
|
||||
#define __CLC_OPENCL_MATH_FMA_H__
|
||||
|
||||
#define __CLC_BODY <clc/shared/ternary_decl.inc>
|
||||
#define FUNCTION fma
|
||||
|
||||
#include <clc/math/gentype.inc>
|
||||
|
||||
#undef FUNCTION
|
||||
|
||||
#endif // __CLC_OPENCL_MATH_FMA_H__
|
||||
|
@ -6,9 +6,14 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#ifndef __CLC_OPENCL_MATH_FMAX_H__
|
||||
#define __CLC_OPENCL_MATH_FMAX_H__
|
||||
|
||||
#define __CLC_BODY <clc/math/binary_decl_with_scalar_second_arg.inc>
|
||||
#define FUNCTION fmax
|
||||
|
||||
#include <clc/math/gentype.inc>
|
||||
|
||||
#undef FUNCTION
|
||||
|
||||
#endif // __CLC_OPENCL_MATH_FMAX_H__
|
||||
|
@ -6,9 +6,14 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#ifndef __CLC_OPENCL_MATH_FMIN_H__
|
||||
#define __CLC_OPENCL_MATH_FMIN_H__
|
||||
|
||||
#define __CLC_BODY <clc/math/binary_decl_with_scalar_second_arg.inc>
|
||||
#define FUNCTION fmin
|
||||
|
||||
#include <clc/math/gentype.inc>
|
||||
|
||||
#undef FUNCTION
|
||||
|
||||
#endif // __CLC_OPENCL_MATH_FMIN_H__
|
||||
|
@ -6,7 +6,12 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#ifndef __CLC_OPENCL_MATH_FMOD_H__
|
||||
#define __CLC_OPENCL_MATH_FMOD_H__
|
||||
|
||||
#define FUNCTION fmod
|
||||
#define __CLC_BODY <clc/shared/binary_decl.inc>
|
||||
#include <clc/math/gentype.inc>
|
||||
#undef FUNCTION
|
||||
|
||||
#endif // __CLC_OPENCL_MATH_FMOD_H__
|
||||
|
@ -6,7 +6,12 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#ifndef __CLC_OPENCL_MATH_FRACT_H__
|
||||
#define __CLC_OPENCL_MATH_FRACT_H__
|
||||
|
||||
#define FUNCTION fract
|
||||
#define __CLC_BODY <clc/math/unary_decl_with_ptr.inc>
|
||||
#include <clc/math/gentype.inc>
|
||||
#undef FUNCTION
|
||||
|
||||
#endif // __CLC_OPENCL_MATH_FRACT_H__
|
||||
|
@ -6,8 +6,13 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#ifndef __CLC_OPENCL_MATH_FREXP_H__
|
||||
#define __CLC_OPENCL_MATH_FREXP_H__
|
||||
|
||||
#define FUNCTION frexp
|
||||
#define __CLC_BODY <clc/math/unary_decl_with_int_ptr.inc>
|
||||
#include <clc/math/gentype.inc>
|
||||
|
||||
#undef FUNCTION
|
||||
|
||||
#endif // __CLC_OPENCL_MATH_FREXP_H__
|
||||
|
@ -6,6 +6,9 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#ifndef __CLC_OPENCL_MATH_HALF_COS_H__
|
||||
#define __CLC_OPENCL_MATH_HALF_COS_H__
|
||||
|
||||
#define __CLC_BODY <clc/math/unary_decl.inc>
|
||||
#define FUNCTION half_cos
|
||||
#define __FLOAT_ONLY
|
||||
@ -13,3 +16,5 @@
|
||||
#include <clc/math/gentype.inc>
|
||||
|
||||
#undef FUNCTION
|
||||
|
||||
#endif // __CLC_OPENCL_MATH_HALF_COS_H__
|
||||
|
@ -6,9 +6,14 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#ifndef __CLC_OPENCL_MATH_HALF_DIVIDE_H__
|
||||
#define __CLC_OPENCL_MATH_HALF_DIVIDE_H__
|
||||
|
||||
#define __CLC_BODY <clc/shared/binary_decl.inc>
|
||||
#define FUNCTION half_divide
|
||||
|
||||
#include <clc/math/gentype.inc>
|
||||
|
||||
#undef FUNCTION
|
||||
|
||||
#endif // __CLC_OPENCL_MATH_HALF_DIVIDE_H__
|
||||
|
@ -6,6 +6,9 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#ifndef __CLC_OPENCL_MATH_HALF_EXP_H__
|
||||
#define __CLC_OPENCL_MATH_HALF_EXP_H__
|
||||
|
||||
#define __CLC_BODY <clc/math/unary_decl.inc>
|
||||
#define FUNCTION half_exp
|
||||
#define __FLOAT_ONLY
|
||||
@ -13,3 +16,5 @@
|
||||
#include <clc/math/gentype.inc>
|
||||
|
||||
#undef FUNCTION
|
||||
|
||||
#endif // __CLC_OPENCL_MATH_HALF_EXP_H__
|
||||
|
@ -6,6 +6,9 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#ifndef __CLC_OPENCL_MATH_HALF_EXP10_H__
|
||||
#define __CLC_OPENCL_MATH_HALF_EXP10_H__
|
||||
|
||||
#define __CLC_BODY <clc/math/unary_decl.inc>
|
||||
#define FUNCTION half_exp10
|
||||
#define __FLOAT_ONLY
|
||||
@ -13,3 +16,5 @@
|
||||
#include <clc/math/gentype.inc>
|
||||
|
||||
#undef FUNCTION
|
||||
|
||||
#endif // __CLC_OPENCL_MATH_HALF_EXP10_H__
|
||||
|
@ -6,6 +6,9 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#ifndef __CLC_OPENCL_MATH_HALF_EXP2_H__
|
||||
#define __CLC_OPENCL_MATH_HALF_EXP2_H__
|
||||
|
||||
#define __CLC_BODY <clc/math/unary_decl.inc>
|
||||
#define FUNCTION half_exp2
|
||||
#define __FLOAT_ONLY
|
||||
@ -13,3 +16,5 @@
|
||||
#include <clc/math/gentype.inc>
|
||||
|
||||
#undef FUNCTION
|
||||
|
||||
#endif // __CLC_OPENCL_MATH_HALF_EXP2_H__
|
||||
|
@ -6,6 +6,9 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#ifndef __CLC_OPENCL_MATH_HALF_LOG_H__
|
||||
#define __CLC_OPENCL_MATH_HALF_LOG_H__
|
||||
|
||||
#define __CLC_BODY <clc/math/unary_decl.inc>
|
||||
#define FUNCTION half_log
|
||||
#define __FLOAT_ONLY
|
||||
@ -13,3 +16,5 @@
|
||||
#include <clc/math/gentype.inc>
|
||||
|
||||
#undef FUNCTION
|
||||
|
||||
#endif // __CLC_OPENCL_MATH_HALF_LOG_H__
|
||||
|
@ -6,6 +6,9 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#ifndef __CLC_OPENCL_MATH_HALF_LOG10_H__
|
||||
#define __CLC_OPENCL_MATH_HALF_LOG10_H__
|
||||
|
||||
#define __CLC_BODY <clc/math/unary_decl.inc>
|
||||
#define FUNCTION half_log10
|
||||
#define __FLOAT_ONLY
|
||||
@ -13,3 +16,5 @@
|
||||
#include <clc/math/gentype.inc>
|
||||
|
||||
#undef FUNCTION
|
||||
|
||||
#endif // __CLC_OPENCL_MATH_HALF_LOG10_H__
|
||||
|
@ -6,6 +6,9 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#ifndef __CLC_OPENCL_MATH_HALF_LOG2_H__
|
||||
#define __CLC_OPENCL_MATH_HALF_LOG2_H__
|
||||
|
||||
#define __CLC_BODY <clc/math/unary_decl.inc>
|
||||
#define FUNCTION half_log2
|
||||
#define __FLOAT_ONLY
|
||||
@ -13,3 +16,5 @@
|
||||
#include <clc/math/gentype.inc>
|
||||
|
||||
#undef FUNCTION
|
||||
|
||||
#endif // __CLC_OPENCL_MATH_HALF_LOG2_H__
|
||||
|
@ -6,9 +6,14 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#ifndef __CLC_OPENCL_MATH_HALF_POWR_H__
|
||||
#define __CLC_OPENCL_MATH_HALF_POWR_H__
|
||||
|
||||
#define __CLC_BODY <clc/shared/binary_decl.inc>
|
||||
#define FUNCTION half_powr
|
||||
|
||||
#include <clc/math/gentype.inc>
|
||||
|
||||
#undef FUNCTION
|
||||
|
||||
#endif // __CLC_OPENCL_MATH_HALF_POWR_H__
|
||||
|
@ -6,6 +6,9 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#ifndef __CLC_OPENCL_MATH_HALF_RECIP_H__
|
||||
#define __CLC_OPENCL_MATH_HALF_RECIP_H__
|
||||
|
||||
#define __CLC_BODY <clc/math/unary_decl.inc>
|
||||
#define FUNCTION half_recip
|
||||
#define __FLOAT_ONLY
|
||||
@ -13,3 +16,5 @@
|
||||
#include <clc/math/gentype.inc>
|
||||
|
||||
#undef FUNCTION
|
||||
|
||||
#endif // __CLC_OPENCL_MATH_HALF_RECIP_H__
|
||||
|
@ -6,8 +6,13 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#ifndef __CLC_OPENCL_MATH_HALF_RSQRT_H__
|
||||
#define __CLC_OPENCL_MATH_HALF_RSQRT_H__
|
||||
|
||||
#define __CLC_BODY <clc/math/unary_decl.inc>
|
||||
#define FUNCTION half_rsqrt
|
||||
#define __FLOAT_ONLY
|
||||
#include <clc/math/gentype.inc>
|
||||
#undef FUNCTION
|
||||
|
||||
#endif // __CLC_OPENCL_MATH_HALF_RSQRT_H__
|
||||
|
@ -6,6 +6,9 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#ifndef __CLC_OPENCL_MATH_HALF_SIN_H__
|
||||
#define __CLC_OPENCL_MATH_HALF_SIN_H__
|
||||
|
||||
#define __CLC_BODY <clc/math/unary_decl.inc>
|
||||
#define FUNCTION half_sin
|
||||
#define __FLOAT_ONLY
|
||||
@ -13,3 +16,5 @@
|
||||
#include <clc/math/gentype.inc>
|
||||
|
||||
#undef FUNCTION
|
||||
|
||||
#endif // __CLC_OPENCL_MATH_HALF_SIN_H__
|
||||
|
@ -6,8 +6,13 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#ifndef __CLC_OPENCL_MATH_HALF_SQRT_H__
|
||||
#define __CLC_OPENCL_MATH_HALF_SQRT_H__
|
||||
|
||||
#define __CLC_BODY <clc/math/unary_decl.inc>
|
||||
#define FUNCTION half_sqrt
|
||||
#define __FLOAT_ONLY
|
||||
#include <clc/math/gentype.inc>
|
||||
#undef FUNCTION
|
||||
|
||||
#endif // __CLC_OPENCL_MATH_HALF_SQRT_H__
|
||||
|
@ -6,6 +6,9 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#ifndef __CLC_OPENCL_MATH_HALF_TAN_H__
|
||||
#define __CLC_OPENCL_MATH_HALF_TAN_H__
|
||||
|
||||
#define __CLC_BODY <clc/math/unary_decl.inc>
|
||||
#define FUNCTION half_tan
|
||||
#define __FLOAT_ONLY
|
||||
@ -13,3 +16,5 @@
|
||||
#include <clc/math/gentype.inc>
|
||||
|
||||
#undef FUNCTION
|
||||
|
||||
#endif // __CLC_OPENCL_MATH_HALF_TAN_H__
|
||||
|
@ -6,9 +6,14 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#ifndef __CLC_OPENCL_MATH_HYPOT_H__
|
||||
#define __CLC_OPENCL_MATH_HYPOT_H__
|
||||
|
||||
#define FUNCTION hypot
|
||||
#define __CLC_BODY <clc/shared/binary_decl.inc>
|
||||
|
||||
#include <clc/math/gentype.inc>
|
||||
|
||||
#undef FUNCTION
|
||||
|
||||
#endif // __CLC_OPENCL_MATH_HYPOT_H__
|
||||
|
@ -6,9 +6,14 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#ifndef __CLC_OPENCL_MATH_ILOGB_H__
|
||||
#define __CLC_OPENCL_MATH_ILOGB_H__
|
||||
|
||||
#define FUNCTION ilogb
|
||||
#define __CLC_BODY <clc/math/unary_decl_with_int_return.inc>
|
||||
|
||||
#include <clc/math/gentype.inc>
|
||||
|
||||
#undef FUNCTION
|
||||
|
||||
#endif // __CLC_OPENCL_MATH_ILOGB_H__
|
||||
|
@ -6,6 +6,9 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#ifndef __CLC_OPENCL_MATH_LDEXP_H__
|
||||
#define __CLC_OPENCL_MATH_LDEXP_H__
|
||||
|
||||
#define FUNCTION ldexp
|
||||
#define __CLC_BODY <clc/shared/binary_decl_with_int_second_arg.inc>
|
||||
#include <clc/math/gentype.inc>
|
||||
@ -13,3 +16,5 @@
|
||||
|
||||
#define __CLC_BODY <clc/opencl/math/ldexp.inc>
|
||||
#include <clc/math/gentype.inc>
|
||||
|
||||
#endif // __CLC_OPENCL_MATH_LDEXP_H__
|
||||
|
@ -6,9 +6,14 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#ifndef __CLC_OPENCL_MATH_LGAMMA_H__
|
||||
#define __CLC_OPENCL_MATH_LGAMMA_H__
|
||||
|
||||
#define __CLC_BODY <clc/math/unary_decl.inc>
|
||||
#define FUNCTION lgamma
|
||||
|
||||
#include <clc/math/gentype.inc>
|
||||
|
||||
#undef FUNCTION
|
||||
|
||||
#endif // __CLC_OPENCL_MATH_LGAMMA_H__
|
||||
|
@ -6,9 +6,14 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#ifndef __CLC_OPENCL_MATH_LGAMMA_R_H__
|
||||
#define __CLC_OPENCL_MATH_LGAMMA_R_H__
|
||||
|
||||
#define FUNCTION lgamma_r
|
||||
#define __CLC_BODY <clc/math/unary_decl_with_int_ptr.inc>
|
||||
|
||||
#include <clc/math/gentype.inc>
|
||||
|
||||
#undef FUNCTION
|
||||
|
||||
#endif // __CLC_OPENCL_MATH_LGAMMA_R_H__
|
||||
|
@ -6,9 +6,14 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#ifndef __CLC_OPENCL_MATH_LOG_H__
|
||||
#define __CLC_OPENCL_MATH_LOG_H__
|
||||
|
||||
#define __CLC_BODY <clc/math/unary_decl.inc>
|
||||
#define FUNCTION log
|
||||
|
||||
#include <clc/math/gentype.inc>
|
||||
|
||||
#undef FUNCTION
|
||||
|
||||
#endif // __CLC_OPENCL_MATH_LOG_H__
|
||||
|
@ -6,9 +6,14 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#ifndef __CLC_OPENCL_MATH_LOG10_H__
|
||||
#define __CLC_OPENCL_MATH_LOG10_H__
|
||||
|
||||
#define __CLC_BODY <clc/math/unary_decl.inc>
|
||||
#define FUNCTION log10
|
||||
|
||||
#include <clc/math/gentype.inc>
|
||||
|
||||
#undef FUNCTION
|
||||
|
||||
#endif // __CLC_OPENCL_MATH_LOG10_H__
|
||||
|
@ -6,9 +6,14 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#ifndef __CLC_OPENCL_MATH_LOG1P_H__
|
||||
#define __CLC_OPENCL_MATH_LOG1P_H__
|
||||
|
||||
#define __CLC_BODY <clc/math/unary_decl.inc>
|
||||
#define FUNCTION log1p
|
||||
|
||||
#include <clc/math/gentype.inc>
|
||||
|
||||
#undef FUNCTION
|
||||
|
||||
#endif // __CLC_OPENCL_MATH_LOG1P_H__
|
||||
|
@ -6,9 +6,14 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#ifndef __CLC_OPENCL_MATH_LOG2_H__
|
||||
#define __CLC_OPENCL_MATH_LOG2_H__
|
||||
|
||||
#define __CLC_BODY <clc/math/unary_decl.inc>
|
||||
#define FUNCTION log2
|
||||
|
||||
#include <clc/math/gentype.inc>
|
||||
|
||||
#undef FUNCTION
|
||||
|
||||
#endif // __CLC_OPENCL_MATH_LOG2_H__
|
||||
|
@ -6,9 +6,14 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#ifndef __CLC_OPENCL_MATH_LOGB_H__
|
||||
#define __CLC_OPENCL_MATH_LOGB_H__
|
||||
|
||||
#define __CLC_BODY <clc/math/unary_decl.inc>
|
||||
#define FUNCTION logb
|
||||
|
||||
#include <clc/math/gentype.inc>
|
||||
|
||||
#undef FUNCTION
|
||||
|
||||
#endif // __CLC_OPENCL_MATH_LOGB_H__
|
||||
|
@ -6,9 +6,14 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#ifndef __CLC_OPENCL_MATH_MAD_H__
|
||||
#define __CLC_OPENCL_MATH_MAD_H__
|
||||
|
||||
#define __CLC_BODY <clc/shared/ternary_decl.inc>
|
||||
#define FUNCTION mad
|
||||
|
||||
#include <clc/math/gentype.inc>
|
||||
|
||||
#undef FUNCTION
|
||||
|
||||
#endif // __CLC_OPENCL_MATH_MAD_H__
|
||||
|
@ -6,9 +6,14 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#ifndef __CLC_OPENCL_MATH_MAXMAG_H__
|
||||
#define __CLC_OPENCL_MATH_MAXMAG_H__
|
||||
|
||||
#define __CLC_BODY <clc/shared/binary_decl.inc>
|
||||
#define FUNCTION maxmag
|
||||
|
||||
#include <clc/math/gentype.inc>
|
||||
|
||||
#undef FUNCTION
|
||||
|
||||
#endif // __CLC_OPENCL_MATH_MAXMAG_H__
|
||||
|
@ -6,9 +6,14 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#ifndef __CLC_OPENCL_MATH_MINMAG_H__
|
||||
#define __CLC_OPENCL_MATH_MINMAG_H__
|
||||
|
||||
#define __CLC_BODY <clc/shared/binary_decl.inc>
|
||||
#define FUNCTION minmag
|
||||
|
||||
#include <clc/math/gentype.inc>
|
||||
|
||||
#undef FUNCTION
|
||||
|
||||
#endif // __CLC_OPENCL_MATH_MINMAG_H__
|
||||
|
@ -6,8 +6,13 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#ifndef __CLC_OPENCL_MATH_MODF_H__
|
||||
#define __CLC_OPENCL_MATH_MODF_H__
|
||||
|
||||
#define FUNCTION modf
|
||||
#define __CLC_BODY <clc/math/unary_decl_with_ptr.inc>
|
||||
#include <clc/math/gentype.inc>
|
||||
|
||||
#undef FUNCTION
|
||||
|
||||
#endif // __CLC_OPENCL_MATH_MODF_H__
|
||||
|
@ -6,5 +6,10 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#ifndef __CLC_OPENCL_MATH_NAN_H__
|
||||
#define __CLC_OPENCL_MATH_NAN_H__
|
||||
|
||||
#define __CLC_BODY <clc/opencl/math/nan.inc>
|
||||
#include <clc/math/gentype.inc>
|
||||
|
||||
#endif // __CLC_OPENCL_MATH_NAN_H__
|
||||
|
@ -6,6 +6,9 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#ifndef __CLC_OPENCL_MATH_NATIVE_COS_H__
|
||||
#define __CLC_OPENCL_MATH_NATIVE_COS_H__
|
||||
|
||||
#define __CLC_BODY <clc/math/unary_decl.inc>
|
||||
#define FUNCTION native_cos
|
||||
#define __FLOAT_ONLY
|
||||
@ -13,3 +16,5 @@
|
||||
#include <clc/math/gentype.inc>
|
||||
|
||||
#undef FUNCTION
|
||||
|
||||
#endif // __CLC_OPENCL_MATH_NATIVE_COS_H__
|
||||
|
@ -6,9 +6,14 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#ifndef __CLC_OPENCL_MATH_NATIVE_DIVIDE_H__
|
||||
#define __CLC_OPENCL_MATH_NATIVE_DIVIDE_H__
|
||||
|
||||
#define __CLC_BODY <clc/shared/binary_decl.inc>
|
||||
#define FUNCTION native_divide
|
||||
|
||||
#include <clc/math/gentype.inc>
|
||||
|
||||
#undef FUNCTION
|
||||
|
||||
#endif // __CLC_OPENCL_MATH_NATIVE_DIVIDE_H__
|
||||
|
@ -6,6 +6,9 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#ifndef __CLC_OPENCL_MATH_NATIVE_EXP_H__
|
||||
#define __CLC_OPENCL_MATH_NATIVE_EXP_H__
|
||||
|
||||
#define __CLC_BODY <clc/math/unary_decl.inc>
|
||||
#define FUNCTION native_exp
|
||||
#define __FLOAT_ONLY
|
||||
@ -13,3 +16,5 @@
|
||||
#include <clc/math/gentype.inc>
|
||||
|
||||
#undef FUNCTION
|
||||
|
||||
#endif // __CLC_OPENCL_MATH_NATIVE_EXP_H__
|
||||
|
@ -6,6 +6,9 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#ifndef __CLC_OPENCL_MATH_NATIVE_EXP10_H__
|
||||
#define __CLC_OPENCL_MATH_NATIVE_EXP10_H__
|
||||
|
||||
#define __CLC_BODY <clc/math/unary_decl.inc>
|
||||
#define FUNCTION native_exp10
|
||||
#define __FLOAT_ONLY
|
||||
@ -13,3 +16,5 @@
|
||||
#include <clc/math/gentype.inc>
|
||||
|
||||
#undef FUNCTION
|
||||
|
||||
#endif // __CLC_OPENCL_MATH_NATIVE_EXP10_H__
|
||||
|
@ -6,6 +6,9 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#ifndef __CLC_OPENCL_MATH_NATIVE_EXP2_H__
|
||||
#define __CLC_OPENCL_MATH_NATIVE_EXP2_H__
|
||||
|
||||
#define __CLC_BODY <clc/math/unary_decl.inc>
|
||||
#define FUNCTION native_exp2
|
||||
#define __FLOAT_ONLY
|
||||
@ -13,3 +16,5 @@
|
||||
#include <clc/math/gentype.inc>
|
||||
|
||||
#undef FUNCTION
|
||||
|
||||
#endif // __CLC_OPENCL_MATH_NATIVE_EXP2_H__
|
||||
|
@ -6,6 +6,9 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#ifndef __CLC_OPENCL_MATH_NATIVE_LOG_H__
|
||||
#define __CLC_OPENCL_MATH_NATIVE_LOG_H__
|
||||
|
||||
#define __CLC_BODY <clc/math/unary_decl.inc>
|
||||
#define FUNCTION native_log
|
||||
#define __FLOAT_ONLY
|
||||
@ -13,3 +16,5 @@
|
||||
#include <clc/math/gentype.inc>
|
||||
|
||||
#undef FUNCTION
|
||||
|
||||
#endif // __CLC_OPENCL_MATH_NATIVE_LOG_H__
|
||||
|
@ -6,6 +6,9 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#ifndef __CLC_OPENCL_MATH_NATIVE_LOG10_H__
|
||||
#define __CLC_OPENCL_MATH_NATIVE_LOG10_H__
|
||||
|
||||
#define __CLC_BODY <clc/math/unary_decl.inc>
|
||||
#define FUNCTION native_log10
|
||||
#define __FLOAT_ONLY
|
||||
@ -13,3 +16,5 @@
|
||||
#include <clc/math/gentype.inc>
|
||||
|
||||
#undef FUNCTION
|
||||
|
||||
#endif // __CLC_OPENCL_MATH_NATIVE_LOG10_H__
|
||||
|
@ -6,6 +6,9 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#ifndef __CLC_OPENCL_MATH_NATIVE_LOG2_H__
|
||||
#define __CLC_OPENCL_MATH_NATIVE_LOG2_H__
|
||||
|
||||
#define __CLC_BODY <clc/math/unary_decl.inc>
|
||||
#define FUNCTION native_log2
|
||||
#define __FLOAT_ONLY
|
||||
@ -13,3 +16,5 @@
|
||||
#include <clc/math/gentype.inc>
|
||||
|
||||
#undef FUNCTION
|
||||
|
||||
#endif // __CLC_OPENCL_MATH_NATIVE_LOG2_H__
|
||||
|
@ -6,9 +6,14 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#ifndef __CLC_OPENCL_MATH_NATIVE_POWR_H__
|
||||
#define __CLC_OPENCL_MATH_NATIVE_POWR_H__
|
||||
|
||||
#define __CLC_BODY <clc/shared/binary_decl.inc>
|
||||
#define FUNCTION native_powr
|
||||
|
||||
#include <clc/math/gentype.inc>
|
||||
|
||||
#undef FUNCTION
|
||||
|
||||
#endif // __CLC_OPENCL_MATH_NATIVE_POWR_H__
|
||||
|
@ -6,6 +6,9 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#ifndef __CLC_OPENCL_MATH_NATIVE_RECIP_H__
|
||||
#define __CLC_OPENCL_MATH_NATIVE_RECIP_H__
|
||||
|
||||
#define __CLC_BODY <clc/math/unary_decl.inc>
|
||||
#define FUNCTION native_recip
|
||||
#define __FLOAT_ONLY
|
||||
@ -13,3 +16,5 @@
|
||||
#include <clc/math/gentype.inc>
|
||||
|
||||
#undef FUNCTION
|
||||
|
||||
#endif // __CLC_OPENCL_MATH_NATIVE_RECIP_H__
|
||||
|
@ -6,6 +6,9 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#ifndef __CLC_OPENCL_MATH_NATIVE_RSQRT_H__
|
||||
#define __CLC_OPENCL_MATH_NATIVE_RSQRT_H__
|
||||
|
||||
#define __CLC_BODY <clc/math/unary_decl.inc>
|
||||
#define FUNCTION native_rsqrt
|
||||
#define __FLOAT_ONLY
|
||||
@ -13,3 +16,5 @@
|
||||
#include <clc/math/gentype.inc>
|
||||
|
||||
#undef FUNCTION
|
||||
|
||||
#endif // __CLC_OPENCL_MATH_NATIVE_RSQRT_H__
|
||||
|
@ -6,6 +6,9 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#ifndef __CLC_OPENCL_MATH_NATIVE_SIN_H__
|
||||
#define __CLC_OPENCL_MATH_NATIVE_SIN_H__
|
||||
|
||||
#define __CLC_BODY <clc/math/unary_decl.inc>
|
||||
#define FUNCTION native_sin
|
||||
#define __FLOAT_ONLY
|
||||
@ -13,3 +16,5 @@
|
||||
#include <clc/math/gentype.inc>
|
||||
|
||||
#undef FUNCTION
|
||||
|
||||
#endif // __CLC_OPENCL_MATH_NATIVE_SIN_H__
|
||||
|
@ -6,6 +6,9 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#ifndef __CLC_OPENCL_MATH_NATIVE_SQRT_H__
|
||||
#define __CLC_OPENCL_MATH_NATIVE_SQRT_H__
|
||||
|
||||
#define __CLC_BODY <clc/math/unary_decl.inc>
|
||||
#define FUNCTION native_sqrt
|
||||
#define __FLOAT_ONLY
|
||||
@ -13,3 +16,5 @@
|
||||
#include <clc/math/gentype.inc>
|
||||
|
||||
#undef FUNCTION
|
||||
|
||||
#endif // __CLC_OPENCL_MATH_NATIVE_SQRT_H__
|
||||
|
@ -6,6 +6,9 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#ifndef __CLC_OPENCL_MATH_NATIVE_TAN_H__
|
||||
#define __CLC_OPENCL_MATH_NATIVE_TAN_H__
|
||||
|
||||
#define __CLC_BODY <clc/math/unary_decl.inc>
|
||||
#define FUNCTION native_tan
|
||||
#define __FLOAT_ONLY
|
||||
@ -13,3 +16,5 @@
|
||||
#include <clc/math/gentype.inc>
|
||||
|
||||
#undef FUNCTION
|
||||
|
||||
#endif // __CLC_OPENCL_MATH_NATIVE_TAN_H__
|
||||
|
@ -6,9 +6,14 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#ifndef __CLC_OPENCL_MATH_NEXTAFTER_H__
|
||||
#define __CLC_OPENCL_MATH_NEXTAFTER_H__
|
||||
|
||||
#define FUNCTION nextafter
|
||||
#define __CLC_BODY <clc/shared/binary_decl.inc>
|
||||
|
||||
#include <clc/math/gentype.inc>
|
||||
|
||||
#undef FUNCTION
|
||||
|
||||
#endif // __CLC_OPENCL_MATH_NEXTAFTER_H__
|
||||
|
@ -6,7 +6,12 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#ifndef __CLC_OPENCL_MATH_POW_H__
|
||||
#define __CLC_OPENCL_MATH_POW_H__
|
||||
|
||||
#define FUNCTION pow
|
||||
#define __CLC_BODY <clc/shared/binary_decl.inc>
|
||||
#include <clc/math/gentype.inc>
|
||||
#undef FUNCTION
|
||||
|
||||
#endif // __CLC_OPENCL_MATH_POW_H__
|
||||
|
@ -6,9 +6,14 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#ifndef __CLC_OPENCL_MATH_POWN_H__
|
||||
#define __CLC_OPENCL_MATH_POWN_H__
|
||||
|
||||
#define FUNCTION pown
|
||||
#define __CLC_BODY <clc/shared/binary_decl_with_int_second_arg.inc>
|
||||
|
||||
#include <clc/math/gentype.inc>
|
||||
|
||||
#undef FUNCTION
|
||||
|
||||
#endif // __CLC_OPENCL_MATH_POWN_H__
|
||||
|
@ -6,7 +6,12 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#ifndef __CLC_OPENCL_MATH_POWR_H__
|
||||
#define __CLC_OPENCL_MATH_POWR_H__
|
||||
|
||||
#define FUNCTION powr
|
||||
#define __CLC_BODY <clc/shared/binary_decl.inc>
|
||||
#include <clc/math/gentype.inc>
|
||||
#undef FUNCTION
|
||||
|
||||
#endif // __CLC_OPENCL_MATH_POWR_H__
|
||||
|
@ -6,7 +6,12 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#ifndef __CLC_OPENCL_MATH_REMAINDER_H__
|
||||
#define __CLC_OPENCL_MATH_REMAINDER_H__
|
||||
|
||||
#define FUNCTION remainder
|
||||
#define __CLC_BODY <clc/shared/binary_decl.inc>
|
||||
#include <clc/math/gentype.inc>
|
||||
#undef FUNCTION
|
||||
|
||||
#endif // __CLC_OPENCL_MATH_REMAINDER_H__
|
||||
|
@ -6,6 +6,9 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#ifndef __CLC_OPENCL_MATH_REMQUO_H__
|
||||
#define __CLC_OPENCL_MATH_REMQUO_H__
|
||||
|
||||
#define FUNCTION remquo
|
||||
|
||||
#define __CLC_BODY <clc/math/remquo_decl.inc>
|
||||
@ -19,3 +22,5 @@
|
||||
#endif
|
||||
|
||||
#undef FUNCTION
|
||||
|
||||
#endif // __CLC_OPENCL_MATH_REMQUO_H__
|
||||
|
@ -6,9 +6,14 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#ifndef __CLC_OPENCL_MATH_RINT_H__
|
||||
#define __CLC_OPENCL_MATH_RINT_H__
|
||||
|
||||
#define __CLC_BODY <clc/math/unary_decl.inc>
|
||||
#define FUNCTION rint
|
||||
|
||||
#include <clc/math/gentype.inc>
|
||||
|
||||
#undef FUNCTION
|
||||
|
||||
#endif // __CLC_OPENCL_MATH_RINT_H__
|
||||
|
@ -6,9 +6,14 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#ifndef __CLC_OPENCL_MATH_ROOTN_H__
|
||||
#define __CLC_OPENCL_MATH_ROOTN_H__
|
||||
|
||||
#define __CLC_BODY <clc/shared/binary_decl_with_int_second_arg.inc>
|
||||
#define FUNCTION rootn
|
||||
|
||||
#include <clc/math/gentype.inc>
|
||||
|
||||
#undef FUNCTION
|
||||
|
||||
#endif // __CLC_OPENCL_MATH_ROOTN_H__
|
||||
|
@ -6,9 +6,14 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#ifndef __CLC_OPENCL_MATH_ROUND_H__
|
||||
#define __CLC_OPENCL_MATH_ROUND_H__
|
||||
|
||||
#define __CLC_BODY <clc/math/unary_decl.inc>
|
||||
#define FUNCTION round
|
||||
|
||||
#include <clc/math/gentype.inc>
|
||||
|
||||
#undef FUNCTION
|
||||
|
||||
#endif // __CLC_OPENCL_MATH_ROUND_H__
|
||||
|
@ -6,9 +6,14 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#ifndef __CLC_OPENCL_MATH_RSQRT_H__
|
||||
#define __CLC_OPENCL_MATH_RSQRT_H__
|
||||
|
||||
#define __CLC_BODY <clc/math/unary_decl.inc>
|
||||
#define FUNCTION rsqrt
|
||||
|
||||
#include <clc/math/gentype.inc>
|
||||
|
||||
#undef FUNCTION
|
||||
|
||||
#endif // __CLC_OPENCL_MATH_RSQRT_H__
|
||||
|
@ -6,9 +6,14 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#ifndef __CLC_OPENCL_MATH_SIN_H__
|
||||
#define __CLC_OPENCL_MATH_SIN_H__
|
||||
|
||||
#define __CLC_BODY <clc/math/unary_decl.inc>
|
||||
#define FUNCTION sin
|
||||
|
||||
#include <clc/math/gentype.inc>
|
||||
|
||||
#undef FUNCTION
|
||||
|
||||
#endif // __CLC_OPENCL_MATH_SIN_H__
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user