diff options
| author | Thiago Macieira <thiago.macieira@intel.com> | 2025-06-20 16:42:07 -0700 |
|---|---|---|
| committer | Thiago Macieira <thiago.macieira@intel.com> | 2025-10-18 08:25:20 -0700 |
| commit | 292c6246514eff2c123b4eba2b8f701ce137ba42 (patch) | |
| tree | c2b154a4948be30d3394c99bdd10e029d68c9beb /src/corelib/kernel/qtimer.cpp | |
| parent | ae688468590dedc82cca900332a625c82e87471b (diff) | |
QArrayDataOps::assign: invert how we find the beginning of the capacity
Ideally the equation would be the same:
offset = this->ptr - Data::dataStart(d, alignment);
capacityBegin = this->ptr - offset;
=> capacityBegin = Data::dataStart(d, alignment)
But codegen isn't as simple as that, so invert and use QADP::dataStart()
to calculate the beginning of the allocated capacity and only if needed
calculate how many elements we must destroy/overwrite.
Change-Id: Ib716ed04c4684964ec0dfffd473c635456062bde
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'src/corelib/kernel/qtimer.cpp')
0 files changed, 0 insertions, 0 deletions
