blob: 748a4464e5b71212fd52706891fe3aab62e61413 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
Performance improvement when using "QEMU_FLATTEN" with softfloat type conversions
Attached below is a matrix multiplication program for double data
types. The program performs the casting operation "(double)rand()"
when generating random numbers.
This operation calls the integer to float softfloat conversion
function "int32_to_float_64".
Adding the "QEMU_FLATTEN" attribute to the function definition
decreases the instructions per call of the function by about 63%.
Attached are before and after performance screenshots from
KCachegrind.
|