Convert from Inline C code to XS
