Made benchmark application flexible to run separate benchmarks (#2649)

This commit is contained in:
LepilkinaElena
2019-02-13 08:38:15 +03:00
committed by GitHub
parent 1a43a2a862
commit c258bcfb70
58 changed files with 771 additions and 739 deletions
@@ -327,6 +327,9 @@ public inline fun <reified T : CVariable> createValues(count: Int, initializer:
}
// TODO: optimize other [cValuesOf] methods:
/**
* Returns sequence of immutable values [CValues] to pass them to C code.
*/
fun cValuesOf(vararg elements: Byte): CValues<ByteVar> = object : CValues<ByteVar>() {
// Optimization to avoid unneeded virtual calls in base class implementation.
override fun getPointer(scope: AutofreeScope): CPointer<ByteVar> {