Convert more SPU functions to C functions