1. Christopher Lambacher
  2. pypy


Alex Gaynor  committed 625c07c

Kill some duplicate code (thanks to Zain Memon for spotting the log duplication).

  • Participants
  • Parent commits 10d2740
  • Branches default

Comments (0)

Files changed (2)

File pypy/jit/codewriter/support.py

View file
  • Ignore whitespace
     ('int_lshift_ovf',       [lltype.Signed, lltype.Signed], lltype.Signed),
     ('int_abs',              [lltype.Signed],                lltype.Signed),
     ('ll_math.ll_math_sqrt', [lltype.Float],                 lltype.Float),
-    ]
 class LLtypeHelpers:

File pypy/rpython/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_log = llexternal('log', [rffi.DOUBLE], rffi.DOUBLE)
-math_log10 = llexternal('log10', [rffi.DOUBLE], rffi.DOUBLE)
 def sqrt_nonneg(x):
     return (fracpart, intpart)
-def ll_math_copysign(x, y):
-    return math_copysign(x, y)     # no error checking needed
 def ll_math_fmod(x, y):
     if isinf(y):
         if isinf(x):