Re: [Mesa-dev] [PATCH] util: add log2f for Android

2011-11-06 Thread Jose Fonseca
I have no objection. The only thing that I know we could do to improve this situation is to factor out the compiler/os/crt abstractions out of mesa/gallium/etc into a shared library. I brought and been wanting to do this for a long time, but just haven't been able to find opportunity (because i

[Mesa-dev] [PATCH] util: add log2f for Android

2011-11-06 Thread Chia-I Wu
From: Chia-I Wu It is needed for nv50's new shader backend. With this change, both u_math.h and imports.h in core mesa define the same function. I have to #undef log2f here to avoid the conflict. Not sure if there is a better way to deal with the situation. --- src/gallium/auxiliary/util/u_ma