Skip to content

Commit

Permalink
Support ldexp in Python backend.
Browse files Browse the repository at this point in the history
  • Loading branch information
athas committed Nov 22, 2023
1 parent a59ccd2 commit 31527df
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions rts/python/scalar.py
Original file line number Diff line number Diff line change
Expand Up @@ -990,6 +990,18 @@ def futhark_lerp64(v0, v1, t):
return v0 + (v1 - v0) * t


def futhark_ldexp16(x, y):
return np.ldexp(x, y)


def futhark_ldexp32(x, y):
return np.ldexp(x, y)


def futhark_ldexp64(x, y):
return np.ldexp(x, y)


def futhark_mad16(a, b, c):
return a * b + c

Expand Down

0 comments on commit 31527df

Please sign in to comment.