Skip to content

Commit d86cb6a

Browse files
committed
auto merge of #11299 : brson/rust/exp10, r=pcwalton
LLVM appears to generate calls to exp10 on ARM and bionic does not define it. This makes code that links to libextra (which I guess does some exponentiation on the stat module) link correctly.
2 parents fcca394 + bc78d86 commit d86cb6a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/rt/rust_android_dummy.c

+5
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@ double log2( double n )
2828
return log( n ) / log( 2 );
2929
}
3030

31+
double exp10( double x )
32+
{
33+
return pow( 10, x );
34+
}
35+
3136
void telldir()
3237
{
3338
}

0 commit comments

Comments
 (0)