我想问一下32数据异或和64数据异或时间为什么消耗的时间相差不大CnetOS系统中。unsigend long long int tem
我想问一下32数据异或和64数据异或时间为什么消耗的时间相差不大 CnetOS系统中。
unsigend long long int temp_long_long1 = 0x0f0f0f0f, temp_long_long2 = 0xf0f0f0f0f; for(int i =0 ; i < 10000000;i++) { temp_long_long =temp_long_long1^temp_long_long2; } unsigned int temp2 = 0x0f0f, temp1 = 0xf0f0f0f0f; for(int i =0 ; i < 10000000;i++) { temp =temp1^temp2; }