1. Pypy
  2. Untitled project
  3. pypy

Commits

Armin Rigo  committed cfdd81d Merge

merge heads

  • Participants
  • Parent commits 73fd0ad, 111bb9f
  • Branches default

Comments (0)

Files changed (2)

File pypy/module/pypyjit/test_pypy_c/test_math.py

View file
  • Ignore whitespace
             f1 = cast_int_to_float(i0)
             i6 = --ISINF--(f1)
             guard_false(i6, descr=...)
-            f2 = call(ConstClass(sin), f1, descr=<Callf . f EF=2>)
-            f3 = call(ConstClass(cos), f1, descr=<Callf . f EF=2>)
+            f2 = call(ConstClass(sin), f1, descr=<Callf . f EF=0>)
+            f3 = call(ConstClass(cos), f1, descr=<Callf . f EF=0>)
             f4 = float_sub(f2, f3)
             f5 = float_add(f0, f4)
             i7 = int_add(i0, f1)

File rpython/rtyper/lltypesystem/module/ll_math.py

View file
  • Ignore whitespace
                         [rffi.DOUBLE, rffi.DOUBLE], rffi.DOUBLE)
 math_floor = llexternal('floor', [rffi.DOUBLE], rffi.DOUBLE, elidable_function=True)
 math_sqrt = llexternal('sqrt', [rffi.DOUBLE], rffi.DOUBLE)
-math_sin = llexternal('sin', [rffi.DOUBLE], rffi.DOUBLE)
-math_cos = llexternal('cos', [rffi.DOUBLE], rffi.DOUBLE)
+math_sin = llexternal('sin', [rffi.DOUBLE], rffi.DOUBLE, elidable_function=True)
+math_cos = llexternal('cos', [rffi.DOUBLE], rffi.DOUBLE, elidable_function=True)
 
 @jit.elidable
 def sqrt_nonneg(x):