Page 12 of 12

Re: I'm not very happy with the do {} while() statement in C

Posted: Fri Mar 23, 2018 9:55 pm
by syzygy
Little endian is advantageous for byte-by-byte addition and subtraction.

On the other hand, the Huffman coder in my TB file compressor is better suited for big endian (unless I write and read data from the end of the 64-byte block to the beginning, which would probably slow down a bit since the cache line will not be retrieved from memory in the same order).

Re: I'm not very happy with the do {} while() statement in C

Posted: Sat Mar 24, 2018 1:00 am
by AlvaroBegue
syzygy wrote: Other Holy Wars worth fighting for are Vi vs Emacs, Linux vs Windows, Gnome vs KDE, C64 vs Spectrum, C64 vs Atari, Amiga vs Mac.
Emacs, Linux, KDE, MSX (I know it wasn't an option), Atari, Mac.

Oh, and little endian (store numbers in base 256, like this: a[0] + a[1]*256^1 + a[2] * 256^2 + ...).