Replaced some floating-point math with integer arithmetic in the
line-of-sight integral. Using integers for fixed-point math. The
floor function then becomes a bit shift.
More micro-optimizations to l.o.s. integral. Setting compile flags to -O3.