Commit Graph

9 Commits

Author SHA1 Message Date
cba0858ccd Fix for recent optimization commit in endian switch
Pre-4.8 GCC had a bug which lead to non-exposed __builtin_bswap16() symbol.

See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52624 for details.
2015-07-14 11:33:50 +02:00
7b1489b93b Error in last commit 2015-07-12 05:35:44 +10:00
968351d916 Minor changes for more efficient endian switching 2015-07-12 05:33:04 +10:00
fb2543a85f Fix bug in endian switch functions.
Seems ti was here since the very first day this functions were added
and issue was happening for switching sign for negative values.

Wrote a brute-force test locally and seems corrected functions indeed
works the same way as old macroses.

This should fix: #33226: File loading issue with svn 52328 (recent BF buildbot compile)
2012-11-20 10:37:11 +00:00
68d68e13b6 fix for error compiling on some platforms: use ll suffix for 64bit ints in BLI_endian_switch_int64() 2012-10-14 04:11:34 +00:00
e8872a8ea2 style cleanup: if(); 2012-10-07 09:48:59 +00:00
c530661db2 patch [#32556] Stupid endian conversion in avi format
from Andreas Schwab (schwab)

modified to use code from BLI_endian_switch.
2012-10-07 06:06:28 +00:00
a17e39476c Optimization for endian switching, but shifting is a lot faster then using a temp char (approx 18x speedup on my system). 2012-10-07 04:21:37 +00:00
d248f94cf8 add endian switch functions to replace macros SWITCH_INT/LONG/SHORT, with BLI_endian_switch_int32/int64/float/double... 2012-09-03 07:37:38 +00:00