diff options
Diffstat (limited to 'renderscript/include/rs_core_math.rsh')
-rw-r--r-- | renderscript/include/rs_core_math.rsh | 603 |
1 files changed, 180 insertions, 423 deletions
diff --git a/renderscript/include/rs_core_math.rsh b/renderscript/include/rs_core_math.rsh index b6058ee..585b91a 100644 --- a/renderscript/include/rs_core_math.rsh +++ b/renderscript/include/rs_core_math.rsh @@ -2954,812 +2954,812 @@ extern uint4 __attribute__((const, overloadable))convert_uint4(uint4 v); #if (defined(RS_VERSION) && (RS_VERSION >= 21)) /* - * Component wise conversion from double2 to float2 + * Component wise conversion from double2 to double2 * * Supported by API versions 21 and newer. */ -extern float2 __attribute__((const, overloadable))convert_float2(double2 v); +extern double2 __attribute__((const, overloadable))convert_double2(double2 v); #endif #if (defined(RS_VERSION) && (RS_VERSION >= 21)) /* - * Component wise conversion from double3 to float3 + * Component wise conversion from double3 to double3 * * Supported by API versions 21 and newer. */ -extern float3 __attribute__((const, overloadable))convert_float3(double3 v); +extern double3 __attribute__((const, overloadable))convert_double3(double3 v); #endif #if (defined(RS_VERSION) && (RS_VERSION >= 21)) /* - * Component wise conversion from double4 to float4 + * Component wise conversion from double4 to double4 * * Supported by API versions 21 and newer. */ -extern float4 __attribute__((const, overloadable))convert_float4(double4 v); +extern double4 __attribute__((const, overloadable))convert_double4(double4 v); #endif #if (defined(RS_VERSION) && (RS_VERSION >= 21)) /* - * Component wise conversion from long2 to float2 + * Component wise conversion from long2 to double2 * * Supported by API versions 21 and newer. */ -extern float2 __attribute__((const, overloadable))convert_float2(long2 v); +extern double2 __attribute__((const, overloadable))convert_double2(long2 v); #endif #if (defined(RS_VERSION) && (RS_VERSION >= 21)) /* - * Component wise conversion from long3 to float3 + * Component wise conversion from long3 to double3 * * Supported by API versions 21 and newer. */ -extern float3 __attribute__((const, overloadable))convert_float3(long3 v); +extern double3 __attribute__((const, overloadable))convert_double3(long3 v); #endif #if (defined(RS_VERSION) && (RS_VERSION >= 21)) /* - * Component wise conversion from long4 to float4 + * Component wise conversion from long4 to double4 * * Supported by API versions 21 and newer. */ -extern float4 __attribute__((const, overloadable))convert_float4(long4 v); +extern double4 __attribute__((const, overloadable))convert_double4(long4 v); #endif #if (defined(RS_VERSION) && (RS_VERSION >= 21)) /* - * Component wise conversion from ulong2 to float2 + * Component wise conversion from ulong2 to double2 * * Supported by API versions 21 and newer. */ -extern float2 __attribute__((const, overloadable))convert_float2(ulong2 v); +extern double2 __attribute__((const, overloadable))convert_double2(ulong2 v); #endif #if (defined(RS_VERSION) && (RS_VERSION >= 21)) /* - * Component wise conversion from ulong3 to float3 + * Component wise conversion from ulong3 to double3 * * Supported by API versions 21 and newer. */ -extern float3 __attribute__((const, overloadable))convert_float3(ulong3 v); +extern double3 __attribute__((const, overloadable))convert_double3(ulong3 v); #endif #if (defined(RS_VERSION) && (RS_VERSION >= 21)) /* - * Component wise conversion from ulong4 to float4 + * Component wise conversion from ulong4 to double4 * * Supported by API versions 21 and newer. */ -extern float4 __attribute__((const, overloadable))convert_float4(ulong4 v); +extern double4 __attribute__((const, overloadable))convert_double4(ulong4 v); #endif #if (defined(RS_VERSION) && (RS_VERSION >= 21)) /* - * Component wise conversion from double2 to double2 + * Component wise conversion from double2 to long2 * * Supported by API versions 21 and newer. */ -extern double2 __attribute__((const, overloadable))convert_double2(double2 v); +extern long2 __attribute__((const, overloadable))convert_long2(double2 v); #endif #if (defined(RS_VERSION) && (RS_VERSION >= 21)) /* - * Component wise conversion from double3 to double3 + * Component wise conversion from double3 to long3 * * Supported by API versions 21 and newer. */ -extern double3 __attribute__((const, overloadable))convert_double3(double3 v); +extern long3 __attribute__((const, overloadable))convert_long3(double3 v); #endif #if (defined(RS_VERSION) && (RS_VERSION >= 21)) /* - * Component wise conversion from double4 to double4 + * Component wise conversion from double4 to long4 * * Supported by API versions 21 and newer. */ -extern double4 __attribute__((const, overloadable))convert_double4(double4 v); +extern long4 __attribute__((const, overloadable))convert_long4(double4 v); #endif #if (defined(RS_VERSION) && (RS_VERSION >= 21)) /* - * Component wise conversion from long2 to double2 + * Component wise conversion from long2 to long2 * * Supported by API versions 21 and newer. */ -extern double2 __attribute__((const, overloadable))convert_double2(long2 v); +extern long2 __attribute__((const, overloadable))convert_long2(long2 v); #endif #if (defined(RS_VERSION) && (RS_VERSION >= 21)) /* - * Component wise conversion from long3 to double3 + * Component wise conversion from long3 to long3 * * Supported by API versions 21 and newer. */ -extern double3 __attribute__((const, overloadable))convert_double3(long3 v); +extern long3 __attribute__((const, overloadable))convert_long3(long3 v); #endif #if (defined(RS_VERSION) && (RS_VERSION >= 21)) /* - * Component wise conversion from long4 to double4 + * Component wise conversion from long4 to long4 * * Supported by API versions 21 and newer. */ -extern double4 __attribute__((const, overloadable))convert_double4(long4 v); +extern long4 __attribute__((const, overloadable))convert_long4(long4 v); #endif #if (defined(RS_VERSION) && (RS_VERSION >= 21)) /* - * Component wise conversion from ulong2 to double2 + * Component wise conversion from ulong2 to long2 * * Supported by API versions 21 and newer. */ -extern double2 __attribute__((const, overloadable))convert_double2(ulong2 v); +extern long2 __attribute__((const, overloadable))convert_long2(ulong2 v); #endif #if (defined(RS_VERSION) && (RS_VERSION >= 21)) /* - * Component wise conversion from ulong3 to double3 + * Component wise conversion from ulong3 to long3 * * Supported by API versions 21 and newer. */ -extern double3 __attribute__((const, overloadable))convert_double3(ulong3 v); +extern long3 __attribute__((const, overloadable))convert_long3(ulong3 v); #endif #if (defined(RS_VERSION) && (RS_VERSION >= 21)) /* - * Component wise conversion from ulong4 to double4 + * Component wise conversion from ulong4 to long4 * * Supported by API versions 21 and newer. */ -extern double4 __attribute__((const, overloadable))convert_double4(ulong4 v); +extern long4 __attribute__((const, overloadable))convert_long4(ulong4 v); #endif #if (defined(RS_VERSION) && (RS_VERSION >= 21)) /* - * Component wise conversion from double2 to char2 + * Component wise conversion from double2 to ulong2 * * Supported by API versions 21 and newer. */ -extern char2 __attribute__((const, overloadable))convert_char2(double2 v); +extern ulong2 __attribute__((const, overloadable))convert_ulong2(double2 v); #endif #if (defined(RS_VERSION) && (RS_VERSION >= 21)) /* - * Component wise conversion from double3 to char3 + * Component wise conversion from double3 to ulong3 * * Supported by API versions 21 and newer. */ -extern char3 __attribute__((const, overloadable))convert_char3(double3 v); +extern ulong3 __attribute__((const, overloadable))convert_ulong3(double3 v); #endif #if (defined(RS_VERSION) && (RS_VERSION >= 21)) /* - * Component wise conversion from double4 to char4 + * Component wise conversion from double4 to ulong4 * * Supported by API versions 21 and newer. */ -extern char4 __attribute__((const, overloadable))convert_char4(double4 v); +extern ulong4 __attribute__((const, overloadable))convert_ulong4(double4 v); #endif #if (defined(RS_VERSION) && (RS_VERSION >= 21)) /* - * Component wise conversion from long2 to char2 + * Component wise conversion from long2 to ulong2 * * Supported by API versions 21 and newer. */ -extern char2 __attribute__((const, overloadable))convert_char2(long2 v); +extern ulong2 __attribute__((const, overloadable))convert_ulong2(long2 v); #endif #if (defined(RS_VERSION) && (RS_VERSION >= 21)) /* - * Component wise conversion from long3 to char3 + * Component wise conversion from long3 to ulong3 * * Supported by API versions 21 and newer. */ -extern char3 __attribute__((const, overloadable))convert_char3(long3 v); +extern ulong3 __attribute__((const, overloadable))convert_ulong3(long3 v); #endif #if (defined(RS_VERSION) && (RS_VERSION >= 21)) /* - * Component wise conversion from long4 to char4 + * Component wise conversion from long4 to ulong4 * * Supported by API versions 21 and newer. */ -extern char4 __attribute__((const, overloadable))convert_char4(long4 v); +extern ulong4 __attribute__((const, overloadable))convert_ulong4(long4 v); #endif #if (defined(RS_VERSION) && (RS_VERSION >= 21)) /* - * Component wise conversion from ulong2 to char2 + * Component wise conversion from ulong2 to ulong2 * * Supported by API versions 21 and newer. */ -extern char2 __attribute__((const, overloadable))convert_char2(ulong2 v); +extern ulong2 __attribute__((const, overloadable))convert_ulong2(ulong2 v); #endif #if (defined(RS_VERSION) && (RS_VERSION >= 21)) /* - * Component wise conversion from ulong3 to char3 + * Component wise conversion from ulong3 to ulong3 * * Supported by API versions 21 and newer. */ -extern char3 __attribute__((const, overloadable))convert_char3(ulong3 v); +extern ulong3 __attribute__((const, overloadable))convert_ulong3(ulong3 v); #endif #if (defined(RS_VERSION) && (RS_VERSION >= 21)) /* - * Component wise conversion from ulong4 to char4 + * Component wise conversion from ulong4 to ulong4 * * Supported by API versions 21 and newer. */ -extern char4 __attribute__((const, overloadable))convert_char4(ulong4 v); +extern ulong4 __attribute__((const, overloadable))convert_ulong4(ulong4 v); #endif #if (defined(RS_VERSION) && (RS_VERSION >= 21)) /* - * Component wise conversion from double2 to uchar2 + * Component wise conversion from double2 to float2 * * Supported by API versions 21 and newer. */ -extern uchar2 __attribute__((const, overloadable))convert_uchar2(double2 v); +extern float2 __attribute__((const, overloadable))convert_float2(double2 v); #endif #if (defined(RS_VERSION) && (RS_VERSION >= 21)) /* - * Component wise conversion from double3 to uchar3 + * Component wise conversion from double3 to float3 * * Supported by API versions 21 and newer. */ -extern uchar3 __attribute__((const, overloadable))convert_uchar3(double3 v); +extern float3 __attribute__((const, overloadable))convert_float3(double3 v); #endif #if (defined(RS_VERSION) && (RS_VERSION >= 21)) /* - * Component wise conversion from double4 to uchar4 + * Component wise conversion from double4 to float4 * * Supported by API versions 21 and newer. */ -extern uchar4 __attribute__((const, overloadable))convert_uchar4(double4 v); +extern float4 __attribute__((const, overloadable))convert_float4(double4 v); #endif #if (defined(RS_VERSION) && (RS_VERSION >= 21)) /* - * Component wise conversion from long2 to uchar2 + * Component wise conversion from long2 to float2 * * Supported by API versions 21 and newer. */ -extern uchar2 __attribute__((const, overloadable))convert_uchar2(long2 v); +extern float2 __attribute__((const, overloadable))convert_float2(long2 v); #endif #if (defined(RS_VERSION) && (RS_VERSION >= 21)) /* - * Component wise conversion from long3 to uchar3 + * Component wise conversion from long3 to float3 * * Supported by API versions 21 and newer. */ -extern uchar3 __attribute__((const, overloadable))convert_uchar3(long3 v); +extern float3 __attribute__((const, overloadable))convert_float3(long3 v); #endif #if (defined(RS_VERSION) && (RS_VERSION >= 21)) /* - * Component wise conversion from long4 to uchar4 + * Component wise conversion from long4 to float4 * * Supported by API versions 21 and newer. */ -extern uchar4 __attribute__((const, overloadable))convert_uchar4(long4 v); +extern float4 __attribute__((const, overloadable))convert_float4(long4 v); #endif #if (defined(RS_VERSION) && (RS_VERSION >= 21)) /* - * Component wise conversion from ulong2 to uchar2 + * Component wise conversion from ulong2 to float2 * * Supported by API versions 21 and newer. */ -extern uchar2 __attribute__((const, overloadable))convert_uchar2(ulong2 v); +extern float2 __attribute__((const, overloadable))convert_float2(ulong2 v); #endif #if (defined(RS_VERSION) && (RS_VERSION >= 21)) /* - * Component wise conversion from ulong3 to uchar3 + * Component wise conversion from ulong3 to float3 * * Supported by API versions 21 and newer. */ -extern uchar3 __attribute__((const, overloadable))convert_uchar3(ulong3 v); +extern float3 __attribute__((const, overloadable))convert_float3(ulong3 v); #endif #if (defined(RS_VERSION) && (RS_VERSION >= 21)) /* - * Component wise conversion from ulong4 to uchar4 + * Component wise conversion from ulong4 to float4 * * Supported by API versions 21 and newer. */ -extern uchar4 __attribute__((const, overloadable))convert_uchar4(ulong4 v); +extern float4 __attribute__((const, overloadable))convert_float4(ulong4 v); #endif #if (defined(RS_VERSION) && (RS_VERSION >= 21)) /* - * Component wise conversion from double2 to short2 + * Component wise conversion from double2 to char2 * * Supported by API versions 21 and newer. */ -extern short2 __attribute__((const, overloadable))convert_short2(double2 v); +extern char2 __attribute__((const, overloadable))convert_char2(double2 v); #endif #if (defined(RS_VERSION) && (RS_VERSION >= 21)) /* - * Component wise conversion from double3 to short3 + * Component wise conversion from double3 to char3 * * Supported by API versions 21 and newer. */ -extern short3 __attribute__((const, overloadable))convert_short3(double3 v); +extern char3 __attribute__((const, overloadable))convert_char3(double3 v); #endif #if (defined(RS_VERSION) && (RS_VERSION >= 21)) /* - * Component wise conversion from double4 to short4 + * Component wise conversion from double4 to char4 * * Supported by API versions 21 and newer. */ -extern short4 __attribute__((const, overloadable))convert_short4(double4 v); +extern char4 __attribute__((const, overloadable))convert_char4(double4 v); #endif #if (defined(RS_VERSION) && (RS_VERSION >= 21)) /* - * Component wise conversion from long2 to short2 + * Component wise conversion from long2 to char2 * * Supported by API versions 21 and newer. */ -extern short2 __attribute__((const, overloadable))convert_short2(long2 v); +extern char2 __attribute__((const, overloadable))convert_char2(long2 v); #endif #if (defined(RS_VERSION) && (RS_VERSION >= 21)) /* - * Component wise conversion from long3 to short3 + * Component wise conversion from long3 to char3 * * Supported by API versions 21 and newer. */ -extern short3 __attribute__((const, overloadable))convert_short3(long3 v); +extern char3 __attribute__((const, overloadable))convert_char3(long3 v); #endif #if (defined(RS_VERSION) && (RS_VERSION >= 21)) /* - * Component wise conversion from long4 to short4 + * Component wise conversion from long4 to char4 * * Supported by API versions 21 and newer. */ -extern short4 __attribute__((const, overloadable))convert_short4(long4 v); +extern char4 __attribute__((const, overloadable))convert_char4(long4 v); #endif #if (defined(RS_VERSION) && (RS_VERSION >= 21)) /* - * Component wise conversion from ulong2 to short2 + * Component wise conversion from ulong2 to char2 * * Supported by API versions 21 and newer. */ -extern short2 __attribute__((const, overloadable))convert_short2(ulong2 v); +extern char2 __attribute__((const, overloadable))convert_char2(ulong2 v); #endif #if (defined(RS_VERSION) && (RS_VERSION >= 21)) /* - * Component wise conversion from ulong3 to short3 + * Component wise conversion from ulong3 to char3 * * Supported by API versions 21 and newer. */ -extern short3 __attribute__((const, overloadable))convert_short3(ulong3 v); +extern char3 __attribute__((const, overloadable))convert_char3(ulong3 v); #endif #if (defined(RS_VERSION) && (RS_VERSION >= 21)) /* - * Component wise conversion from ulong4 to short4 + * Component wise conversion from ulong4 to char4 * * Supported by API versions 21 and newer. */ -extern short4 __attribute__((const, overloadable))convert_short4(ulong4 v); +extern char4 __attribute__((const, overloadable))convert_char4(ulong4 v); #endif #if (defined(RS_VERSION) && (RS_VERSION >= 21)) /* - * Component wise conversion from double2 to ushort2 + * Component wise conversion from double2 to uchar2 * * Supported by API versions 21 and newer. */ -extern ushort2 __attribute__((const, overloadable))convert_ushort2(double2 v); +extern uchar2 __attribute__((const, overloadable))convert_uchar2(double2 v); #endif #if (defined(RS_VERSION) && (RS_VERSION >= 21)) /* - * Component wise conversion from double3 to ushort3 + * Component wise conversion from double3 to uchar3 * * Supported by API versions 21 and newer. */ -extern ushort3 __attribute__((const, overloadable))convert_ushort3(double3 v); +extern uchar3 __attribute__((const, overloadable))convert_uchar3(double3 v); #endif #if (defined(RS_VERSION) && (RS_VERSION >= 21)) /* - * Component wise conversion from double4 to ushort4 + * Component wise conversion from double4 to uchar4 * * Supported by API versions 21 and newer. */ -extern ushort4 __attribute__((const, overloadable))convert_ushort4(double4 v); +extern uchar4 __attribute__((const, overloadable))convert_uchar4(double4 v); #endif #if (defined(RS_VERSION) && (RS_VERSION >= 21)) /* - * Component wise conversion from long2 to ushort2 + * Component wise conversion from long2 to uchar2 * * Supported by API versions 21 and newer. */ -extern ushort2 __attribute__((const, overloadable))convert_ushort2(long2 v); +extern uchar2 __attribute__((const, overloadable))convert_uchar2(long2 v); #endif #if (defined(RS_VERSION) && (RS_VERSION >= 21)) /* - * Component wise conversion from long3 to ushort3 + * Component wise conversion from long3 to uchar3 * * Supported by API versions 21 and newer. */ -extern ushort3 __attribute__((const, overloadable))convert_ushort3(long3 v); +extern uchar3 __attribute__((const, overloadable))convert_uchar3(long3 v); #endif #if (defined(RS_VERSION) && (RS_VERSION >= 21)) /* - * Component wise conversion from long4 to ushort4 + * Component wise conversion from long4 to uchar4 * * Supported by API versions 21 and newer. */ -extern ushort4 __attribute__((const, overloadable))convert_ushort4(long4 v); +extern uchar4 __attribute__((const, overloadable))convert_uchar4(long4 v); #endif #if (defined(RS_VERSION) && (RS_VERSION >= 21)) /* - * Component wise conversion from ulong2 to ushort2 + * Component wise conversion from ulong2 to uchar2 * * Supported by API versions 21 and newer. */ -extern ushort2 __attribute__((const, overloadable))convert_ushort2(ulong2 v); +extern uchar2 __attribute__((const, overloadable))convert_uchar2(ulong2 v); #endif #if (defined(RS_VERSION) && (RS_VERSION >= 21)) /* - * Component wise conversion from ulong3 to ushort3 + * Component wise conversion from ulong3 to uchar3 * * Supported by API versions 21 and newer. */ -extern ushort3 __attribute__((const, overloadable))convert_ushort3(ulong3 v); +extern uchar3 __attribute__((const, overloadable))convert_uchar3(ulong3 v); #endif #if (defined(RS_VERSION) && (RS_VERSION >= 21)) /* - * Component wise conversion from ulong4 to ushort4 + * Component wise conversion from ulong4 to uchar4 * * Supported by API versions 21 and newer. */ -extern ushort4 __attribute__((const, overloadable))convert_ushort4(ulong4 v); +extern uchar4 __attribute__((const, overloadable))convert_uchar4(ulong4 v); #endif #if (defined(RS_VERSION) && (RS_VERSION >= 21)) /* - * Component wise conversion from double2 to int2 + * Component wise conversion from double2 to short2 * * Supported by API versions 21 and newer. */ -extern int2 __attribute__((const, overloadable))convert_int2(double2 v); +extern short2 __attribute__((const, overloadable))convert_short2(double2 v); #endif #if (defined(RS_VERSION) && (RS_VERSION >= 21)) /* - * Component wise conversion from double3 to int3 + * Component wise conversion from double3 to short3 * * Supported by API versions 21 and newer. */ -extern int3 __attribute__((const, overloadable))convert_int3(double3 v); +extern short3 __attribute__((const, overloadable))convert_short3(double3 v); #endif #if (defined(RS_VERSION) && (RS_VERSION >= 21)) /* - * Component wise conversion from double4 to int4 + * Component wise conversion from double4 to short4 * * Supported by API versions 21 and newer. */ -extern int4 __attribute__((const, overloadable))convert_int4(double4 v); +extern short4 __attribute__((const, overloadable))convert_short4(double4 v); #endif #if (defined(RS_VERSION) && (RS_VERSION >= 21)) /* - * Component wise conversion from long2 to int2 + * Component wise conversion from long2 to short2 * * Supported by API versions 21 and newer. */ -extern int2 __attribute__((const, overloadable))convert_int2(long2 v); +extern short2 __attribute__((const, overloadable))convert_short2(long2 v); #endif #if (defined(RS_VERSION) && (RS_VERSION >= 21)) /* - * Component wise conversion from long3 to int3 + * Component wise conversion from long3 to short3 * * Supported by API versions 21 and newer. */ -extern int3 __attribute__((const, overloadable))convert_int3(long3 v); +extern short3 __attribute__((const, overloadable))convert_short3(long3 v); #endif #if (defined(RS_VERSION) && (RS_VERSION >= 21)) /* - * Component wise conversion from long4 to int4 + * Component wise conversion from long4 to short4 * * Supported by API versions 21 and newer. */ -extern int4 __attribute__((const, overloadable))convert_int4(long4 v); +extern short4 __attribute__((const, overloadable))convert_short4(long4 v); #endif #if (defined(RS_VERSION) && (RS_VERSION >= 21)) /* - * Component wise conversion from ulong2 to int2 + * Component wise conversion from ulong2 to short2 * * Supported by API versions 21 and newer. */ -extern int2 __attribute__((const, overloadable))convert_int2(ulong2 v); +extern short2 __attribute__((const, overloadable))convert_short2(ulong2 v); #endif #if (defined(RS_VERSION) && (RS_VERSION >= 21)) /* - * Component wise conversion from ulong3 to int3 + * Component wise conversion from ulong3 to short3 * * Supported by API versions 21 and newer. */ -extern int3 __attribute__((const, overloadable))convert_int3(ulong3 v); +extern short3 __attribute__((const, overloadable))convert_short3(ulong3 v); #endif #if (defined(RS_VERSION) && (RS_VERSION >= 21)) /* - * Component wise conversion from ulong4 to int4 + * Component wise conversion from ulong4 to short4 * * Supported by API versions 21 and newer. */ -extern int4 __attribute__((const, overloadable))convert_int4(ulong4 v); +extern short4 __attribute__((const, overloadable))convert_short4(ulong4 v); #endif #if (defined(RS_VERSION) && (RS_VERSION >= 21)) /* - * Component wise conversion from double2 to uint2 + * Component wise conversion from double2 to ushort2 * * Supported by API versions 21 and newer. */ -extern uint2 __attribute__((const, overloadable))convert_uint2(double2 v); +extern ushort2 __attribute__((const, overloadable))convert_ushort2(double2 v); #endif #if (defined(RS_VERSION) && (RS_VERSION >= 21)) /* - * Component wise conversion from double3 to uint3 + * Component wise conversion from double3 to ushort3 * * Supported by API versions 21 and newer. */ -extern uint3 __attribute__((const, overloadable))convert_uint3(double3 v); +extern ushort3 __attribute__((const, overloadable))convert_ushort3(double3 v); #endif #if (defined(RS_VERSION) && (RS_VERSION >= 21)) /* - * Component wise conversion from double4 to uint4 + * Component wise conversion from double4 to ushort4 * * Supported by API versions 21 and newer. */ -extern uint4 __attribute__((const, overloadable))convert_uint4(double4 v); +extern ushort4 __attribute__((const, overloadable))convert_ushort4(double4 v); #endif #if (defined(RS_VERSION) && (RS_VERSION >= 21)) /* - * Component wise conversion from long2 to uint2 + * Component wise conversion from long2 to ushort2 * * Supported by API versions 21 and newer. */ -extern uint2 __attribute__((const, overloadable))convert_uint2(long2 v); +extern ushort2 __attribute__((const, overloadable))convert_ushort2(long2 v); #endif #if (defined(RS_VERSION) && (RS_VERSION >= 21)) /* - * Component wise conversion from long3 to uint3 + * Component wise conversion from long3 to ushort3 * * Supported by API versions 21 and newer. */ -extern uint3 __attribute__((const, overloadable))convert_uint3(long3 v); +extern ushort3 __attribute__((const, overloadable))convert_ushort3(long3 v); #endif #if (defined(RS_VERSION) && (RS_VERSION >= 21)) /* - * Component wise conversion from long4 to uint4 + * Component wise conversion from long4 to ushort4 * * Supported by API versions 21 and newer. */ -extern uint4 __attribute__((const, overloadable))convert_uint4(long4 v); +extern ushort4 __attribute__((const, overloadable))convert_ushort4(long4 v); #endif #if (defined(RS_VERSION) && (RS_VERSION >= 21)) /* - * Component wise conversion from ulong2 to uint2 + * Component wise conversion from ulong2 to ushort2 * * Supported by API versions 21 and newer. */ -extern uint2 __attribute__((const, overloadable))convert_uint2(ulong2 v); +extern ushort2 __attribute__((const, overloadable))convert_ushort2(ulong2 v); #endif #if (defined(RS_VERSION) && (RS_VERSION >= 21)) /* - * Component wise conversion from ulong3 to uint3 + * Component wise conversion from ulong3 to ushort3 * * Supported by API versions 21 and newer. */ -extern uint3 __attribute__((const, overloadable))convert_uint3(ulong3 v); +extern ushort3 __attribute__((const, overloadable))convert_ushort3(ulong3 v); #endif #if (defined(RS_VERSION) && (RS_VERSION >= 21)) /* - * Component wise conversion from ulong4 to uint4 + * Component wise conversion from ulong4 to ushort4 * * Supported by API versions 21 and newer. */ -extern uint4 __attribute__((const, overloadable))convert_uint4(ulong4 v); +extern ushort4 __attribute__((const, overloadable))convert_ushort4(ulong4 v); #endif #if (defined(RS_VERSION) && (RS_VERSION >= 21)) /* - * Component wise conversion from double2 to long2 + * Component wise conversion from double2 to int2 * * Supported by API versions 21 and newer. */ -extern long2 __attribute__((const, overloadable))convert_long2(double2 v); +extern int2 __attribute__((const, overloadable))convert_int2(double2 v); #endif #if (defined(RS_VERSION) && (RS_VERSION >= 21)) /* - * Component wise conversion from double3 to long3 + * Component wise conversion from double3 to int3 * * Supported by API versions 21 and newer. */ -extern long3 __attribute__((const, overloadable))convert_long3(double3 v); +extern int3 __attribute__((const, overloadable))convert_int3(double3 v); #endif #if (defined(RS_VERSION) && (RS_VERSION >= 21)) /* - * Component wise conversion from double4 to long4 + * Component wise conversion from double4 to int4 * * Supported by API versions 21 and newer. */ -extern long4 __attribute__((const, overloadable))convert_long4(double4 v); +extern int4 __attribute__((const, overloadable))convert_int4(double4 v); #endif #if (defined(RS_VERSION) && (RS_VERSION >= 21)) /* - * Component wise conversion from long2 to long2 + * Component wise conversion from long2 to int2 * * Supported by API versions 21 and newer. */ -extern long2 __attribute__((const, overloadable))convert_long2(long2 v); +extern int2 __attribute__((const, overloadable))convert_int2(long2 v); #endif #if (defined(RS_VERSION) && (RS_VERSION >= 21)) /* - * Component wise conversion from long3 to long3 + * Component wise conversion from long3 to int3 * * Supported by API versions 21 and newer. */ -extern long3 __attribute__((const, overloadable))convert_long3(long3 v); +extern int3 __attribute__((const, overloadable))convert_int3(long3 v); #endif #if (defined(RS_VERSION) && (RS_VERSION >= 21)) /* - * Component wise conversion from long4 to long4 + * Component wise conversion from long4 to int4 * * Supported by API versions 21 and newer. */ -extern long4 __attribute__((const, overloadable))convert_long4(long4 v); +extern int4 __attribute__((const, overloadable))convert_int4(long4 v); #endif #if (defined(RS_VERSION) && (RS_VERSION >= 21)) /* - * Component wise conversion from ulong2 to long2 + * Component wise conversion from ulong2 to int2 * * Supported by API versions 21 and newer. */ -extern long2 __attribute__((const, overloadable))convert_long2(ulong2 v); +extern int2 __attribute__((const, overloadable))convert_int2(ulong2 v); #endif #if (defined(RS_VERSION) && (RS_VERSION >= 21)) /* - * Component wise conversion from ulong3 to long3 + * Component wise conversion from ulong3 to int3 * * Supported by API versions 21 and newer. */ -extern long3 __attribute__((const, overloadable))convert_long3(ulong3 v); +extern int3 __attribute__((const, overloadable))convert_int3(ulong3 v); #endif #if (defined(RS_VERSION) && (RS_VERSION >= 21)) /* - * Component wise conversion from ulong4 to long4 + * Component wise conversion from ulong4 to int4 * * Supported by API versions 21 and newer. */ -extern long4 __attribute__((const, overloadable))convert_long4(ulong4 v); +extern int4 __attribute__((const, overloadable))convert_int4(ulong4 v); #endif #if (defined(RS_VERSION) && (RS_VERSION >= 21)) /* - * Component wise conversion from double2 to ulong2 + * Component wise conversion from double2 to uint2 * * Supported by API versions 21 and newer. */ -extern ulong2 __attribute__((const, overloadable))convert_ulong2(double2 v); +extern uint2 __attribute__((const, overloadable))convert_uint2(double2 v); #endif #if (defined(RS_VERSION) && (RS_VERSION >= 21)) /* - * Component wise conversion from double3 to ulong3 + * Component wise conversion from double3 to uint3 * * Supported by API versions 21 and newer. */ -extern ulong3 __attribute__((const, overloadable))convert_ulong3(double3 v); +extern uint3 __attribute__((const, overloadable))convert_uint3(double3 v); #endif #if (defined(RS_VERSION) && (RS_VERSION >= 21)) /* - * Component wise conversion from double4 to ulong4 + * Component wise conversion from double4 to uint4 * * Supported by API versions 21 and newer. */ -extern ulong4 __attribute__((const, overloadable))convert_ulong4(double4 v); +extern uint4 __attribute__((const, overloadable))convert_uint4(double4 v); #endif #if (defined(RS_VERSION) && (RS_VERSION >= 21)) /* - * Component wise conversion from long2 to ulong2 + * Component wise conversion from long2 to uint2 * * Supported by API versions 21 and newer. */ -extern ulong2 __attribute__((const, overloadable))convert_ulong2(long2 v); +extern uint2 __attribute__((const, overloadable))convert_uint2(long2 v); #endif #if (defined(RS_VERSION) && (RS_VERSION >= 21)) /* - * Component wise conversion from long3 to ulong3 + * Component wise conversion from long3 to uint3 * * Supported by API versions 21 and newer. */ -extern ulong3 __attribute__((const, overloadable))convert_ulong3(long3 v); +extern uint3 __attribute__((const, overloadable))convert_uint3(long3 v); #endif #if (defined(RS_VERSION) && (RS_VERSION >= 21)) /* - * Component wise conversion from long4 to ulong4 + * Component wise conversion from long4 to uint4 * * Supported by API versions 21 and newer. */ -extern ulong4 __attribute__((const, overloadable))convert_ulong4(long4 v); +extern uint4 __attribute__((const, overloadable))convert_uint4(long4 v); #endif #if (defined(RS_VERSION) && (RS_VERSION >= 21)) /* - * Component wise conversion from ulong2 to ulong2 + * Component wise conversion from ulong2 to uint2 * * Supported by API versions 21 and newer. */ -extern ulong2 __attribute__((const, overloadable))convert_ulong2(ulong2 v); +extern uint2 __attribute__((const, overloadable))convert_uint2(ulong2 v); #endif #if (defined(RS_VERSION) && (RS_VERSION >= 21)) /* - * Component wise conversion from ulong3 to ulong3 + * Component wise conversion from ulong3 to uint3 * * Supported by API versions 21 and newer. */ -extern ulong3 __attribute__((const, overloadable))convert_ulong3(ulong3 v); +extern uint3 __attribute__((const, overloadable))convert_uint3(ulong3 v); #endif #if (defined(RS_VERSION) && (RS_VERSION >= 21)) /* - * Component wise conversion from ulong4 to ulong4 + * Component wise conversion from ulong4 to uint4 * * Supported by API versions 21 and newer. */ -extern ulong4 __attribute__((const, overloadable))convert_ulong4(ulong4 v); +extern uint4 __attribute__((const, overloadable))convert_uint4(ulong4 v); #endif #if (defined(RS_VERSION) && (RS_VERSION >= 21)) @@ -3791,33 +3791,6 @@ extern double4 __attribute__((const, overloadable))convert_double4(float4 v); #if (defined(RS_VERSION) && (RS_VERSION >= 21)) /* - * Component wise conversion from double2 to double2 - * - * Supported by API versions 21 and newer. - */ -extern double2 __attribute__((const, overloadable))convert_double2(double2 v); -#endif - -#if (defined(RS_VERSION) && (RS_VERSION >= 21)) -/* - * Component wise conversion from double3 to double3 - * - * Supported by API versions 21 and newer. - */ -extern double3 __attribute__((const, overloadable))convert_double3(double3 v); -#endif - -#if (defined(RS_VERSION) && (RS_VERSION >= 21)) -/* - * Component wise conversion from double4 to double4 - * - * Supported by API versions 21 and newer. - */ -extern double4 __attribute__((const, overloadable))convert_double4(double4 v); -#endif - -#if (defined(RS_VERSION) && (RS_VERSION >= 21)) -/* * Component wise conversion from char2 to double2 * * Supported by API versions 21 and newer. @@ -3980,60 +3953,6 @@ extern double4 __attribute__((const, overloadable))convert_double4(uint4 v); #if (defined(RS_VERSION) && (RS_VERSION >= 21)) /* - * Component wise conversion from long2 to double2 - * - * Supported by API versions 21 and newer. - */ -extern double2 __attribute__((const, overloadable))convert_double2(long2 v); -#endif - -#if (defined(RS_VERSION) && (RS_VERSION >= 21)) -/* - * Component wise conversion from long3 to double3 - * - * Supported by API versions 21 and newer. - */ -extern double3 __attribute__((const, overloadable))convert_double3(long3 v); -#endif - -#if (defined(RS_VERSION) && (RS_VERSION >= 21)) -/* - * Component wise conversion from long4 to double4 - * - * Supported by API versions 21 and newer. - */ -extern double4 __attribute__((const, overloadable))convert_double4(long4 v); -#endif - -#if (defined(RS_VERSION) && (RS_VERSION >= 21)) -/* - * Component wise conversion from ulong2 to double2 - * - * Supported by API versions 21 and newer. - */ -extern double2 __attribute__((const, overloadable))convert_double2(ulong2 v); -#endif - -#if (defined(RS_VERSION) && (RS_VERSION >= 21)) -/* - * Component wise conversion from ulong3 to double3 - * - * Supported by API versions 21 and newer. - */ -extern double3 __attribute__((const, overloadable))convert_double3(ulong3 v); -#endif - -#if (defined(RS_VERSION) && (RS_VERSION >= 21)) -/* - * Component wise conversion from ulong4 to double4 - * - * Supported by API versions 21 and newer. - */ -extern double4 __attribute__((const, overloadable))convert_double4(ulong4 v); -#endif - -#if (defined(RS_VERSION) && (RS_VERSION >= 21)) -/* * Component wise conversion from float2 to long2 * * Supported by API versions 21 and newer. @@ -4061,33 +3980,6 @@ extern long4 __attribute__((const, overloadable))convert_long4(float4 v); #if (defined(RS_VERSION) && (RS_VERSION >= 21)) /* - * Component wise conversion from double2 to long2 - * - * Supported by API versions 21 and newer. - */ -extern long2 __attribute__((const, overloadable))convert_long2(double2 v); -#endif - -#if (defined(RS_VERSION) && (RS_VERSION >= 21)) -/* - * Component wise conversion from double3 to long3 - * - * Supported by API versions 21 and newer. - */ -extern long3 __attribute__((const, overloadable))convert_long3(double3 v); -#endif - -#if (defined(RS_VERSION) && (RS_VERSION >= 21)) -/* - * Component wise conversion from double4 to long4 - * - * Supported by API versions 21 and newer. - */ -extern long4 __attribute__((const, overloadable))convert_long4(double4 v); -#endif - -#if (defined(RS_VERSION) && (RS_VERSION >= 21)) -/* * Component wise conversion from char2 to long2 * * Supported by API versions 21 and newer. @@ -4250,60 +4142,6 @@ extern long4 __attribute__((const, overloadable))convert_long4(uint4 v); #if (defined(RS_VERSION) && (RS_VERSION >= 21)) /* - * Component wise conversion from long2 to long2 - * - * Supported by API versions 21 and newer. - */ -extern long2 __attribute__((const, overloadable))convert_long2(long2 v); -#endif - -#if (defined(RS_VERSION) && (RS_VERSION >= 21)) -/* - * Component wise conversion from long3 to long3 - * - * Supported by API versions 21 and newer. - */ -extern long3 __attribute__((const, overloadable))convert_long3(long3 v); -#endif - -#if (defined(RS_VERSION) && (RS_VERSION >= 21)) -/* - * Component wise conversion from long4 to long4 - * - * Supported by API versions 21 and newer. - */ -extern long4 __attribute__((const, overloadable))convert_long4(long4 v); -#endif - -#if (defined(RS_VERSION) && (RS_VERSION >= 21)) -/* - * Component wise conversion from ulong2 to long2 - * - * Supported by API versions 21 and newer. - */ -extern long2 __attribute__((const, overloadable))convert_long2(ulong2 v); -#endif - -#if (defined(RS_VERSION) && (RS_VERSION >= 21)) -/* - * Component wise conversion from ulong3 to long3 - * - * Supported by API versions 21 and newer. - */ -extern long3 __attribute__((const, overloadable))convert_long3(ulong3 v); -#endif - -#if (defined(RS_VERSION) && (RS_VERSION >= 21)) -/* - * Component wise conversion from ulong4 to long4 - * - * Supported by API versions 21 and newer. - */ -extern long4 __attribute__((const, overloadable))convert_long4(ulong4 v); -#endif - -#if (defined(RS_VERSION) && (RS_VERSION >= 21)) -/* * Component wise conversion from float2 to ulong2 * * Supported by API versions 21 and newer. @@ -4331,33 +4169,6 @@ extern ulong4 __attribute__((const, overloadable))convert_ulong4(float4 v); #if (defined(RS_VERSION) && (RS_VERSION >= 21)) /* - * Component wise conversion from double2 to ulong2 - * - * Supported by API versions 21 and newer. - */ -extern ulong2 __attribute__((const, overloadable))convert_ulong2(double2 v); -#endif - -#if (defined(RS_VERSION) && (RS_VERSION >= 21)) -/* - * Component wise conversion from double3 to ulong3 - * - * Supported by API versions 21 and newer. - */ -extern ulong3 __attribute__((const, overloadable))convert_ulong3(double3 v); -#endif - -#if (defined(RS_VERSION) && (RS_VERSION >= 21)) -/* - * Component wise conversion from double4 to ulong4 - * - * Supported by API versions 21 and newer. - */ -extern ulong4 __attribute__((const, overloadable))convert_ulong4(double4 v); -#endif - -#if (defined(RS_VERSION) && (RS_VERSION >= 21)) -/* * Component wise conversion from char2 to ulong2 * * Supported by API versions 21 and newer. @@ -4518,60 +4329,6 @@ extern ulong3 __attribute__((const, overloadable))convert_ulong3(uint3 v); extern ulong4 __attribute__((const, overloadable))convert_ulong4(uint4 v); #endif -#if (defined(RS_VERSION) && (RS_VERSION >= 21)) -/* - * Component wise conversion from long2 to ulong2 - * - * Supported by API versions 21 and newer. - */ -extern ulong2 __attribute__((const, overloadable))convert_ulong2(long2 v); -#endif - -#if (defined(RS_VERSION) && (RS_VERSION >= 21)) -/* - * Component wise conversion from long3 to ulong3 - * - * Supported by API versions 21 and newer. - */ -extern ulong3 __attribute__((const, overloadable))convert_ulong3(long3 v); -#endif - -#if (defined(RS_VERSION) && (RS_VERSION >= 21)) -/* - * Component wise conversion from long4 to ulong4 - * - * Supported by API versions 21 and newer. - */ -extern ulong4 __attribute__((const, overloadable))convert_ulong4(long4 v); -#endif - -#if (defined(RS_VERSION) && (RS_VERSION >= 21)) -/* - * Component wise conversion from ulong2 to ulong2 - * - * Supported by API versions 21 and newer. - */ -extern ulong2 __attribute__((const, overloadable))convert_ulong2(ulong2 v); -#endif - -#if (defined(RS_VERSION) && (RS_VERSION >= 21)) -/* - * Component wise conversion from ulong3 to ulong3 - * - * Supported by API versions 21 and newer. - */ -extern ulong3 __attribute__((const, overloadable))convert_ulong3(ulong3 v); -#endif - -#if (defined(RS_VERSION) && (RS_VERSION >= 21)) -/* - * Component wise conversion from ulong4 to ulong4 - * - * Supported by API versions 21 and newer. - */ -extern ulong4 __attribute__((const, overloadable))convert_ulong4(ulong4 v); -#endif - #if (defined(RS_VERSION) && (RS_VERSION >= 9)) /* * Copy the sign bit from y to x. |