blob: ca5e39b389a1c82a278dd3a9d547ccfab7c527a2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
/**
* Powf may leave an unresolved symbol pointing to a libstdc++.so powf.
* However, not all libstdc++.so include this function, so optionally
* replace the powf function with calls to expf and logf.
*/
#ifdef VMW_RESOLVE_POWF
extern float expf(float x);
extern float logf(float x);
extern float powf(float x, float y);
float powf(float x, float y) {
return expf(logf(x)*y);
}
#endif
|