blob: d7d166397a0bc151bd56884ca6428ae634ecafef (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
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.
|