_MulHigh, _MulUnsignedHigh (Windows Embedded CE 6.0)

1/5/2010

This function returns the high-order 32-bit result of multiplying two arguments.

Syntax

long __cdecl _MulHigh(
  long arg1,
  long arg2
);

unsigned long __cdecl _MulUnsignedHigh(
  unsigned long arg1,
  unsigned long arg2
);

Parameters

  • arg1
    [in] The first argument in the product.
  • arg2
    [in] The second argument in the product.

Return Values

The long integer result of multiplying arg1 and arg2.

Remarks

This function can be useful for detecting overflow. _MulHigh is useful for multiplying integers scaled to represent [-0.5..0.5), and _MulUnsignedHigh is useful for multiplying integers scaled to represent 0..1).

Requirements

Architecture ARM, MIPS, SH-4, x86
Header cmnintrin.h
Routine _MulHigh

See Also

Reference

Common Intrinsic Functions for Device Compilers

Other Resources

Intrinsic Functions for Device Compilers