9a87b4ee3586c6b7f772f35f5f9ae0776b0f0a7d
[blender.git] / intern / cycles / kernel / svm / svm_types.h
1 /*
2  * Copyright 2011-2013 Blender Foundation
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16
17 #ifndef __SVM_TYPES_H__
18 #define __SVM_TYPES_H__
19
20 CCL_NAMESPACE_BEGIN
21
22 /* Stack */
23
24 /* SVM stack has a fixed size */
25 #define SVM_STACK_SIZE 255
26 /* SVM stack offsets with this value indicate that it's not on the stack */
27 #define SVM_STACK_INVALID 255 
28
29 #define SVM_BUMP_EVAL_STATE_SIZE 9
30
31 /* Nodes */
32
33 /* Known frequencies of used nodes, used for selective nodes compilation
34  * in the kernel. Currently only affects split OpenCL kernel.
35  *
36  * Keep as defines so it's easy to check which nodes are to be compiled
37  * from preprocessor.
38  *
39  * Lower the number of group more often the node is used.
40  */
41 #define NODE_GROUP_LEVEL_0    0
42 #define NODE_GROUP_LEVEL_1    1
43 #define NODE_GROUP_LEVEL_2    2
44 #define NODE_GROUP_LEVEL_3    3
45 #define NODE_GROUP_LEVEL_MAX  NODE_GROUP_LEVEL_3
46
47 #define NODE_FEATURE_VOLUME     (1 << 0)
48 #define NODE_FEATURE_HAIR       (1 << 1)
49 #define NODE_FEATURE_BUMP       (1 << 2)
50 #define NODE_FEATURE_BUMP_STATE (1 << 3)
51 /* TODO(sergey): Consider using something like ((uint)(-1)).
52  * Need to check carefully operand types around usage of this
53  * define first.
54  */
55 #define NODE_FEATURE_ALL        (NODE_FEATURE_VOLUME|NODE_FEATURE_HAIR|NODE_FEATURE_BUMP|NODE_FEATURE_BUMP_STATE)
56
57 typedef enum ShaderNodeType {
58         NODE_END = 0,
59         NODE_CLOSURE_BSDF,
60         NODE_CLOSURE_EMISSION,
61         NODE_CLOSURE_BACKGROUND,
62         NODE_CLOSURE_SET_WEIGHT,
63         NODE_CLOSURE_WEIGHT,
64         NODE_MIX_CLOSURE,
65         NODE_JUMP_IF_ZERO,
66         NODE_JUMP_IF_ONE,
67         NODE_TEX_IMAGE,
68         NODE_TEX_IMAGE_BOX,
69         NODE_TEX_SKY,
70         NODE_GEOMETRY,
71         NODE_GEOMETRY_DUPLI,
72         NODE_LIGHT_PATH,
73         NODE_VALUE_F,
74         NODE_VALUE_V,
75         NODE_MIX,
76         NODE_ATTR,
77         NODE_CONVERT,
78         NODE_FRESNEL,
79         NODE_WIREFRAME,
80         NODE_WAVELENGTH,
81         NODE_BLACKBODY,
82         NODE_EMISSION_WEIGHT,
83         NODE_TEX_GRADIENT,
84         NODE_TEX_VORONOI,
85         NODE_TEX_MUSGRAVE,
86         NODE_TEX_WAVE,
87         NODE_TEX_MAGIC,
88         NODE_TEX_NOISE,
89         NODE_SHADER_JUMP,
90         NODE_SET_DISPLACEMENT,
91         NODE_GEOMETRY_BUMP_DX,
92         NODE_GEOMETRY_BUMP_DY,
93         NODE_SET_BUMP,
94         NODE_MATH,
95         NODE_VECTOR_MATH,
96         NODE_VECTOR_TRANSFORM,
97         NODE_MAPPING,
98         NODE_TEX_COORD,
99         NODE_TEX_COORD_BUMP_DX,
100         NODE_TEX_COORD_BUMP_DY,
101         NODE_ATTR_BUMP_DX,
102         NODE_ATTR_BUMP_DY,
103         NODE_TEX_ENVIRONMENT,
104         NODE_CLOSURE_HOLDOUT,
105         NODE_LAYER_WEIGHT,
106         NODE_CLOSURE_VOLUME,
107         NODE_SEPARATE_VECTOR,
108         NODE_COMBINE_VECTOR,
109         NODE_SEPARATE_HSV,
110         NODE_COMBINE_HSV,
111         NODE_HSV,
112         NODE_CAMERA,
113         NODE_INVERT,
114         NODE_NORMAL,
115         NODE_GAMMA,
116         NODE_TEX_CHECKER,
117         NODE_BRIGHTCONTRAST,
118         NODE_RGB_RAMP,
119         NODE_RGB_CURVES,
120         NODE_VECTOR_CURVES,
121         NODE_MIN_MAX,
122         NODE_LIGHT_FALLOFF,
123         NODE_OBJECT_INFO,
124         NODE_PARTICLE_INFO,
125         NODE_TEX_BRICK,
126         NODE_CLOSURE_SET_NORMAL,
127         NODE_CLOSURE_AMBIENT_OCCLUSION,
128         NODE_TANGENT,
129         NODE_NORMAL_MAP,
130         NODE_HAIR_INFO,
131         NODE_UVMAP,
132         NODE_TEX_VOXEL,
133         NODE_ENTER_BUMP_EVAL,
134         NODE_LEAVE_BUMP_EVAL,
135         NODE_BEVEL,
136         NODE_DISPLACEMENT,
137         NODE_VECTOR_DISPLACEMENT,
138 } ShaderNodeType;
139
140 typedef enum NodeAttributeType {
141         NODE_ATTR_FLOAT = 0,
142         NODE_ATTR_FLOAT3,
143         NODE_ATTR_MATRIX
144 } NodeAttributeType;
145
146 typedef enum NodeGeometry {
147         NODE_GEOM_P = 0,
148         NODE_GEOM_N,
149         NODE_GEOM_T,
150         NODE_GEOM_I,
151         NODE_GEOM_Ng,
152         NODE_GEOM_uv
153 } NodeGeometry;
154
155 typedef enum NodeObjectInfo {
156         NODE_INFO_OB_LOCATION,
157         NODE_INFO_OB_INDEX,
158         NODE_INFO_MAT_INDEX,
159         NODE_INFO_OB_RANDOM
160 } NodeObjectInfo;
161
162 typedef enum NodeParticleInfo {
163         NODE_INFO_PAR_INDEX,
164         NODE_INFO_PAR_AGE,
165         NODE_INFO_PAR_LIFETIME,
166         NODE_INFO_PAR_LOCATION,
167         NODE_INFO_PAR_ROTATION,
168         NODE_INFO_PAR_SIZE,
169         NODE_INFO_PAR_VELOCITY,
170         NODE_INFO_PAR_ANGULAR_VELOCITY
171 } NodeParticleInfo;
172
173 typedef enum NodeHairInfo {
174         NODE_INFO_CURVE_IS_STRAND,
175         NODE_INFO_CURVE_INTERCEPT,
176         NODE_INFO_CURVE_THICKNESS,
177         /*fade for minimum hair width transpency*/
178         /*NODE_INFO_CURVE_FADE,*/
179         NODE_INFO_CURVE_TANGENT_NORMAL
180 } NodeHairInfo;
181
182 typedef enum NodeLightPath {
183         NODE_LP_camera = 0,
184         NODE_LP_shadow,
185         NODE_LP_diffuse,
186         NODE_LP_glossy,
187         NODE_LP_singular,
188         NODE_LP_reflection,
189         NODE_LP_transmission,
190         NODE_LP_volume_scatter,
191         NODE_LP_backfacing,
192         NODE_LP_ray_length,
193         NODE_LP_ray_depth,
194         NODE_LP_ray_diffuse,
195         NODE_LP_ray_glossy,
196         NODE_LP_ray_transparent,
197         NODE_LP_ray_transmission,
198 } NodeLightPath;
199
200 typedef enum NodeLightFalloff {
201         NODE_LIGHT_FALLOFF_QUADRATIC,
202         NODE_LIGHT_FALLOFF_LINEAR,
203         NODE_LIGHT_FALLOFF_CONSTANT
204 } NodeLightFalloff;
205
206 typedef enum NodeTexCoord {
207         NODE_TEXCO_NORMAL,
208         NODE_TEXCO_OBJECT,
209         NODE_TEXCO_CAMERA,
210         NODE_TEXCO_WINDOW,
211         NODE_TEXCO_REFLECTION,
212         NODE_TEXCO_DUPLI_GENERATED,
213         NODE_TEXCO_DUPLI_UV,
214         NODE_TEXCO_VOLUME_GENERATED
215 } NodeTexCoord;
216
217 typedef enum NodeMix {
218         NODE_MIX_BLEND = 0,
219         NODE_MIX_ADD,
220         NODE_MIX_MUL,
221         NODE_MIX_SUB,
222         NODE_MIX_SCREEN,
223         NODE_MIX_DIV,
224         NODE_MIX_DIFF,
225         NODE_MIX_DARK,
226         NODE_MIX_LIGHT,
227         NODE_MIX_OVERLAY,
228         NODE_MIX_DODGE,
229         NODE_MIX_BURN,
230         NODE_MIX_HUE,
231         NODE_MIX_SAT,
232         NODE_MIX_VAL,
233         NODE_MIX_COLOR,
234         NODE_MIX_SOFT,
235         NODE_MIX_LINEAR,
236         NODE_MIX_CLAMP /* used for the clamp UI option */
237 } NodeMix;
238
239 typedef enum NodeMath {
240         NODE_MATH_ADD,
241         NODE_MATH_SUBTRACT,
242         NODE_MATH_MULTIPLY,
243         NODE_MATH_DIVIDE,
244         NODE_MATH_SINE,
245         NODE_MATH_COSINE,
246         NODE_MATH_TANGENT,
247         NODE_MATH_ARCSINE,
248         NODE_MATH_ARCCOSINE,
249         NODE_MATH_ARCTANGENT,
250         NODE_MATH_POWER,
251         NODE_MATH_LOGARITHM,
252         NODE_MATH_MINIMUM,
253         NODE_MATH_MAXIMUM,
254         NODE_MATH_ROUND,
255         NODE_MATH_LESS_THAN,
256         NODE_MATH_GREATER_THAN,
257         NODE_MATH_MODULO,
258         NODE_MATH_ABSOLUTE,
259         NODE_MATH_CLAMP /* used for the clamp UI option */
260 } NodeMath;
261
262 typedef enum NodeVectorMath {
263         NODE_VECTOR_MATH_ADD,
264         NODE_VECTOR_MATH_SUBTRACT,
265         NODE_VECTOR_MATH_AVERAGE,
266         NODE_VECTOR_MATH_DOT_PRODUCT,
267         NODE_VECTOR_MATH_CROSS_PRODUCT,
268         NODE_VECTOR_MATH_NORMALIZE
269 } NodeVectorMath;
270
271 typedef enum NodeVectorTransformType {
272         NODE_VECTOR_TRANSFORM_TYPE_VECTOR,
273         NODE_VECTOR_TRANSFORM_TYPE_POINT,
274         NODE_VECTOR_TRANSFORM_TYPE_NORMAL
275 } NodeVectorTransformType;
276
277 typedef enum NodeVectorTransformConvertSpace {
278         NODE_VECTOR_TRANSFORM_CONVERT_SPACE_WORLD,
279         NODE_VECTOR_TRANSFORM_CONVERT_SPACE_OBJECT,
280         NODE_VECTOR_TRANSFORM_CONVERT_SPACE_CAMERA
281 } NodeVectorTransformConvertSpace;
282
283 typedef enum NodeConvert {
284         NODE_CONVERT_FV,
285         NODE_CONVERT_FI,
286         NODE_CONVERT_CF,
287         NODE_CONVERT_CI,
288         NODE_CONVERT_VF,
289         NODE_CONVERT_VI,
290         NODE_CONVERT_IF,
291         NODE_CONVERT_IV
292 } NodeConvert;
293
294 typedef enum NodeMusgraveType {
295         NODE_MUSGRAVE_MULTIFRACTAL,
296         NODE_MUSGRAVE_FBM,
297         NODE_MUSGRAVE_HYBRID_MULTIFRACTAL,
298         NODE_MUSGRAVE_RIDGED_MULTIFRACTAL,
299         NODE_MUSGRAVE_HETERO_TERRAIN
300 } NodeMusgraveType;
301
302 typedef enum NodeWaveType {
303         NODE_WAVE_BANDS,
304         NODE_WAVE_RINGS
305 } NodeWaveType;
306
307 typedef enum NodeWaveProfiles {
308         NODE_WAVE_PROFILE_SIN,
309         NODE_WAVE_PROFILE_SAW,
310 } NodeWaveProfile;
311
312 typedef enum NodeSkyType {
313         NODE_SKY_OLD,
314         NODE_SKY_NEW
315 } NodeSkyType;
316
317 typedef enum NodeGradientType {
318         NODE_BLEND_LINEAR,
319         NODE_BLEND_QUADRATIC,
320         NODE_BLEND_EASING,
321         NODE_BLEND_DIAGONAL,
322         NODE_BLEND_RADIAL,
323         NODE_BLEND_QUADRATIC_SPHERE,
324         NODE_BLEND_SPHERICAL
325 } NodeGradientType;
326
327 typedef enum NodeVoronoiColoring {
328         NODE_VORONOI_INTENSITY,
329         NODE_VORONOI_CELLS
330 } NodeVoronoiColoring;
331
332 typedef enum NodeBlendWeightType {
333         NODE_LAYER_WEIGHT_FRESNEL,
334         NODE_LAYER_WEIGHT_FACING
335 } NodeBlendWeightType;
336
337 typedef enum NodeTangentDirectionType {
338         NODE_TANGENT_RADIAL,
339         NODE_TANGENT_UVMAP
340 } NodeTangentDirectionType;
341
342 typedef enum NodeTangentAxis {
343         NODE_TANGENT_AXIS_X,
344         NODE_TANGENT_AXIS_Y,
345         NODE_TANGENT_AXIS_Z
346 } NodeTangentAxis;
347
348 typedef enum NodeNormalMapSpace {
349         NODE_NORMAL_MAP_TANGENT,
350         NODE_NORMAL_MAP_OBJECT,
351         NODE_NORMAL_MAP_WORLD,
352         NODE_NORMAL_MAP_BLENDER_OBJECT,
353         NODE_NORMAL_MAP_BLENDER_WORLD,
354 } NodeNormalMapSpace;
355
356 typedef enum NodeImageColorSpace {
357         NODE_COLOR_SPACE_NONE  = 0,
358         NODE_COLOR_SPACE_COLOR = 1,
359 } NodeImageColorSpace;
360
361 typedef enum NodeImageProjection {
362         NODE_IMAGE_PROJ_FLAT   = 0,
363         NODE_IMAGE_PROJ_BOX    = 1,
364         NODE_IMAGE_PROJ_SPHERE = 2,
365         NODE_IMAGE_PROJ_TUBE   = 3,
366 } NodeImageProjection;
367
368 typedef enum NodeEnvironmentProjection {
369         NODE_ENVIRONMENT_EQUIRECTANGULAR = 0,
370         NODE_ENVIRONMENT_MIRROR_BALL = 1,
371 } NodeEnvironmentProjection;
372
373 typedef enum NodeBumpOffset {
374         NODE_BUMP_OFFSET_CENTER,
375         NODE_BUMP_OFFSET_DX,
376         NODE_BUMP_OFFSET_DY,
377 } NodeBumpOffset;
378
379 typedef enum NodeTexVoxelSpace {
380         NODE_TEX_VOXEL_SPACE_OBJECT = 0,
381         NODE_TEX_VOXEL_SPACE_WORLD  = 1,
382 } NodeTexVoxelSpace;
383
384 typedef enum ShaderType {
385         SHADER_TYPE_SURFACE,
386         SHADER_TYPE_VOLUME,
387         SHADER_TYPE_DISPLACEMENT,
388         SHADER_TYPE_BUMP,
389 } ShaderType;
390
391 /* Closure */
392
393 typedef enum ClosureType {
394         /* Special type, flags generic node as a non-BSDF. */
395         CLOSURE_NONE_ID,
396
397         CLOSURE_BSDF_ID,
398
399         /* Diffuse */
400         CLOSURE_BSDF_DIFFUSE_ID,
401         CLOSURE_BSDF_OREN_NAYAR_ID,
402         CLOSURE_BSDF_DIFFUSE_RAMP_ID,
403         CLOSURE_BSDF_PRINCIPLED_DIFFUSE_ID,
404         CLOSURE_BSDF_PRINCIPLED_SHEEN_ID,
405         CLOSURE_BSDF_DIFFUSE_TOON_ID,
406
407         /* Glossy */
408         CLOSURE_BSDF_REFLECTION_ID,
409         CLOSURE_BSDF_MICROFACET_GGX_ID,
410         CLOSURE_BSDF_MICROFACET_GGX_FRESNEL_ID,
411         CLOSURE_BSDF_MICROFACET_GGX_CLEARCOAT_ID,
412         CLOSURE_BSDF_MICROFACET_BECKMANN_ID,
413         CLOSURE_BSDF_MICROFACET_MULTI_GGX_ID,
414         CLOSURE_BSDF_MICROFACET_MULTI_GGX_FRESNEL_ID,
415         CLOSURE_BSDF_ASHIKHMIN_SHIRLEY_ID,
416         CLOSURE_BSDF_MICROFACET_GGX_ANISO_ID,
417         CLOSURE_BSDF_MICROFACET_GGX_ANISO_FRESNEL_ID,
418         CLOSURE_BSDF_MICROFACET_MULTI_GGX_ANISO_ID,
419         CLOSURE_BSDF_MICROFACET_MULTI_GGX_ANISO_FRESNEL_ID,
420         CLOSURE_BSDF_MICROFACET_BECKMANN_ANISO_ID,
421         CLOSURE_BSDF_ASHIKHMIN_SHIRLEY_ANISO_ID,
422         CLOSURE_BSDF_ASHIKHMIN_VELVET_ID,
423         CLOSURE_BSDF_PHONG_RAMP_ID,
424         CLOSURE_BSDF_GLOSSY_TOON_ID,
425         CLOSURE_BSDF_HAIR_REFLECTION_ID,
426
427         /* Transmission */
428         CLOSURE_BSDF_TRANSLUCENT_ID,
429         CLOSURE_BSDF_REFRACTION_ID,
430         CLOSURE_BSDF_MICROFACET_BECKMANN_REFRACTION_ID,
431         CLOSURE_BSDF_MICROFACET_GGX_REFRACTION_ID,
432         CLOSURE_BSDF_MICROFACET_MULTI_GGX_GLASS_ID,
433         CLOSURE_BSDF_MICROFACET_BECKMANN_GLASS_ID,
434         CLOSURE_BSDF_MICROFACET_GGX_GLASS_ID,
435         CLOSURE_BSDF_MICROFACET_MULTI_GGX_GLASS_FRESNEL_ID,
436         CLOSURE_BSDF_SHARP_GLASS_ID,
437         CLOSURE_BSDF_HAIR_TRANSMISSION_ID,
438
439         /* Special cases */
440         CLOSURE_BSDF_BSSRDF_ID,
441         CLOSURE_BSDF_BSSRDF_PRINCIPLED_ID,
442         CLOSURE_BSDF_TRANSPARENT_ID,
443
444         /* BSSRDF */
445         CLOSURE_BSSRDF_CUBIC_ID,
446         CLOSURE_BSSRDF_GAUSSIAN_ID,
447         CLOSURE_BSSRDF_PRINCIPLED_ID,
448         CLOSURE_BSSRDF_BURLEY_ID,
449         CLOSURE_BSSRDF_RANDOM_WALK_ID,
450
451         /* Other */
452         CLOSURE_HOLDOUT_ID,
453         CLOSURE_AMBIENT_OCCLUSION_ID,
454
455         /* Volume */
456         CLOSURE_VOLUME_ID,
457         CLOSURE_VOLUME_ABSORPTION_ID,
458         CLOSURE_VOLUME_HENYEY_GREENSTEIN_ID,
459
460         CLOSURE_BSDF_PRINCIPLED_ID,
461
462         NBUILTIN_CLOSURES
463 } ClosureType;
464
465 /* watch this, being lazy with memory usage */
466 #define CLOSURE_IS_BSDF(type) (type <= CLOSURE_BSDF_TRANSPARENT_ID)
467 #define CLOSURE_IS_BSDF_DIFFUSE(type) (type >= CLOSURE_BSDF_DIFFUSE_ID && type <= CLOSURE_BSDF_DIFFUSE_TOON_ID)
468 #define CLOSURE_IS_BSDF_GLOSSY(type) (type >= CLOSURE_BSDF_REFLECTION_ID && type <= CLOSURE_BSDF_HAIR_REFLECTION_ID)
469 #define CLOSURE_IS_BSDF_TRANSMISSION(type) (type >= CLOSURE_BSDF_TRANSLUCENT_ID && type <= CLOSURE_BSDF_HAIR_TRANSMISSION_ID)
470 #define CLOSURE_IS_BSDF_BSSRDF(type) (type == CLOSURE_BSDF_BSSRDF_ID || type == CLOSURE_BSDF_BSSRDF_PRINCIPLED_ID)
471 #define CLOSURE_IS_BSDF_SINGULAR(type) (type == CLOSURE_BSDF_REFLECTION_ID || \
472                                         type == CLOSURE_BSDF_REFRACTION_ID || \
473                                         type == CLOSURE_BSDF_TRANSPARENT_ID)
474 #define CLOSURE_IS_BSDF_TRANSPARENT(type) (type == CLOSURE_BSDF_TRANSPARENT_ID)
475 #define CLOSURE_IS_BSDF_MULTISCATTER(type) (type == CLOSURE_BSDF_MICROFACET_MULTI_GGX_ID ||\
476                                             type == CLOSURE_BSDF_MICROFACET_MULTI_GGX_ANISO_ID || \
477                                             type == CLOSURE_BSDF_MICROFACET_MULTI_GGX_GLASS_ID)
478 #define CLOSURE_IS_BSDF_MICROFACET(type) ((type >= CLOSURE_BSDF_MICROFACET_GGX_ID && type <= CLOSURE_BSDF_ASHIKHMIN_SHIRLEY_ANISO_ID) ||\
479                                           (type >= CLOSURE_BSDF_MICROFACET_BECKMANN_REFRACTION_ID && type <= CLOSURE_BSDF_MICROFACET_MULTI_GGX_GLASS_ID) ||\
480                                           (type == CLOSURE_BSDF_MICROFACET_MULTI_GGX_GLASS_FRESNEL_ID))
481 #define CLOSURE_IS_BSDF_OR_BSSRDF(type) (type <= CLOSURE_BSSRDF_RANDOM_WALK_ID)
482 #define CLOSURE_IS_BSSRDF(type) (type >= CLOSURE_BSSRDF_CUBIC_ID && type <= CLOSURE_BSSRDF_RANDOM_WALK_ID)
483 #define CLOSURE_IS_DISK_BSSRDF(type) (type >= CLOSURE_BSSRDF_CUBIC_ID && type <= CLOSURE_BSSRDF_BURLEY_ID)
484 #define CLOSURE_IS_VOLUME(type) (type >= CLOSURE_VOLUME_ID && type <= CLOSURE_VOLUME_HENYEY_GREENSTEIN_ID)
485 #define CLOSURE_IS_VOLUME_SCATTER(type) (type == CLOSURE_VOLUME_HENYEY_GREENSTEIN_ID)
486 #define CLOSURE_IS_VOLUME_ABSORPTION(type) (type == CLOSURE_VOLUME_ABSORPTION_ID)
487 #define CLOSURE_IS_HOLDOUT(type) (type == CLOSURE_HOLDOUT_ID)
488 #define CLOSURE_IS_AMBIENT_OCCLUSION(type) (type == CLOSURE_AMBIENT_OCCLUSION_ID)
489 #define CLOSURE_IS_PHASE(type) (type == CLOSURE_VOLUME_HENYEY_GREENSTEIN_ID)
490 #define CLOSURE_IS_GLASS(type) (type >= CLOSURE_BSDF_MICROFACET_MULTI_GGX_GLASS_ID && type <= CLOSURE_BSDF_SHARP_GLASS_ID)
491 #define CLOSURE_IS_PRINCIPLED(type) (type == CLOSURE_BSDF_PRINCIPLED_ID)
492
493 #define CLOSURE_WEIGHT_CUTOFF 1e-5f
494
495 CCL_NAMESPACE_END
496
497 #endif /*  __SVM_TYPES_H__ */
498