1
0
mirror of https://github.com/ruanyf/es6tutorial.git synced 2025-05-25 03:02:21 +00:00

Fixed minor typo and provider preciser translation

This commit is contained in:
Jing Ma 2017-11-10 19:04:11 +08:00 committed by GitHub
parent 5adf73bbcf
commit 9b67b9bf8c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -454,7 +454,7 @@ Math.clz32(0b00100000000000000000000000000000) // 2
上面代码中0的二进制形式全为0所以有32个前导01的二进制形式是`0b1`只占1位所以32位之中有31个前导01000的二进制形式是`0b1111101000`一共有10位所以32位之中有22个前导0。
`clz32`这个函数名就来自”count leading zero bits in 32-bit binary representations of a number“计算32位整数的前导0)的缩写。
`clz32`这个函数名就来自”count leading zero bits in 32-bit binary representation of a number“计算一个数的32位二进制形式的前导0的个数)的缩写。
左移运算符(`<<`)与`Math.clz32`方法直接相关。