serialize.h: use machine native byte swapping if available, fall-back to...
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>
Showing
- src/CMakeLists.txt 3 additions, 0 deletionssrc/CMakeLists.txt
- src/cmake_config.h.in 1 addition, 0 deletionssrc/cmake_config.h.in
- src/config.h 4 additions, 0 deletionssrc/config.h
- src/nodemetadata.cpp 6 additions, 6 deletionssrc/nodemetadata.cpp
- src/nodetimer.cpp 6 additions, 6 deletionssrc/nodetimer.cpp
- src/staticobject.cpp 9 additions, 23 deletionssrc/staticobject.cpp
- src/util/serialize.cpp 6 additions, 6 deletionssrc/util/serialize.cpp
- src/util/serialize.h 80 additions, 44 deletionssrc/util/serialize.h
Loading
Please register or sign in to comment