Home My Page Projects Code Snippets Project Openings diderot

# SCM Repository

[diderot] Diff of /branches/vis15/src/compiler/gen/ir/mid-ir.spec
 [diderot] / branches / vis15 / src / compiler / gen / ir / mid-ir.spec

# Diff of /branches/vis15/src/compiler/gen/ir/mid-ir.spec

revision 3829, Thu May 5 21:05:37 2016 UTC revision 3830, Thu May 5 22:13:46 2016 UTC
# Line 27  Line 27
27  Abs : ty : 1 : 1 :  Abs : ty : 1 : 1 :
28  Max : ty : 1 : 2 :  Max : ty : 1 : 2 :
29  Min : ty : 1 : 2 :  Min : ty : 1 : 2 :
30  # Clamp<ty>(lo, hi, x) -- clamps x to the range lo..hi  # Clamp<ty>(lo, hi, x) -- clamps x to the range lo..hi, where lo and hi are scalars and x
31    # has type ty
32  Clamp : ty : 1 : 3 : clamp argument to range  Clamp : ty : 1 : 3 : clamp argument to range
33  # Lerp<ty>(a, b, t) -- computes a + t*(b-a)  # MapClamp<ty>(lo, hi, x) -- clamps x[alpha] to the range lo[alpha]..hi[alpha], where
34    # x, lo, and hi all have type ty (which is a non-scalar tensor type).
35    MapClamp : ty : 1 : 3 : clamp argument to range
36    # Lerp<ty>(a, b, t) -- computes a + t*(b-a), where a and b have type ty and t has type real
37  Lerp : ty : 1 : 3 : linear interpolation between 0 and 1  Lerp : ty : 1 : 3 : linear interpolation between 0 and 1
38  #  #
39  ### tensor operations  ### tensor operations

Legend:
 Removed from v.3829 changed lines Added in v.3830