|
Last change
on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 11 days ago |
|
Fix frontend appearance
|
-
Property mode
set to
100644
|
|
File size:
338 bytes
|
| Line | |
|---|
| 1 | 'use strict';
|
|---|
| 2 | var $ = require('../internals/export');
|
|---|
| 3 |
|
|---|
| 4 | var floor = Math.floor;
|
|---|
| 5 | var log = Math.log;
|
|---|
| 6 | var LOG2E = Math.LOG2E;
|
|---|
| 7 |
|
|---|
| 8 | // `Math.clz32` method
|
|---|
| 9 | // https://tc39.es/ecma262/#sec-math.clz32
|
|---|
| 10 | $({ target: 'Math', stat: true }, {
|
|---|
| 11 | clz32: function clz32(x) {
|
|---|
| 12 | var n = x >>> 0;
|
|---|
| 13 | return n ? 31 - floor(log(n + 0.5) * LOG2E) : 32;
|
|---|
| 14 | }
|
|---|
| 15 | });
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.