removed dead set_xincod, set_xoutcod
made functions static inline instead of just inline to fix compilation on OSX