Fix cinterop numerical benchmark
This commit is contained in:
committed by
Stanislav Erokhin
parent
d44ceb6997
commit
41f704a458
@@ -22,6 +22,8 @@ fun konanBellardPi() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fun clangBellardPi() {
|
fun clangBellardPi() {
|
||||||
for (n in 1 .. 1000 step 9)
|
for (n in 1 .. 1000 step 9) {
|
||||||
cinterop.pi_nth_digit(n)
|
val result = cinterop.pi_nth_digit(n)
|
||||||
|
Blackhole.consume(result)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user