Returns maximum size of the L2 and L3 caches of the processor.
IppStatus ippGetMaxCacheSizeB(int* pSizeByte);
pSizeByte |
Pointer to the output result. |
The function ippGetMaxCacheSizeB is declared in the ippcore.h file. This function finds the maximum size (in bytes) of the L2 and L3 caches of the processor used in your computer system. The result is stored it in the pSizeByte.
Optimization Notice |
---|
The Intel® Integrated Performance Primitives (Intel® IPP) library contains functions that are more highly optimized for Intel microprocessors than for other microprocessors. While the functions in the Intel® IPP library offer optimizations for both Intel and Intel-compatible microprocessors, depending on your code and other factors, you will likely get extra performance on Intel microprocessors. While the paragraph above describes the basic optimization approach for the Intel® IPP library as a whole, the library may or may not be optimized to the same degree for non-Intel microprocessors for optimizations that are not unique to Intel microprocessors. These optimizations include Intel® Streaming SIMD Extensions 2 (Intel® SSE2), Intel® Streaming SIMD Extensions 3 (Intel® SSE3), and Supplemental Streaming SIMD Extensions 3 (Intel® SSSE3) instruction sets and other optimizations. Intel does not guarantee the availability, functionality, or effectiveness of any optimization on microprocessors not manufactured by Intel. Microprocessor-dependent optimizations in this product are intended for use with Intel microprocessors. Intel recommends that you evaluate other library products to determine which best meets your requirements. |
If the processor is not supported, or size of cache is unknown, the result is 0, and the function returns corresponding warning message.
ippStsNoErr |
Indicates no error. |
ippStsNullPtrErr |
Indicates an error condition when the pSizeByte pointer is NULL. |
ippStsNotSupportedCpu |
Indicates that processor is not supported. |
ippStsUnknownCacheSize |
Indicates that size of the cache is unknown. |
Copyright © 2000 - 2010, Intel Corporation. All rights reserved.