Options
All
  • Public
  • Public/Protected
  • All
Menu

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

Index

Functions

Functions

Export assignment imuldw

  • Performs multiplication of two signed 32-bit integers and returns an array of two signed 32-bit integers which represents the signed 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 >

    output array

    Example

    var v = imuldw( 0xAAAAAAAA, 0x55555555 );
    // returns [ -477218589, 1908874354 ]
  • Performs multiplication of two signed 32-bit integers and returns an array of two signed 32-bit integers which represents the signed 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 >

    output array

    Example

    var v = imuldw( 0xAAAAAAAA, 0x55555555 );
    // returns [ -477218589, 1908874354 ]