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

/xsrc/external/mit/MesaLib.old/dist/include/
H A Dc99_math.h135 #ifndef M_LOG2E
136 #define M_LOG2E (1.4426950408889634074) macro
/xsrc/external/mit/MesaLib/dist/include/
H A Dc99_math.h135 #ifndef M_LOG2E
136 #define M_LOG2E (1.4426950408889634074) macro
/xsrc/external/mit/MesaLib/dist/src/compiler/nir/
H A Dnir_builtin_builder.h92 return nir_fexp2(b, nir_fmul_imm(b, x, M_LOG2E));
98 return nir_fmul_imm(b, nir_flog2(b, x), 1.0 / M_LOG2E);
/xsrc/external/mit/MesaLib.old/dist/src/compiler/spirv/
H A Dvtn_glsl450.c180 return nir_fexp2(b, nir_fmul_imm(b, x, M_LOG2E));
189 return nir_fmul_imm(b, nir_flog2(b, x), 1.0 / M_LOG2E);
/xsrc/external/mit/MesaLib.old/dist/src/mesa/program/
H A Dprog_statevars.c473 value[2] = (GLfloat)(ctx->Fog.Density * M_LOG2E); /* M_LOG2E == 1/ln(2) */
/xsrc/external/mit/MesaLib/dist/src/compiler/glsl/
H A Dlower_instructions.cpp283 ir_constant *log2_e = _imm_fp(ir, ir->type, M_LOG2E);
314 ir->operands[1] = _imm_fp(ir, ir->operands[0]->type, 1.0 / M_LOG2E);
/xsrc/external/mit/MesaLib.old/dist/src/compiler/glsl/
H A Dlower_instructions.cpp276 ir_constant *log2_e = new(ir) ir_constant(float(M_LOG2E));
307 ir->operands[1] = new(ir) ir_constant(float(1.0 / M_LOG2E));
/xsrc/external/mit/MesaLib/dist/src/mesa/program/
H A Dprog_statevars.c602 value[2] = (GLfloat)(ctx->Fog.Density * M_LOG2E); /* M_LOG2E == 1/ln(2) */
/xsrc/external/mit/MesaLib/dist/docs/relnotes/
H A D7.10.rst1620 - glsl: Use M_LOG2E constant instead of calling log2

Completed in 38 milliseconds