• Home
  • Raw
  • Download

Lines Matching refs:unop

165 def unop(name, ty, const_expr):  function
195 unop("mov", tuint, "src0")
197 unop("ineg", tint, "-src0")
198 unop("fneg", tfloat, "-src0")
199 unop("inot", tint, "~src0") # invert every bit of the integer
215 unop("fsign", tfloat, ("bit_size == 64 ? " +
218 unop("isign", tint, "(src0 == 0) ? 0 : ((src0 > 0) ? 1 : -1)")
219 unop("iabs", tint, "(src0 < 0) ? -src0 : src0")
220 unop("fabs", tfloat, "fabs(src0)")
221 unop("fsat", tfloat, ("fmin(fmax(src0, 0.0), 1.0)"))
222 unop("frcp", tfloat, "bit_size == 64 ? 1.0 / src0 : 1.0f / src0")
223 unop("frsq", tfloat, "bit_size == 64 ? 1.0 / sqrt(src0) : 1.0f / sqrtf(src0)")
224 unop("fsqrt", tfloat, "bit_size == 64 ? sqrt(src0) : sqrtf(src0)")
225 unop("fexp2", tfloat, "exp2f(src0)")
226 unop("flog2", tfloat, "log2f(src0)")
301 unop("ftrunc", tfloat, "bit_size == 64 ? trunc(src0) : truncf(src0)")
302 unop("fceil", tfloat, "bit_size == 64 ? ceil(src0) : ceilf(src0)")
303 unop("ffloor", tfloat, "bit_size == 64 ? floor(src0) : floorf(src0)")
304 unop("ffract", tfloat, "src0 - (bit_size == 64 ? floor(src0) : floorf(src0))")
305 unop("fround_even", tfloat, "bit_size == 64 ? _mesa_roundeven(src0) : _mesa_roundevenf(src0)")
307 unop("fquantize2f16", tfloat, "(fabs(src0) < ldexpf(1.0, -14)) ? copysignf(0.0f, src0) : _mesa_half…
312 unop("fsin", tfloat, "bit_size == 64 ? sin(src0) : sinf(src0)")
313 unop("fcos", tfloat, "bit_size == 64 ? cos(src0) : cosf(src0)")
322 unop("fddx", tfloat, "0.0") # the derivative of a constant is 0.
323 unop("fddy", tfloat, "0.0")
324 unop("fddx_fine", tfloat, "0.0")
325 unop("fddy_fine", tfloat, "0.0")
326 unop("fddx_coarse", tfloat, "0.0")
327 unop("fddy_coarse", tfloat, "0.0")
433 unop("bitfield_reverse", tuint32, """
467 unop("uclz", tuint32, """
476 unop("ifind_msb", tint32, """
1229 unop("fsin_r600", tfloat32, "sinf(6.2831853 * src0)")
1230 unop("fcos_r600", tfloat32, "cosf(6.2831853 * src0)")
1237 unop("fsin_agx", tfloat, "sinf(src0 * (6.2831853/4.0))")
1308 unop("fsat_signed_mali", tfloat, ("fmin(fmax(src0, -1.0), 1.0)"))
1309 unop("fclamp_pos_mali", tfloat, ("fmax(src0, 0.0)"))
1312 unop("fddx_must_abs_mali", tfloat, "0.0")
1313 unop("fddy_must_abs_mali", tfloat, "0.0")