Re: lame 3.101 beta 1 in SVN...

Elio Blanca via Lame-dev <[email protected]> Tue, 16 Mar 2021 20:31:29 +0100
Newsgroups gmane.comp.audio.mp3.lame
Message-ID <20210316203129.6fdadcc3@debbieb1>
Il giorno Tue, 16 Mar 2021 13:03:34 +0100
Alexander Leidinger <[email protected]> ha scritto:

> So what is wrong here with the '=' and why is it better solved with a
> memcpy?

I faced at least two cases of obscure crashes in C code due to
assignment in code involving float variables (as the struct the patch
cares about does). In those cases the ARM CPU was reacting very badly
(crash) in front of misaligned float variables as the compiler (a
proprietary closed source one) used to convert the '=' into load/move
(can't remember the name ATM) asm instructions, sensitive to data
alignment. Converting the '=' into a 'memcpy' solved our crashes.

Elio