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