diff options
author | Petteri Aimonen <jpa@git.mail.kapsi.fi> | 2016-01-26 22:10:09 +0200 |
---|---|---|
committer | Petteri Aimonen <jpa@git.mail.kapsi.fi> | 2016-01-26 22:12:09 +0200 |
commit | d79b15d8aa377116735c87e4d694fc2d20a5fef5 (patch) | |
tree | 125387275bde67b1bcab9325c706fba0ff10d8df /tests/common/malloc_wrappers.c | |
parent | cad502a1d690ad129af9d4942185cfdbf1fa1504 (diff) |
Get rid of type punning in pb_encode_fixedXX().
This was never very clean code, but it was fast. Hopefully
compilers are smart enough to optimize it away, or the speed
difference is not very large. This should be checked.
However working code is always more important than fast code,
and the previous way couldn't really work for platforms that
do not have byte-sized memory access. Related to PR #191.
Diffstat (limited to 'tests/common/malloc_wrappers.c')
0 files changed, 0 insertions, 0 deletions