source: trip-planner-front/node_modules/core-js/modules/es.math.clz32.js@ b738035

Last change on this file since b738035 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 312 bytes
Line 
1var $ = require('../internals/export');
2
3var floor = Math.floor;
4var log = Math.log;
5var LOG2E = Math.LOG2E;
6
7// `Math.clz32` method
8// https://tc39.es/ecma262/#sec-math.clz32
9$({ target: 'Math', stat: true }, {
10 clz32: function clz32(x) {
11 return (x >>>= 0) ? 31 - floor(log(x + 0.5) * LOG2E) : 32;
12 }
13});
Note: See TracBrowser for help on using the repository browser.