Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "math/base/ops/umuldw/docs/types/index.d"

Index

Functions

Functions

Export assignment umuldw

  • Performs multiplication of two unsigned 32-bit integers and returns an array of two unsigned 32-bit integers which represents the unsigned 64-bit integer product.

    Notes

    • When computing the product of 32-bit integer values in double-precision floating-point format (the default JavaScript numeric data type), computing the double word product is necessary in order to avoid exceeding the maximum safe double-precision floating-point integer value.

    Parameters

    • out: ArrayLike<number>

      output array

    • a: number

      integer

    • b: number

      integer

    Returns ArrayLike < number >

    double word product (in big endian order; i.e., the first element corresponds to the most significant bits and the second element to the least significant bits)

    Example

    var v = umuldw( 0xAAAAAAAA, 0x55555555 );
    // returns [ 954437176, 1908874354 ]
  • Performs multiplication of two unsigned 32-bit integers and returns an array of two unsigned 32-bit integers which represents the unsigned 64-bit integer product.

    Notes

    • When computing the product of 32-bit integer values in double-precision floating-point format (the default JavaScript numeric data type), computing the double word product is necessary in order to avoid exceeding the maximum safe double-precision floating-point integer value.

    Parameters

    • a: number

      integer

    • b: number

      integer

    Returns ArrayLike < number >

    double word product (in big endian order; i.e., the first element corresponds to the most significant bits and the second element to the least significant bits)

    Example

    var v = umuldw( 0xAAAAAAAA, 0x55555555 );
    // returns [ 954437176, 1908874354 ]