[pypy-dev] Re: [pypy-svn] r16070 - pypy/dist/pypy/objspace/std
Eric van Riet Paap
eric at vanrietpaap.nl
Mon Aug 15 11:08:51 CEST 2005
Armin Rigo wrote:
>Hi Eric,
>
>On Mon, Aug 15, 2005 at 10:54:01AM +0200, Eric van Riet Paap wrote:
>
>
>>But why then did I get a call to ll_math_log10(int 2) in the backend?
>>
>>
>
>Ah, oups. Correction: math.log10 is supposed to be allowed at
>interp-level. I see that we use it to implement the app-level
>math.log10(). If I remember the reasoning correctly, there was no point
>in trying not to use log10() at interp-level because back-ends typically
>provide this function directly (e.g. C has it in math.h).
>
>So actually it's expected that you get ll_math_log10 in LLVM...
>
>
Yes, and therefor the invocation needs to be math.log10(double).
Or probably better would be that pypy not marks math.log10 as a
primitive function,
but math.log10(double) and provide the correct cast from int to double?!?
Eric
>
>Sorry for the confusion,
>
>Armin
>_______________________________________________
>pypy-dev at codespeak.net
>http://codespeak.net/mailman/listinfo/pypy-dev
>
>
More information about the Pypy-dev
mailing list