Better sl function for arm

r4300/cp1.c would not build for ARM. I have added externals  to fix the build error.

memory/memory.h is not optimized very well with GCC 4.7 for ARM. Using __builtin_bswap32 for sl() results in optimizations using less stackspace and less instructions.