Platform SDK: Files and I/O

UInt32x32To64

The UInt32x32To64 function multiplies two unsigned 32-bit integers, returning an unsigned 64-bit integer result. The function performs optimally on all Win32 platforms.

ULONGLONG UInt32x32To64(
  DWORD Multiplier,    // first unsigned 32-bit integer 
  DWORD Multiplicand   // second unsigned 32-bit integer 
);

Parameters

Multiplier
[in] Specifies the first unsigned 32-bit integer for the multiplication.
Multiplicand
[in] Specifies the second unsigned 32-bit integer for the multiplication.

Return Values

The return value is the unsigned 64-bit integer result of the multiplication.

Remarks

This function is implemented on all platforms by optimal inline code: a single multiply instruction that returns a 64-bit result.

Please note that the function's return value is a 64-bit value, not a LARGE_INTEGER structure.

Requirements

  Windows NT/2000: Requires Windows NT 3.1 or later.
  Windows 95/98: Requires Windows 95 or later.
  Header: Declared in Winnt.h; include Windows.h.

See Also

File I/O Overview, File I/O Functions, Int32x32To64