By factoring out the comptime parts of this computation, vectors are no longer useful in this function.