Probably better to use local `min` and `max` variables and assign them to the output at the end. Direct access to memory on the stack is usually pretty fast.