[Development] QProperty and library coding guide
Thiago Macieira
thiago.macieira at intel.com
Mon Jul 20 07:21:39 CEST 2020
On Sunday, 19 July 2020 14:42:24 PDT Giuseppe D'Angelo via Development wrote:
> * change /*2*/ to use ASM. We know the ABI of the platforms we support
> and we know how to calculate the correct pointer value, we just need to
> stop C/C++ from reason about it and flagging it as possible UB. Yes,
> it's a crude hack...
ASM is not a solution. There's at least one major compiler (MSVC) that doesn't
allow any assembler.
But see Ville's email. I think the pointer arithmetic is actually fine. Would
be fine too with uchar*.
--
Thiago Macieira - thiago.macieira (AT) intel.com
Software Architect - Intel System Software Products
More information about the Development
mailing list