Skip to content
Snippets Groups Projects
Commit 7b40dcce authored by Aleksandr Lyapunov's avatar Aleksandr Lyapunov Committed by Nikita Pettik
Browse files

lib: use memcpy for unaligned load/store

Now there's a lot of load_*/store_* functions that are designed
for unaligned access to values in data stream. Unfortunately
they are written in a way that makes new compilers to warn about
outside bounds.

Rewrite it in the most safe, cross-platform and efficient way -
using memcpy. Note that memcpy with compile-time-defined size is
recognized by the magority of compilers and they make the most
efficient operation.

Closes #6703
parent 88332b35
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment