The MIPS version was reviewed by myself. The ARM version was reviewed by JF Bastien. Patch by Narayan Kamath <narayan@google.com>. llvm-svn: 203674
Move prototypes into headers and fix a few inconsistencies. llvm-svn: 202591
llvm-svn: 201393