Home
last modified time | relevance | path

Searched refs:sincos45 (Results 1 - 1 of 1) sorted by relevance

/third_party/mesa3d/src/amd/llvm/
H A Dac_llvm_cull.c126 LLVMValueRef sincos45 = LLVMConstReal(ctx->f32, 0.707106781); in rotate_45degrees() local
128 /* x2 = x*cos45 - y*sin45 = x*sincos45 - y*sincos45 in rotate_45degrees()
129 * y2 = x*sin45 + y*cos45 = x*sincos45 + y*sincos45 in rotate_45degrees()
131 LLVMValueRef first = LLVMBuildFMul(ctx->builder, v[0], sincos45, ""); in rotate_45degrees()
135 ac_build_fmad(ctx, LLVMBuildFNeg(ctx->builder, v[1], ""), sincos45, first), in rotate_45degrees()
136 ac_build_fmad(ctx, v[1], sincos45, first), in rotate_45degrees()

Completed in 2 milliseconds