ประโยคภาษาจีน : 中文句子 |
---|
rú guǒ 如果 chú fǎ 除法 yùn suàn 运算 zhòng dì 中的 chú shù 除数 shì 是 de 的 mì 幂 wǒ men 我们 duì 对 zhè ge 这个 chú fǎ 除法 yùn suàn 运算 hái 还 kě yǐ 可以 jìn yí bù 进一步 yōu huà 优化 biān yì qì 编译器 huì 会 shǐ yòng 使用 yí wèi 移位 yùn suàn 运算 lái 来 jìn xíng 进行 zhè zhǒng 这种 chú fǎ 除法 yùn suàn 运算 |
We can make a division more optimized if the divisor in a division operation is a power of two. The compiler uses a shift to perform the division. |