node_modules/asmcrypto.js/src/bignum/bigint.asm.js
/**
     * Negate the argument
     *
     * Perform two's complement transformation:
     *
     *  -A = ~A + 1
     *
     * @param A offset of the argment being negated, 32-byte aligned
     * @param lA length of the argument, multiple of 32
     *
     * @param R offset where to place the result to, 32-byte aligned
     * @param lR length to truncate the result to, multiple of 32
     */
Negate the argument
Perform two's complement transformation.



@param A offset of the argment being negated, 32-byte aligned
@param lA length of the argument, multiple of 32

@param R offset where to place the result to, 32-byte aligned
@param lR length to truncate the result to, multiple of 32
Negate the argument Perform two ' s complement transformation . @param A offset of the argment being negated 32 - byte aligned @param lA length of the argument multiple of 32 @param R offset where to place the result to 32 - byte aligned @param lR length to truncate the result to multiple of 32
function neg ( A, lA, R, lR ) {
        A  =  A|0;
        lA = lA|0;
        R  =  R|0;
        lR = lR|0;
        var a = 0, c = 0, t = 0, r = 0, i = 0;
        if ( (lR|0) <= 0 )
            lR = lA;
        if ( (lR|0) < (lA|0) )
            lA = lR;
        c = 1;
        for ( ; (i|0) < (lA|0); i = (i+4)|0 ) {
            a = ~HEAP32[(A+i)>>2];
            t = (a & 0xffff) + c|0;
            r = (a >>> 16) + (t >>> 16)|0;
            HEAP32[(R+i)>>2] = (r << 16) | (t & 0xffff);
            c = r >>> 16;
        }
        for ( ; (i|0) < (lR|0); i = (i+4)|0 ) {
            HEAP32[(R+i)>>2] = (c-1)|0;
        }
        return c|0;
    }
function neg ( A , lA , R , lR ) { A = A | 0 ; lA = lA | 0 ; R = R | 0 ; lR = lR | 0 ; var a = 0 , c = 0 , t = 0 , r = 0 , i = 0 ; if ( ( lR | 0 ) <= 0 ) lR = lA ; if ( ( lR | 0 ) < ( lA | 0 ) ) lA = lR ; c = 1 ; for ( ; ( i | 0 ) < ( lA | 0 ) ; i = ( i + 4 ) | 0 ) { a = ~ HEAP32 [ ( A + i ) >> 2 ] ; t = ( a & 0xffff ) + c | 0 ; r = ( a >>> 16 ) + ( t >>> 16 ) | 0 ; HEAP32 [ ( R + i ) >> 2 ] = ( r << 16 ) | ( t & 0xffff ) ; c = r >>> 16 ; } for ( ; ( i | 0 ) < ( lR | 0 ) ; i = ( i + 4 ) | 0 ) { HEAP32 [ ( R + i ) >> 2 ] = ( c - 1 ) | 0 ; } return c | 0 ; }
Negate the argument
 Perform two's complement transformation:
Negate the argument Perform two ' s complement transformation :