minor optimizations on dgemm_kernel