primitives: separating optimized functions into their own .c files