FAST_DISTANCE(3clc)
β¨ FAST_DISTANCE β¨
okay bestie, welcome to the OpenCL Manual page for fast_distance π this one lives in the 3clc section and it is so chill, you're gonna love it
π NAME π
fast_distance β vector distance π¦
float fast_distance(floatn p0, floatn p1);
πΈ DESCRIPTION πΈ
bestie it literally returns fast_length(3clc)(p0 - p1). that's it. that's the whole vibe. no cap. β¨
π NOTES π
okay so the built-in geometric functions do their thing component-wise β like, the description is per-component, one at a time, very main character energy π
and real quick, floatn means float, float2, float3, or float4, and doublen means double, double2, double3, or double4. memorise it, iykyk π§
also the built-in geometric functions are implemented using the round to nearest even rounding mode. periodt.
the geometric functions can be implemented using contractions such as mad(3clc) or fma(3clc) π«Ά
π SPECIFICATION π
OpenCL Specification[1] π
π¦ SEE ALSO π¦
π AUTHORS π
The Khronos Group π
π COPYRIGHT π
Copyright Β© 2007-2011 The Khronos Group Inc.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and/or associated documentation files (the "Materials"), to deal in the Materials without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Materials, and to permit persons to whom the Materials are furnished to do so, subject to the condition that this copyright notice and permission notice shall be included in all copies or substantial portions of the Materials.
β NOTES β
- OpenCL Specification β page 262, section 6.12.5 - Geometric Functions π
that's the whole page bestie, go forth and compute those distances π
signed, sealed, delivered by The Khronos Group β dated 01/14/2021, straight out of FAST_DISTANCE(3clc) πβ¨ππ¦
π¦ where this page comes from
- ubuntu jammy: opencl-1.2-man-doc 1.0~svn33624-5 Β· other
- ubuntu noble: opencl-1.2-man-doc 1.0~svn33624-5 Β· other
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms