Alex Gaynor committed 625c07c

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

  • Participants
  • Parent commits 10d2740

Comments (0)

Files changed (2)

File pypy/jit/codewriter/

     ('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/

                         [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):