Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

awesome64

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

awesome64 - npm Package Compare versions

Comparing version 1.0.0-alpha5 to 1.0.0-alpha6

15

index.js

@@ -65,17 +65,4 @@ 'use strict';

const hi = (Math.imul(selfHi, otherLo) + Math.imul(otherHi, selfLo)) | 0;
let carry = ((selfLo * otherLo) * (1 / 0x100000000)) | 0;
let carry = (((selfLo >>> 0) * (otherLo >>> 0)) * (1 / 0x100000000)) | 0;
const selfSign = selfLo >> 31;
const otherSign = otherLo >> 31;
const selfPositive = ~selfSign & (~(~selfLo & (selfLo - 1)) >> 31);
const otherPositive = ~otherSign & (~(~otherLo & (otherLo - 1)) >> 31);
// If both negative
carry = (carry + (selfSign & otherSign & (otherLo + selfLo))) | 0;
// If `self < 0` & `other > 0`
carry = (carry + (selfSign & otherPositive & (otherLo - 1))) | 0;
// If `self > 0` & `other < 0`
carry = (carry + (selfPositive & otherSign & (selfLo - 1))) | 0;
this.hi = (hi + carry) | 0;

@@ -82,0 +69,0 @@ this.lo = Math.imul(selfLo, otherLo) | 0;

2

package.json
{
"name": "awesome64",
"version": "1.0.0-alpha5",
"version": "1.0.0-alpha6",
"description": "Awesome Int64 num implementation",

@@ -5,0 +5,0 @@ "main": "index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc