serialize.h: use machine native byte swapping if available, fall-back to previous...
authorRafael Reilova <rafael7@users.noreply.github.com>
Mon, 17 Nov 2014 02:52:24 +0000 (21:52 -0500)
committerCraig Robbins <kde.psych@gmail.com>
Fri, 21 Nov 2014 12:33:48 +0000 (22:33 +1000)
commitf7d65091f83abe1cb1a70d6823291df8accbe6ab
tree6955cb513a7d92e9db775e33e18389dfc2738667
parentd406ac994b8092c5bd2dc32eda1a2eafbf95a30c
serialize.h: use machine native byte swapping if available, fall-back to previous generic method if not (supported for GCC using endian.h, detection done in cmake) write/readARGB8() - just write 32-bit color in one op, instead of 4 1-byte ops cleanup: removed unneeded buffer init for some serialize-out functions use a #define for the fixed point factor in read/writeF1000()

nodemetadata.cpp, nodetimer.cpp
optimzation: simpler deserialize node position method

staticobject.cpp:
cleanup: use util/serialize.h inlines instead of its own de/serialization

serialize.cpp:
minor optimization/cleanup: avoid generation of unneeded string temporary

CMakeLists.txt, cmake_config.h.in: detection of endian.h

config.h: added HAVE_ENDIAN_H

Commits due to feedback squashed

Signed-off-by: Craig Robbins <kde.psych@gmail.com>
src/CMakeLists.txt
src/cmake_config.h.in
src/config.h
src/nodemetadata.cpp
src/nodetimer.cpp
src/staticobject.cpp
src/util/serialize.cpp
src/util/serialize.h