Developer Reference

  • 2020
  • 07/15/2020
  • Public Content
Contents

PatternMatchGetBufferSize

Computes the size of the work buffer for the
ippsPatternMatch
function.

Syntax

IppStatus ippsPatternMatchGetBufferSize (int
srcLen
, int
patternLen
, int
patternSize
, IppPatternMatchMode
hint
, int*
bufSize
);
Include Files
ipps.h
Parameters
srcLen
Number of patterns in the source array.
patternLen
Number of elements in the templates array.
patternSize
The size of a pattern, in bytes.
hint
Option to run specially optimized code branch, supported values:
ippPatternMatchAuto
The function selects optimization automatically.
ippPatternMatchDirect
The function uses direct method, no additional memory is required.
ippPatternMatchTable
The function uses conversion data for internal representation and requires the memory buffer. Helps to achieve better performance for a big set of input data.
bufSize
Size of the required buffer.
Description
This function computes the size, in bytes, of the external work buffer needed for the
ippsPatternMatch
function. The result is stored in the
bufSize
parameter.
Return Values
ippStsNoErr
Indicates no error.
ippStsSizeErr
Indicates an error when at least one of the
srcLen
,
dstLen
, or
patternSize
values is less than, or equal to zero; or
patternSize
is too big.
ippStsBadArg
Indicates an error when the value of
hint
is not supported.

Product and Performance Information

1

Intel's compilers may or may not optimize to the same degree for non-Intel microprocessors for optimizations that are not unique to Intel microprocessors. These optimizations include SSE2, SSE3, and 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. Certain optimizations not specific to Intel microarchitecture are reserved for Intel microprocessors. Please refer to the applicable product User and Reference Guides for more information regarding the specific instruction sets covered by this notice.

Notice revision #20110804