|
Blender V5.0
|
#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, M_PI_F, sqrtf, and x.
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 | ( | const float | x | ) |
Definition at line 276 of file math_fast.h.
References ccl_device, copysignf, fabsf, M_PI_2_F, sqrtf, and x.
| 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, 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(), 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, M_PI_2_F, madd(), and x.
Referenced by LightTreeEmitter::LightTreeEmitter().
| ccl_device float fast_cosf | ( | float | x | ) |
Definition at line 118 of file math_fast.h.
References ccl_device, clamp(), fast_rint(), float, 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(), 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 507 of file math_fast.h.
References ccl_device_inline, e, fabsf, fast_expf(), and x.
| ccl_device_inline float fast_cospif | ( | const float | x | ) |
Definition at line 254 of file math_fast.h.
References ccl_device_inline, fast_sinpif(), and x.
| ccl_device_inline float fast_erfcf | ( | const float | x | ) |
Definition at line 592 of file math_fast.h.
References ccl_device_inline, fast_erff(), and x.
| ccl_device_inline float fast_erff | ( | const float | x | ) |
Definition at line 568 of file math_fast.h.
References b, ccl_device_inline, copysignf, fabsf, madd(), v, and x.
Referenced by fast_erfcf(), and microfacet_beckmann_sample_vndf().
| ccl_device_inline float fast_exp10 | ( | const float | x | ) |
Definition at line 470 of file math_fast.h.
References ccl_device_inline, fast_exp2f(), M_LN10_F, M_LN2_F, and x.
| ccl_device float fast_exp2f | ( | float | x | ) |
Definition at line 404 of file math_fast.h.
References __float_as_uint, __uint_as_float, ccl_device, clamp(), madd(), and x.
Referenced by fast_exp10(), fast_expf(), and fast_safe_powf().
| ccl_device float4 fast_exp2f4 | ( | float4 | x | ) |
Definition at line 443 of file math_fast.h.
References __float4_as_int4(), __int4_as_float4(), ccl_device, clamp(), madd4(), make_float4, make_int4(), and x.
Referenced by fast_expf4().
| ccl_device_inline float fast_expf | ( | const float | x | ) |
Definition at line 431 of file math_fast.h.
References ccl_device_inline, fast_exp2f(), M_LN2_F, and x.
Referenced by fast_coshf(), fast_expm1f(), fast_sinhf(), fast_tanhf(), and phase_mie_fitted_parameters().
| ccl_device_inline float4 fast_expf4 | ( | const float4 | x | ) |
Definition at line 459 of file math_fast.h.
References ccl_device_inline, fast_exp2f4(), M_LN2_F, and x.
| ccl_device_inline float fast_expm1f | ( | float | x | ) |
Definition at line 478 of file math_fast.h.
References ccl_device_inline, fabsf, fast_expf(), madd(), and x.
| ccl_device_inline float fast_ierff | ( | const float | x | ) |
Definition at line 603 of file math_fast.h.
References ccl_device_inline, fabsf, fast_logf(), madd(), min, sqrtf, w(), and x.
Referenced by microfacet_beckmann_sample_vndf().
| ccl_device_inline float fast_inv_cbrtf | ( | const float | x | ) |
Definition at line 638 of file math_fast.h.
References __float_as_int, __int_as_float, ccl_device_inline, util_assert, x, and y.
Referenced by phase_draine_sample_cos(), and phase_rayleigh_sample().
| ccl_device_inline float fast_log10 | ( | const float | x | ) |
Definition at line 387 of file math_fast.h.
References ccl_device_inline, fast_log2f(), M_LN10_F, M_LN2_F, and x.
| ccl_device float fast_log2f | ( | float | x | ) |
Definition at line 353 of file math_fast.h.
References __float_as_uint, __uint_as_float, ccl_device, clamp(), floor_log2f(), FLT_MAX, madd(), and x.
Referenced by fast_log10(), fast_logf(), and fast_safe_powf().
| ccl_device float fast_logb | ( | float | x | ) |
Definition at line 395 of file math_fast.h.
References __float_as_uint, ccl_device, clamp(), fabsf, FLT_MAX, and x.
| ccl_device_inline float fast_logf | ( | const float | x | ) |
Definition at line 379 of file math_fast.h.
References ccl_device_inline, fast_log2f(), M_LN2_F, and x.
Referenced by fast_ierff(), 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, float_to_int(), and x.
Referenced by fast_cosf(), fast_sincosf(), fast_sinf(), and fast_tanf().
| ccl_device float fast_safe_powf | ( | const float | x, |
| const float | y ) |
Definition at line 526 of file math_fast.h.
References __float_as_int, __int_as_float, ccl_device, fabsf, fast_exp2f(), fast_log2f(), sign(), x, and y.
| 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(), float, 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(), 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(), float, M_1_PI_F, M_PI_2_F, madd(), and x.
Referenced by phase_mie_fitted_parameters(), phi_to_h(), and TEST().
| ccl_device float fast_sinhf | ( | const float | x | ) |
Definition at line 487 of file math_fast.h.
References ccl_device, copysignf, e, fabsf, fast_expf(), madd(), and x.
| ccl_device float fast_sinpif | ( | const float | x | ) |
Definition at line 218 of file math_fast.h.
References ccl_device, fabsf, P, x, y, and z().
Referenced by fast_cospif().
| ccl_device float fast_tanf | ( | float | x | ) |
Definition at line 183 of file math_fast.h.
References ccl_device, fast_rint(), float, M_1_PI_F, M_PI_4_F, madd(), and x.
Referenced by LightTreeEmitter::LightTreeEmitter(), and phase_mie_fitted_parameters().
| ccl_device_inline float fast_tanhf | ( | const float | x | ) |
Definition at line 516 of file math_fast.h.
References ccl_device_inline, copysignf, e, fabsf, fast_expf(), and x.
| ccl_device_inline int floor_log2f | ( | const float | x | ) |
Definition at line 344 of file math_fast.h.
References __float_as_uint, ccl_device_inline, and x.
Referenced by fast_log2f(), and rgb_to_rgbe().
| 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, and ccl_device_inline.
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(), transform_point(), 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, and ccl_device_inline.
Referenced by fast_exp2f4().
| 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(), and len.
Referenced by distant_light_intersect(), and distant_light_sample_from_intersection().