|
Blender V4.5
|
#include "util/math_base.h"#include "util/math_float3.h"#include "util/math_float4.h"#include "util/math_int4.h"#include "util/types_float3.h"#include "util/types_float4.h"Go to the source code of this file.
| ccl_device float fast_acosf | ( | const float | x | ) |
Definition at line 259 of file math_fast.h.
References ccl_device, fabsf, fast_acosf(), M_PI_F, sqrtf, and x.
Referenced by bsdf_hair_reflection_eval(), bsdf_hair_reflection_sample(), bsdf_hair_transmission_eval(), bsdf_hair_transmission_sample(), fast_acosf(), light_tree_importance(), shift_cos_in(), and spot_light_tree_parameters().
| ccl_device float fast_asinf | ( | const float | x | ) |
Definition at line 276 of file math_fast.h.
References ccl_device, copysignf, fabsf, fast_asinf(), M_PI_2_F, sqrtf, and x.
Referenced by fast_asinf().
| ccl_device float fast_atan2f | ( | const float | y, |
| const float | x ) |
Definition at line 309 of file math_fast.h.
References __float_as_uint, b, ccl_device, copysignf, fabsf, fast_atan2f(), M_PI_2_F, M_PI_F, madd(), x, and y.
Referenced by bsdf_hair_reflection_eval(), bsdf_hair_reflection_sample(), bsdf_hair_transmission_eval(), bsdf_hair_transmission_sample(), fast_atan2f(), light_tree_emitter_importance(), light_tree_node_importance(), triangle_light_pdf(), triangle_light_sample(), and vector_angle().
| ccl_device float fast_atanf | ( | const float | x | ) |
Definition at line 290 of file math_fast.h.
References ccl_device, copysignf, fabsf, fast_atanf(), M_PI_2_F, madd(), and x.
Referenced by fast_atanf(), and LightTreeEmitter::LightTreeEmitter().
| ccl_device float fast_cosf | ( | float | x | ) |
Definition at line 118 of file math_fast.h.
References ccl_device, clamp(), fast_cosf(), fast_rint(), M_1_PI_F, M_PI_2_F, madd(), and x.
Referenced by bsdf_hair_reflection_eval(), bsdf_hair_reflection_sample(), bsdf_hair_transmission_eval(), d_gamma_d_h(), distant_light_tree_parameters(), fast_cosf(), light_tree_importance(), light_tree_node_importance(), phase_mie_fitted_parameters(), and TEST().
| ccl_device_inline float fast_coshf | ( | const float | x | ) |
Definition at line 502 of file math_fast.h.
References ccl_device_inline, e, fabsf, fast_coshf(), fast_expf(), and x.
Referenced by fast_coshf().
| ccl_device_inline float fast_cospif | ( | const float | x | ) |
Definition at line 254 of file math_fast.h.
References ccl_device_inline, fast_cospif(), fast_sinpif(), and x.
Referenced by fast_cospif().
| ccl_device_inline float fast_erfcf | ( | const float | x | ) |
Definition at line 587 of file math_fast.h.
References ccl_device_inline, fast_erfcf(), fast_erff(), and x.
Referenced by fast_erfcf().
| ccl_device_inline float fast_erff | ( | const float | x | ) |
Definition at line 563 of file math_fast.h.
References b, ccl_device_inline, copysignf, fabsf, fast_erff(), madd(), v, and x.
Referenced by fast_erfcf(), fast_erff(), and microfacet_beckmann_sample_vndf().
| ccl_device_inline float fast_exp10 | ( | const float | x | ) |
Definition at line 465 of file math_fast.h.
References ccl_device_inline, fast_exp10(), fast_exp2f(), M_LN10_F, M_LN2_F, and x.
Referenced by fast_exp10().
| ccl_device float fast_exp2f | ( | float | x | ) |
Definition at line 399 of file math_fast.h.
References __float_as_uint, __uint_as_float, ccl_device, clamp(), fast_exp2f(), madd(), and x.
Referenced by fast_exp10(), fast_exp2f(), fast_expf(), and fast_safe_powf().
| ccl_device float4 fast_exp2f4 | ( | float4 | x | ) |
Definition at line 438 of file math_fast.h.
References __float4_as_int4(), __int4_as_float4(), ccl_device, clamp(), fast_exp2f4(), madd4(), make_float4(), make_int4(), and x.
Referenced by fast_exp2f4(), and fast_expf4().
| ccl_device_inline float fast_expf | ( | const float | x | ) |
Definition at line 426 of file math_fast.h.
References ccl_device_inline, fast_exp2f(), fast_expf(), M_LN2_F, and x.
Referenced by fast_coshf(), fast_expf(), fast_expm1f(), fast_sinhf(), fast_tanhf(), and phase_mie_fitted_parameters().
| ccl_device_inline float4 fast_expf4 | ( | const float4 | x | ) |
Definition at line 454 of file math_fast.h.
References ccl_device_inline, fast_exp2f4(), fast_expf4(), M_LN2_F, and x.
Referenced by fast_expf4().
| ccl_device_inline float fast_expm1f | ( | float | x | ) |
Definition at line 473 of file math_fast.h.
References ccl_device_inline, fabsf, fast_expf(), fast_expm1f(), madd(), and x.
Referenced by fast_expm1f().
| ccl_device_inline float fast_ierff | ( | const float | x | ) |
Definition at line 598 of file math_fast.h.
References ccl_device_inline, fabsf, fast_ierff(), fast_logf(), madd(), min, sqrtf, w(), and x.
Referenced by fast_ierff(), and microfacet_beckmann_sample_vndf().
| ccl_device_inline float fast_inv_cbrtf | ( | const float | x | ) |
Definition at line 633 of file math_fast.h.
References __float_as_int, __int_as_float, ccl_device_inline, fast_inv_cbrtf(), util_assert, x, and y.
Referenced by fast_inv_cbrtf(), phase_draine_sample_cos(), and phase_rayleigh_sample().
| ccl_device_inline float fast_log10 | ( | const float | x | ) |
Definition at line 382 of file math_fast.h.
References ccl_device_inline, fast_log10(), fast_log2f(), M_LN10_F, M_LN2_F, and x.
Referenced by fast_log10().
| ccl_device float fast_log2f | ( | float | x | ) |
Definition at line 348 of file math_fast.h.
References __float_as_uint, __uint_as_float, ccl_device, clamp(), fast_log2f(), FLT_MAX, madd(), and x.
Referenced by fast_log10(), fast_log2f(), fast_logf(), and fast_safe_powf().
| ccl_device float fast_logb | ( | float | x | ) |
Definition at line 390 of file math_fast.h.
References __float_as_uint, ccl_device, clamp(), fabsf, fast_logb(), FLT_MAX, and x.
Referenced by fast_logb().
| ccl_device_inline float fast_logf | ( | const float | x | ) |
Definition at line 374 of file math_fast.h.
References ccl_device_inline, fast_log2f(), fast_logf(), M_LN2_F, and x.
Referenced by fast_ierff(), fast_logf(), and phase_mie_fitted_parameters().
| ccl_device_inline int fast_rint | ( | const float | x | ) |
Definition at line 68 of file math_fast.h.
References ccl_device_inline, copysignf, fast_rint(), float_to_int(), and x.
Referenced by fast_cosf(), fast_rint(), fast_sincosf(), fast_sinf(), and fast_tanf().
| ccl_device float fast_safe_powf | ( | const float | x, |
| const float | y ) |
Definition at line 521 of file math_fast.h.
References __float_as_int, __int_as_float, ccl_device, fabsf, fast_exp2f(), fast_log2f(), fast_safe_powf(), sign(), x, and y.
Referenced by fast_safe_powf().
| ccl_device void fast_sincosf | ( | float | x, |
| ccl_private float * | sine, | ||
| ccl_private float * | cosine ) |
Definition at line 144 of file math_fast.h.
References ccl_device, ccl_private, clamp(), fast_rint(), fast_sincosf(), M_1_PI_F, M_PI_2_F, madd(), and x.
Referenced by bsdf_hair_huang_sample(), bsdf_hair_reflection_sample(), bsdf_hair_transmission_sample(), d_gamma_d_h(), fast_sincosf(), light_tree_importance(), mnee_sample_bsdf_dh(), phi_to_h(), sphg_dir(), to_gamma(), to_phi(), to_point(), and triangle_light_sample().
| ccl_device float fast_sinf | ( | float | x | ) |
Definition at line 83 of file math_fast.h.
References ccl_device, clamp(), fast_rint(), fast_sinf(), M_1_PI_F, M_PI_2_F, madd(), and x.
Referenced by fast_sinf(), phase_mie_fitted_parameters(), phi_to_h(), and TEST().
| ccl_device float fast_sinhf | ( | const float | x | ) |
Definition at line 482 of file math_fast.h.
References ccl_device, copysignf, e, fabsf, fast_expf(), fast_sinhf(), madd(), and x.
Referenced by fast_sinhf().
| ccl_device float fast_sinpif | ( | const float | x | ) |
Definition at line 218 of file math_fast.h.
References ccl_device, fabsf, fast_sinpif(), P, x, y, and z().
Referenced by fast_cospif(), and fast_sinpif().
| ccl_device float fast_tanf | ( | float | x | ) |
Definition at line 183 of file math_fast.h.
References ccl_device, fast_rint(), fast_tanf(), M_1_PI_F, M_PI_4_F, madd(), and x.
Referenced by fast_tanf(), LightTreeEmitter::LightTreeEmitter(), and phase_mie_fitted_parameters().
| ccl_device_inline float fast_tanhf | ( | const float | x | ) |
Definition at line 511 of file math_fast.h.
References ccl_device_inline, copysignf, e, fabsf, fast_expf(), fast_tanhf(), and x.
Referenced by fast_tanhf().
| CCL_NAMESPACE_BEGIN ccl_device_inline float madd | ( | const float | a, |
| const float | b, | ||
| const float | c ) |
Definition at line 35 of file math_fast.h.
References b, ccl_device_inline, and madd().
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(), madd(), madd(), ray_triangle_dot(), transform_direction(), and transform_point().
| ccl_device_inline float4 madd4 | ( | const float4 | a, |
| const float4 | b, | ||
| const float4 | c ) |
Definition at line 46 of file math_fast.h.
References b, ccl_device_inline, and madd4().
Referenced by fast_exp2f4(), and madd4().
| ccl_device_inline float vector_angle | ( | const float3 | a, |
| const float3 | b ) |
Definition at line 339 of file math_fast.h.
References b, ccl_device_inline, fast_atan2f(), len(), and vector_angle().
Referenced by distant_light_intersect(), distant_light_sample_from_intersection(), and vector_angle().