Optimizations of log2 for ivec4