Compile-time math