I'm trying to make an alias to the standard library function fmaf
with the alias attribute.
#include <math.h>
float float_fma(float x, float y, float z) __attribute__((alias("fmaf")));
int main() {
float_fma(0,0,0);
return 0;
}
I'm getting error "undefined symbol 'fmaf'".
<source>:2:11: error: 'float_fma' aliased to undefined symbol 'fmaf'
2 | float float_fma(float x, float y, float z) __attribute__((alias("fmaf")));
|
^~~~~~~~~
How can I make an alias to fmaf
?