@@ -26,23 +26,35 @@ float __wrap_log2f(float x) {
26
26
return log2f (x);
27
27
}
28
28
// The following are offending symbols using higher GLIBC versions
29
- // TODO currently commented out due to failing Vulkan tests
30
- // __asm__(".symver log2,log2@GLIBC_2.2.5");
31
- // float __wrap_log2(float x) {
32
- // return log2(x);
33
- // }
34
- // __asm__(".symver exp,exp@GLIBC_2.2.5");
35
- // float __wrap_exp(float x) {
36
- // return exp(x);
37
- // }
38
- // __asm__(".symver log,log@GLIBC_2.2.5");
39
- // float __wrap_log(float x) {
40
- // return log(x);
41
- // }
42
- // __asm__(".symver pow,pow@GLIBC_2.2.5");
43
- // float __wrap_pow(float x, float y) {
44
- // return pow(x, y);
45
- // }
29
+ // They will fail Vulkan tests if wrapping is enabled
30
+ __asm__ (" .symver exp2,exp2@GLIBC_2.2.5" );
31
+ float __wrap_exp2 (float x) {
32
+ return exp2 (x);
33
+ }
34
+ __asm__ (" .symver log2,log2@GLIBC_2.2.5" );
35
+ float __wrap_log2 (float x) {
36
+ return log2 (x);
37
+ }
38
+ __asm__ (" .symver logf,logf@GLIBC_2.2.5" );
39
+ float __wrap_logf (float x) {
40
+ return logf (x);
41
+ }
42
+ __asm__ (" .symver powf,powf@GLIBC_2.2.5" );
43
+ float __wrap_powf (float x, float y) {
44
+ return powf (x, y);
45
+ }
46
+ __asm__ (" .symver exp,exp@GLIBC_2.2.5" );
47
+ float __wrap_exp (float x) {
48
+ return exp (x);
49
+ }
50
+ __asm__ (" .symver log,log@GLIBC_2.2.5" );
51
+ float __wrap_log (float x) {
52
+ return log (x);
53
+ }
54
+ __asm__ (" .symver pow,pow@GLIBC_2.2.5" );
55
+ float __wrap_pow (float x, float y) {
56
+ return pow (x, y);
57
+ }
46
58
#endif
47
59
}
48
60
0 commit comments