Blast-Radius Aware AI Code Review for Business-Critical Systems
LiveReview LiveReview Explore LiveReview

umulExtended - perform a 32- by 32-bit multiply to produce a 64-bit result

Declaration

voidumulExtended(genUTypex,genUTypey,outgenUTypemsb,outgenUTypelsb);voidimulExtended(genITypex,genITypey,outgenITypemsb,outgenITypelsb);

Description

umulExtended and imulExtended perform multiplication of the two 32-bit integer quantities x and y,
       producing a 64-bit integer result. The 32 least significant bits of this product are returned in lsb and
       the 32 most significant bits are returned in msb.  umulExtended and imulExtended perform unsigned and
       signed multiplication, respectively.

Name

       umulExtended - perform a 32- by 32-bit multiply to produce a 64-bit result

Parameters

x
           Specifies the first multiplicand.

       y
           Specifies the second multiplicand..

       msb
           Specifies the variable to receive the most significant word of the product.

       lsb
           Specifies the variable to receive the least significant word of the product.

See Also

uaddCarry()

Version Support

       ┌──────────────┬───────────────────────────────────────────────────────────────────────────────────┐
       │              │        OpenGLShadingLanguageVersion                                            │
       ├──────────────┼──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┤
       │ Function1.101.201.301.401.503.304.004.104.204.304.404.50 │
       │ Name         │      │      │      │      │      │      │      │      │      │      │      │      │
       ├──────────────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┤
       │ umulExtended │  -   │  -   │  -   │  -   │  -   │  -   │  ✔   │  ✔   │  ✔   │  ✔   │  ✔   │  ✔   │
       └──────────────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┘

See Also