Lines Matching refs:fnc
97 #define FN_FUNC_FN(fnc)
98 #define F_FUNC_FN(fnc)
99 #define IN_FUNC_FN(fnc)
100 #define FN_FUNC_FN_FN(fnc)
101 #define F_FUNC_FN_FN(fnc)
102 #define FN_FUNC_FN_F(fnc)
103 #define FN_FUNC_FN_IN(fnc)
104 #define FN_FUNC_FN_I(fnc)
105 #define FN_FUNC_FN_PFN(fnc)
106 #define FN_FUNC_FN_PIN(fnc)
107 #define FN_FUNC_FN_FN_FN(fnc)
108 #define FN_FUNC_FN_FN_F(fnc)
109 #define FN_FUNC_FN_F_F(fnc)
110 #define FN_FUNC_FN_FN_PIN(fnc)
114 #define FN_FUNC_FN(fnc) \
115 _RS_RUNTIME float2 __attribute__((const, overloadable)) fnc(float2 v); \
116 _RS_RUNTIME float3 __attribute__((const, overloadable)) fnc(float3 v); \
117 _RS_RUNTIME float4 __attribute__((const, overloadable)) fnc(float4 v);
119 #define F_FUNC_FN(fnc) \
120 _RS_RUNTIME float __attribute__((const, overloadable)) fnc(float2 v); \
121 _RS_RUNTIME float __attribute__((const, overloadable)) fnc(float3 v); \
122 _RS_RUNTIME float __attribute__((const, overloadable)) fnc(float4 v);
124 #define IN_FUNC_FN(fnc) \
125 _RS_RUNTIME int2 __attribute__((const, overloadable)) fnc(float2 v); \
126 _RS_RUNTIME int3 __attribute__((const, overloadable)) fnc(float3 v); \
127 _RS_RUNTIME int4 __attribute__((const, overloadable)) fnc(float4 v);
129 #define FN_FUNC_FN_FN(fnc) \
130 _RS_RUNTIME float2 __attribute__((const, overloadable)) fnc(float2 v1, float2 v2); \
131 _RS_RUNTIME float3 __attribute__((const, overloadable)) fnc(float3 v1, float3 v2); \
132 _RS_RUNTIME float4 __attribute__((const, overloadable)) fnc(float4 v1, float4 v2);
134 #define F_FUNC_FN_FN(fnc) \
135 _RS_RUNTIME float __attribute__((const, overloadable)) fnc(float2 v1, float2 v2); \
136 _RS_RUNTIME float __attribute__((const, overloadable)) fnc(float3 v1, float3 v2); \
137 _RS_RUNTIME float __attribute__((const, overloadable)) fnc(float4 v1, float4 v2);
139 #define FN_FUNC_FN_F(fnc) \
140 _RS_RUNTIME float2 __attribute__((const, overloadable)) fnc(float2 v1, float v2); \
141 _RS_RUNTIME float3 __attribute__((const, overloadable)) fnc(float3 v1, float v2); \
142 _RS_RUNTIME float4 __attribute__((const, overloadable)) fnc(float4 v1, float v2);
144 #define FN_FUNC_FN_IN(fnc) \
145 _RS_RUNTIME float2 __attribute__((const, overloadable)) fnc(float2 v1, int2 v2); \
146 _RS_RUNTIME float3 __attribute__((const, overloadable)) fnc(float3 v1, int3 v2); \
147 _RS_RUNTIME float4 __attribute__((const, overloadable)) fnc(float4 v1, int4 v2);
149 #define FN_FUNC_FN_I(fnc) \
150 _RS_RUNTIME float2 __attribute__((const, overloadable)) fnc(float2 v1, int v2); \
151 _RS_RUNTIME float3 __attribute__((const, overloadable)) fnc(float3 v1, int v2); \
152 _RS_RUNTIME float4 __attribute__((const, overloadable)) fnc(float4 v1, int v2);
154 #define FN_FUNC_FN_PFN(fnc) \
156 fnc(float2 v1, float2 *v2); \
158 fnc(float3 v1, float3 *v2); \
160 fnc(float4 v1, float4 *v2);
162 #define FN_FUNC_FN_PIN(fnc) \
163 _RS_RUNTIME float2 __attribute__((pure, overloadable)) fnc(float2 v1, int2 *v2); \
164 _RS_RUNTIME float3 __attribute__((pure, overloadable)) fnc(float3 v1, int3 *v2); \
165 _RS_RUNTIME float4 __attribute__((pure, overloadable)) fnc(float4 v1, int4 *v2);
167 #define FN_FUNC_FN_FN_FN(fnc) \
169 fnc(float2 v1, float2 v2, float2 v3); \
171 fnc(float3 v1, float3 v2, float3 v3); \
173 fnc(float4 v1, float4 v2, float4 v3);
175 #define FN_FUNC_FN_FN_F(fnc) \
177 fnc(float2 v1, float2 v2, float v3); \
179 fnc(float3 v1, float3 v2, float v3); \
181 fnc(float4 v1, float4 v2, float v3);
183 #define FN_FUNC_FN_F_F(fnc) \
185 fnc(float2 v1, float v2, float v3); \
187 fnc(float3 v1, float v2, float v3); \
189 fnc(float4 v1, float v2, float v3);
191 #define FN_FUNC_FN_FN_PIN(fnc) \
193 fnc(float2 v1, float2 v2, int2 *v3); \
195 fnc(float3 v1, float3 v2, int3 *v3); \
197 fnc(float4 v1, float4 v2, int4 *v3);
776 #define XN_FUNC_YN(typeout, fnc, typein) \
777 extern typeout __attribute__((overloadable)) fnc(typein v);
779 #define XN_FUNC_XN_XN_BODY(type, fnc, body) \
781 fnc(type v1, type v2);
785 #define XN_FUNC_YN(typeout, fnc, typein) \
786 extern typeout __attribute__((const, overloadable)) fnc(typein v); \
787 _RS_RUNTIME typeout##2 __attribute__((const, overloadable)) fnc(typein##2 v); \
788 _RS_RUNTIME typeout##3 __attribute__((const, overloadable)) fnc(typein##3 v); \
789 _RS_RUNTIME typeout##4 __attribute__((const, overloadable)) fnc(typein##4 v);
791 #define XN_FUNC_XN_XN_BODY(type, fnc, body) \
793 fnc(type v1, type v2); \
795 fnc(type##2 v1, type##2 v2); \
797 fnc(type##3 v1, type##3 v2); \
799 fnc(type##4 v1, type##4 v2);
803 #define UIN_FUNC_IN(fnc) \
804 XN_FUNC_YN(uchar, fnc, char) \
805 XN_FUNC_YN(ushort, fnc, short) \
806 XN_FUNC_YN(uint, fnc, int)
808 #define IN_FUNC_IN(fnc) \
809 XN_FUNC_YN(uchar, fnc, uchar) \
810 XN_FUNC_YN(char, fnc, char) \
811 XN_FUNC_YN(ushort, fnc, ushort) \
812 XN_FUNC_YN(short, fnc, short) \
813 XN_FUNC_YN(uint, fnc, uint) \
814 XN_FUNC_YN(int, fnc, int)
816 #define IN_FUNC_IN_IN_BODY(fnc, body) \
817 XN_FUNC_XN_XN_BODY(uchar, fnc, body) \
818 XN_FUNC_XN_XN_BODY(char, fnc, body) \
819 XN_FUNC_XN_XN_BODY(ushort, fnc, body) \
820 XN_FUNC_XN_XN_BODY(short, fnc, body) \
821 XN_FUNC_XN_XN_BODY(uint, fnc, body) \
822 XN_FUNC_XN_XN_BODY(int, fnc, body) \
823 XN_FUNC_XN_XN_BODY(float, fnc, body)