renderer: replace texture (0…255)↔(-1…+1) conversions with macros.

In some cases, this changes the calculations a little. This is probably a
good thing, regarding accuracy.
rendererGL/tr_image.c: lift as much calculation out of loops as is practical