Merge branch 'lp-offset-twoside'
[mesa.git] / src / gallium / targets / dri-vmwgfx / vmw_powf.c
1 /**
2 * Powf may leave an unresolved symbol pointing to a libstdc++.so powf.
3 * However, not all libstdc++.so include this function, so optionally
4 * replace the powf function with calls to expf and logf.
5 */
6
7 #ifdef VMW_RESOLVE_POWF
8
9 extern float expf(float x);
10 extern float logf(float x);
11 extern float powf(float x, float y);
12
13 float powf(float x, float y) {
14 return expf(logf(x)*y);
15 }
16
17 #endif