|
Blender V4.3
|
Go to the source code of this file.
| ccl_device float fast_acosf | ( | float | x | ) |
Definition at line 260 of file math_fast.h.
References fabsf, M_PI_F, and sqrtf.
Referenced by bsdf_hair_reflection_eval(), bsdf_hair_reflection_sample(), bsdf_hair_transmission_eval(), bsdf_hair_transmission_sample(), light_tree_importance(), shift_cos_in(), and spot_light_tree_parameters().
| ccl_device float fast_asinf | ( | float | x | ) |
| ccl_device float fast_atan2f | ( | float | y, |
| float | x ) |
Definition at line 310 of file math_fast.h.
References __float_as_uint, b, copysignf, fabsf, M_PI_2_F, M_PI_F, and madd().
Referenced by bsdf_hair_reflection_eval(), bsdf_hair_reflection_sample(), bsdf_hair_transmission_eval(), bsdf_hair_transmission_sample(), light_tree_emitter_importance(), light_tree_node_importance(), triangle_light_pdf(), triangle_light_sample(), and vector_angle().
| ccl_device float fast_atanf | ( | float | x | ) |
Definition at line 291 of file math_fast.h.
References copysignf, fabsf, M_PI_2_F, and madd().
Referenced by LightTreeEmitter::LightTreeEmitter().
| ccl_device float fast_cosf | ( | float | x | ) |
Definition at line 113 of file math_fast.h.
References fabsf, fast_rint(), float, M_PI_2_F, madd(), and x.
Referenced by bsdf_hair_reflection_eval(), bsdf_hair_reflection_sample(), bsdf_hair_transmission_eval(), distant_light_tree_parameters(), and light_tree_node_importance().
| ccl_device_inline float fast_coshf | ( | float | x | ) |
Definition at line 507 of file math_fast.h.
References e, fabsf, and fast_expf().
| ccl_device_inline float fast_cospif | ( | float | x | ) |
Definition at line 255 of file math_fast.h.
References fast_sinpif().
| ccl_device_inline float fast_erfcf | ( | float | x | ) |
Definition at line 590 of file math_fast.h.
References fast_erff().
| ccl_device_inline float fast_erff | ( | float | x | ) |
Definition at line 566 of file math_fast.h.
References b, copysignf, fabsf, madd(), and v.
Referenced by fast_erfcf(), and microfacet_beckmann_sample_vndf().
| ccl_device_inline float fast_exp10 | ( | float | x | ) |
Definition at line 466 of file math_fast.h.
References fast_exp2f().
| ccl_device float fast_exp2f | ( | float | x | ) |
Definition at line 400 of file math_fast.h.
References __float_as_uint, __uint_as_float, clamp(), int, madd(), and x.
Referenced by fast_exp10(), fast_expf(), and fast_safe_powf().
| ccl_device float4 fast_exp2f4 | ( | float4 | x | ) |
Definition at line 439 of file math_fast.h.
References __float4_as_int4(), __int4_as_float4(), clamp(), madd4(), make_float4(), and make_int4().
Referenced by fast_expf4().
| ccl_device_inline float fast_expf | ( | float | x | ) |
Definition at line 427 of file math_fast.h.
References fast_exp2f().
Referenced by fast_coshf(), fast_expm1f(), fast_sinhf(), fast_tanhf(), and svm_node_closure_volume().
| ccl_device_inline float4 fast_expf4 | ( | float4 | x | ) |
Definition at line 455 of file math_fast.h.
References fast_exp2f4().
| ccl_device_inline float fast_expm1f | ( | float | x | ) |
Definition at line 474 of file math_fast.h.
References fabsf, fast_expf(), madd(), and x.
| ccl_device_inline float fast_ierff | ( | float | x | ) |
Definition at line 601 of file math_fast.h.
References fabsf, fast_logf(), madd(), sqrtf, w(), and x.
Referenced by microfacet_beckmann_sample_vndf().
| ccl_device_inline float fast_inv_cbrtf | ( | float | x | ) |
Definition at line 638 of file math_fast.h.
References __float_as_int, __int_as_float, util_assert, and y.
Referenced by phase_draine_sample_cos(), and phase_rayleigh_sample().
| ccl_device_inline float fast_log10 | ( | float | x | ) |
Definition at line 383 of file math_fast.h.
References fast_log2f().
| ccl_device float fast_log2f | ( | float | x | ) |
Definition at line 349 of file math_fast.h.
References __float_as_uint, __uint_as_float, clamp(), FLT_MAX, int, and madd().
Referenced by fast_log10(), fast_logf(), and fast_safe_powf().
| ccl_device float fast_logb | ( | float | x | ) |
Definition at line 391 of file math_fast.h.
References __float_as_uint, clamp(), fabsf, FLT_MAX, and int.
| ccl_device_inline float fast_logf | ( | float | x | ) |
| ccl_device_inline int fast_rint | ( | float | x | ) |
Definition at line 62 of file math_fast.h.
References copysignf, and float_to_int().
Referenced by fast_cosf(), fast_sincosf(), fast_sinf(), and fast_tanf().
| ccl_device float fast_safe_powf | ( | float | x, |
| float | y ) |
Definition at line 526 of file math_fast.h.
References __float_as_int, __int_as_float, fabsf, fast_exp2f(), and fast_log2f().
| ccl_device void fast_sincosf | ( | float | x, |
| ccl_private float * | sine, | ||
| ccl_private float * | cosine ) |
Definition at line 141 of file math_fast.h.
References fabsf, fast_rint(), float, M_PI_2_F, madd(), and x.
Referenced by bsdf_hair_huang_sample(), bsdf_hair_reflection_sample(), bsdf_hair_transmission_sample(), light_tree_importance(), sphg_dir(), to_gamma(), to_phi(), to_point(), and triangle_light_sample().
| ccl_device float fast_sinf | ( | float | x | ) |
Definition at line 77 of file math_fast.h.
References fabsf, fast_rint(), float, M_PI_2_F, madd(), and x.
| ccl_device float fast_sinhf | ( | float | x | ) |
Definition at line 485 of file math_fast.h.
References copysignf, e, fabsf, fast_expf(), and madd().
| ccl_device float fast_sinpif | ( | float | x | ) |
Definition at line 219 of file math_fast.h.
Referenced by fast_cospif().
| ccl_device float fast_tanf | ( | float | x | ) |
Definition at line 184 of file math_fast.h.
References fast_rint(), float, madd(), and x.
Referenced by LightTreeEmitter::LightTreeEmitter().
| ccl_device_inline float fast_tanhf | ( | float | x | ) |
Definition at line 516 of file math_fast.h.
References copysignf, e, fabsf, and fast_expf().
| CCL_NAMESPACE_BEGIN ccl_device_inline float madd | ( | const float | a, |
| const float | b, | ||
| const float | c ) |
Definition at line 29 of file math_fast.h.
References b.
Referenced by fast_atan2f(), fast_atanf(), fast_cosf(), fast_erff(), fast_exp2f(), fast_expm1f(), fast_ierff(), fast_log2f(), fast_sincosf(), fast_sinf(), fast_sinhf(), fast_tanf(), ray_triangle_dot(), transform_direction(), and transform_point().
| ccl_device_inline float4 madd4 | ( | const float4 | a, |
| const float4 | b, | ||
| const float4 | c ) |
| ccl_device_inline float vector_angle | ( | float3 | a, |
| float3 | b ) |
Definition at line 340 of file math_fast.h.
References b, fast_atan2f(), and len.
Referenced by distant_light_intersect(), and distant_light_sample_from_intersection().