Create endiansw.c

switch endian