[Interest] Void pointers for Mac ARM

Thiago Macieira thiago.macieira at intel.com
Wed Jun 21 07:58:17 CEST 2023


On Tuesday, 20 June 2023 17:46:04 PDT Thiago Macieira wrote:
> On Tuesday, 20 June 2023 15:50:16 PDT Volker Hilsheimer via Interest wrote:
> > Either way, it would perhaps help to boil all this down to some minimal
> > code; you have a 2-byte aligned struct that you cast to and from void *,
> > this should be reproducible with small bit of code. And if you have that,
> > then comparing the assembly you get out of your compiler when targeting
> > Intel vs ARM might give some hints.
> 
> I'm pretty sure he's going to find out that the problem is not the casting,
> but elsewhere. The explanation currently doesn't make sense.

Proof that it's bitwise equivalent: https://godbolt.org/z/zc1vqh9cs

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Cloud Software Architect - Intel DCAI Cloud Engineering
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5152 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20230620/7b72ef0c/attachment.bin>


More information about the Interest mailing list