adding in place replacements avoiding self assignment

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@76918 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor
2014-07-14 15:42:34 +00:00
parent c87149d7df
commit b8c3fc0771

View File

@@ -1527,6 +1527,11 @@ typedef double wxDouble;
#define wxINT64_SWAP_ON_BE(val) wxINT64_SWAP_ALWAYS(val)
#define wxINT64_SWAP_ON_LE(val) (val)
#endif
wxUINT16_SWAP_ON_BE_IN_PLACE(val) val = wxUINT16_SWAP_ALWAYS(val)
wxUINT16_SWAP_ON_LE_IN_PLACE(val)
wxUINT32_SWAP_ON_BE_IN_PLACE(val) val = wxUINT32_SWAP_ALWAYS(val)
wxUINT32_SWAP_ON_LE_IN_PLACE(val)
#else
#define wxUINT16_SWAP_ON_LE(val) wxUINT16_SWAP_ALWAYS(val)
#define wxINT16_SWAP_ON_LE(val) wxINT16_SWAP_ALWAYS(val)
@@ -1542,6 +1547,11 @@ typedef double wxDouble;
#define wxINT64_SWAP_ON_LE(val) wxINT64_SWAP_ALWAYS(val)
#define wxINT64_SWAP_ON_BE(val) (val)
#endif
wxUINT16_SWAP_ON_BE_IN_PLACE(val)
wxUINT16_SWAP_ON_LE_IN_PLACE(val) val = wxUINT16_SWAP_ALWAYS(val)
wxUINT32_SWAP_ON_BE_IN_PLACE(val)
wxUINT32_SWAP_ON_LE_IN_PLACE(val) val = wxUINT32_SWAP_ALWAYS(val)
#endif
/* ---------------------------------------------------------------------------- */