memset and unroll loop