ImageGear for C and C++ on Linux v18.8 - Updated
IG_util_MMX_usage_get
API Reference Guide > Core Component API Reference > Core Component Functions Reference > Utility Functions > IG_util_MMX_usage_get

This function returns the current state of MMX optimization.

Declaration:

 
Copy Code
AT_ERRCOUNT LACCUAPI IG_util_MMX_usage_get (LPBOOL lpbMMXUsage);

Arguments:

Name Type Description
lpbMMXUsage LPBOOL A far pointer that returns a Boolean value indicating whether or not ImageGear is set to optimize for MMX hardware.

Return Value:

Returns the number of ImageGear errors that occurred during this function call. If there are no errors, the return value is IGE_SUCCESS.

Supported Raster Image Formats:

This function does not process image pixels.

Example:

 
Copy Code
AT_ERRCOUNT nErrcount;
BOOL bMMXon;
nErrcount = IG_util_MMX_usage_get(bMMXon);

Remarks:

If lpbMMXUsage returns TRUE it means that ImageGear is set to optimize for MMX technology if the computer contains MMX hardware.

If this parameter is TRUE, but the MMX processor is not detected, then MMX optimization will not be used.

See also IG_util_MMX_usage_set() function.