source: node_modules/core-js-pure/modules/es.math.clz32.js

main
Last change on this file was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago

Initial commit

  • Property mode set to 100644
File size: 338 bytes
Line 
1'use strict';
2var $ = require('../internals/export');
3
4var floor = Math.floor;
5var log = Math.log;
6var 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.