Em sexta-feira, 7 de abril de 2017, às 08:31:07 PDT, Ch'Gans escreveu: > > x86 doesn't pass in registers anyway. The best you'd get is the elements > > of > > the struct pushed on the stack, instead of pushed elsewhere on the stack > > and an address to the stack pushed on the stack. > > What about FPU registers? Qt API always pass 'qreal' by value...
We're not talking about primitives. We're talking about structs that are very small and trivial. See for yourself: https://godbolt.org/g/pvwjWE Direct primitive passing is fine: https://godbolt.org/g/Ghj8US -- Thiago Macieira - thiago.macieira (AT) intel.com Software Architect - Intel Open Source Technology Center _______________________________________________ Development mailing list [email protected] http://lists.qt-project.org/mailman/listinfo/development
