Go to the documentation of this file.
39 #define QUAD_DEFAULT -1
43 #define QUAD_1D_P1 (&QUAD_1D_P1_)
45 #define QUAD_1D_P2 (&QUAD_1D_P3_)
46 #define QUAD_1D_P3 (&QUAD_1D_P3_)
48 #define QUAD_1D_P4 (&QUAD_1D_P5_)
49 #define QUAD_1D_P5 (&QUAD_1D_P5_)
51 #define QUAD_1D_P6 (&QUAD_1D_P7_)
52 #define QUAD_1D_P7 (&QUAD_1D_P7_)
54 #define QUAD_1D_P8 (&QUAD_1D_P9_)
55 #define QUAD_1D_P9 (&QUAD_1D_P9_)
57 #define QUAD_1D_P10 (&QUAD_1D_P11_)
58 #define QUAD_1D_P11 (&QUAD_1D_P11_)
60 #define QUAD_1D_P12 (&QUAD_1D_P13_)
61 #define QUAD_1D_P13 (&QUAD_1D_P13_)
63 #define QUAD_1D_P14 (&QUAD_1D_P15_)
64 #define QUAD_1D_P15 (&QUAD_1D_P15_)
66 #define QUAD_1D_P16 (&QUAD_1D_P17_)
67 #define QUAD_1D_P17 (&QUAD_1D_P17_)
69 #define QUAD_1D_P18 (&QUAD_1D_P19_)
70 #define QUAD_1D_P19 (&QUAD_1D_P19_)
72 #define QUAD_1D_P20 (&QUAD_1D_P21_)
73 #define QUAD_1D_P21 (&QUAD_1D_P21_)
77 #define QUAD_2D_P1 (&QUAD_2D_P1_)
79 #define QUAD_2D_P2 (&QUAD_2D_P2_)
81 #define QUAD_2D_P3 (&QUAD_2D_P3_)
83 #define QUAD_2D_P4 (&QUAD_2D_P4_)
85 #define QUAD_2D_P5 (&QUAD_2D_P5_)
87 #define QUAD_2D_P6 (&QUAD_2D_P6_)
89 #define QUAD_2D_P7 (&QUAD_2D_P7_)
91 #define QUAD_2D_P8 (&QUAD_2D_P8_)
93 #define QUAD_2D_P9 (&QUAD_2D_P9_)
95 #define QUAD_2D_P10 (&QUAD_2D_P10_)
97 #define QUAD_2D_P11 (&QUAD_2D_P11_)
99 #define QUAD_2D_P12 (&QUAD_2D_P12_)
101 #define QUAD_2D_P13 (&QUAD_2D_P13_)
103 #define QUAD_2D_P14 (&QUAD_2D_P14_)
105 #define QUAD_2D_P15 (&QUAD_2D_P15_)
107 #define QUAD_2D_P16 (&QUAD_2D_P16_)
109 #define QUAD_2D_P17 (&QUAD_2D_P17_)
111 #define QUAD_2D_P18 (&QUAD_2D_P18_)
113 #define QUAD_2D_P19 (&QUAD_2D_P19_)
115 #define QUAD_2D_P20 (&QUAD_2D_P20_)
117 #define QUAD_2D_P21 (&QUAD_2D_P21_)
121 #define QUAD_3D_P1 (&QUAD_3D_P1_)
123 #define QUAD_3D_P2 (&QUAD_3D_P2_)
125 #define QUAD_3D_P3 (&QUAD_3D_P3_)
127 #define QUAD_3D_P4 (&QUAD_3D_P4_)
129 #define QUAD_3D_P5 (&QUAD_3D_P5_)
131 #define QUAD_3D_P6 (&QUAD_3D_P6_)
133 #define QUAD_3D_P7 (&QUAD_3D_P7_)
135 #define QUAD_3D_P8 (&QUAD_3D_P8_)
137 #define QUAD_3D_P9 (&QUAD_3D_P9_)
139 #define QUAD_3D_P10 (&QUAD_3D_P10_)
141 #define QUAD_3D_P11 (&QUAD_3D_P11_)
143 #define QUAD_3D_P12 (&QUAD_3D_P12_)
145 #define QUAD_3D_P13 (&QUAD_3D_P13_)
147 #define QUAD_3D_P14 (&QUAD_3D_P14_)
152 #define Perm2(a) _F(a),_F(a)
153 #define Dup2(w) _F(w)
154 #define Perm11(a) _F(a),_F(1.)-(_F(a)), _F(1.)-(_F(a)),_F(a)
155 #define Dup11(w) _F(w),_F(w)
158 #define Perm3(a) _F(a),_F(a),_F(a)
159 #define Dup3(w) _F(w)
160 #define Perm21(a) _F(a),_F(a),_F(1.)-(_F(a))-(_F(a)), \
161 _F(a),_F(1.)-(_F(a))-(_F(a)),_F(a), \
162 _F(1.)-(_F(a))-(_F(a)),_F(a),_F(a)
163 #define Dup21(w) _F(w),_F(w),_F(w)
164 #define Perm111(a,b) _F(a),_F(b),_F(1.)-(_F(a))-(_F(b)), \
165 _F(a),_F(1.)-(_F(a))-(_F(b)),_F(b), \
166 _F(b),_F(a),_F(1.)-(_F(a))-(_F(b)), \
167 _F(b),_F(1.)-(_F(a))-(_F(b)),_F(a), \
168 _F(1.)-(_F(a))-(_F(b)),_F(a),_F(b), \
169 _F(1.)-(_F(a))-(_F(b)),_F(b),_F(a)
170 #define Dup111(w) _F(w),_F(w),_F(w),_F(w),_F(w),_F(w)
173 #define Perm4(a) _F(a),_F(a),_F(a),_F(a)
174 #define Dup4(w) _F(w)
175 #define Perm31(a) _F(a),_F(a),_F(a),_F(1.)-_F(3.)*(_F(a)), \
176 _F(a),_F(a),_F(1.)-_F(3.)*(_F(a)),_F(a), \
177 _F(a),_F(1.)-_F(3.)*(_F(a)),_F(a),_F(a), \
178 _F(1.)-_F(3.)*(_F(a)),_F(a),_F(a),_F(a)
179 #define Dup31(w) _F(w),_F(w),_F(w),_F(w)
180 #define Perm22(a) _F(a),_F(a),_F(.5)-(_F(a)),_F(.5)-(_F(a)), \
181 _F(a),_F(.5)-(_F(a)),_F(a),_F(.5)-(_F(a)), \
182 _F(a),_F(.5)-(_F(a)),_F(.5)-(_F(a)),_F(a), \
183 _F(.5)-(_F(a)),_F(a),_F(.5)-(_F(a)),_F(a), \
184 _F(.5)-(_F(a)),_F(a),_F(a),_F(.5)-(_F(a)), \
185 _F(.5)-(_F(a)),_F(.5)-(_F(a)),_F(a),_F(a)
186 #define Dup22(w) _F(w),_F(w),_F(w),_F(w),_F(w),_F(w)
187 #define Perm211(a,b) _F(a),_F(a),_F(b),_F(1.)-(_F(a))-(_F(a))-(_F(b)), \
188 _F(a),_F(a),_F(1.)-(_F(a))-(_F(a))-(_F(b)),_F(b), \
189 _F(a),_F(b),_F(a),_F(1.)-(_F(a))-(_F(a))-(_F(b)), \
190 _F(a),_F(b),_F(1.)-(_F(a))-(_F(a))-(_F(b)),_F(a), \
191 _F(a),_F(1.)-(_F(a))-(_F(a))-(_F(b)),_F(a),_F(b), \
192 _F(a),_F(1.)-(_F(a))-(_F(a))-(_F(b)),_F(b),_F(a), \
193 _F(b),_F(a),_F(a),_F(1.)-(_F(a))-(_F(a))-(_F(b)), \
194 _F(b),_F(a),_F(1.)-(_F(a))-(_F(a))-(_F(b)),_F(a), \
195 _F(b),_F(1.)-(_F(a))-(_F(a))-(_F(b)),_F(a),_F(a), \
196 _F(1.)-(_F(a))-(_F(a))-(_F(b)),_F(a),_F(a),_F(b), \
197 _F(1.)-(_F(a))-(_F(a))-(_F(b)),_F(a),_F(b),_F(a), \
198 _F(1.)-(_F(a))-(_F(a))-(_F(b)),_F(b),_F(a),_F(a)
199 #define Dup211(w) _F(w),_F(w),_F(w),_F(w),_F(w),_F(w),\
200 _F(w),_F(w),_F(w),_F(w),_F(w),_F(w)
201 #define Perm0111(p,a,b,c) p,a,b,c, p,a,c,b, p,b,a,c, p,b,c,a, p,c,a,b, p,c,b,a
202 #define Perm1111(a,b,c) \
203 Perm0111(_F(a),_F(b),_F(c),_F(1.)-(_F(a))-(_F(b))-(_F(c))), \
204 Perm0111(_F(b),_F(a),_F(c),_F(1.)-(_F(a))-(_F(b))-(_F(c))), \
205 Perm0111(_F(c),_F(a),_F(b),_F(1.)-(_F(a))-(_F(b))-(_F(c))), \
206 Perm0111(_F(1.)-(_F(a))-(_F(b))-(_F(c)),_F(a),_F(b),_F(c))
207 #define Dup1111(w) Dup111(w), Dup111(w), Dup111(w), Dup111(w)