factoring kernel log code for simd/scalar floats