• Home
  • Raw
  • Download

Lines Matching refs:lhs

821 extern float3 __attribute__((overloadable)) cross(float3 lhs, float3 rhs) {  in FN_FUNC_FN()
823 r.x = lhs.y * rhs.z - lhs.z * rhs.y; in FN_FUNC_FN()
824 r.y = lhs.z * rhs.x - lhs.x * rhs.z; in FN_FUNC_FN()
825 r.z = lhs.x * rhs.y - lhs.y * rhs.x; in FN_FUNC_FN()
829 extern float4 __attribute__((overloadable)) cross(float4 lhs, float4 rhs) { in cross() argument
831 r.x = lhs.y * rhs.z - lhs.z * rhs.y; in cross()
832 r.y = lhs.z * rhs.x - lhs.x * rhs.z; in cross()
833 r.z = lhs.x * rhs.y - lhs.y * rhs.x; in cross()
838 extern float __attribute__((overloadable)) dot(float lhs, float rhs) { in dot() argument
839 return lhs * rhs; in dot()
841 extern float __attribute__((overloadable)) dot(float2 lhs, float2 rhs) { in dot() argument
842 return lhs.x*rhs.x + lhs.y*rhs.y; in dot()
844 extern float __attribute__((overloadable)) dot(float3 lhs, float3 rhs) { in dot() argument
845 return lhs.x*rhs.x + lhs.y*rhs.y + lhs.z*rhs.z; in dot()
847 extern float __attribute__((overloadable)) dot(float4 lhs, float4 rhs) { in dot() argument
848 return lhs.x*rhs.x + lhs.y*rhs.y + lhs.z*rhs.z + lhs.w*rhs.w; in dot()
864 extern float __attribute__((overloadable)) distance(float lhs, float rhs) { in distance() argument
865 return length(lhs - rhs); in distance()
867 extern float __attribute__((overloadable)) distance(float2 lhs, float2 rhs) { in distance() argument
868 return length(lhs - rhs); in distance()
870 extern float __attribute__((overloadable)) distance(float3 lhs, float3 rhs) { in distance() argument
871 return length(lhs - rhs); in distance()
873 extern float __attribute__((overloadable)) distance(float4 lhs, float4 rhs) { in distance() argument
874 return length(lhs - rhs); in distance()