Conditions for Code Replacement of Math Operators with HVX
Each math operators that can be used with the Support Package for Qualcomm Hexagon Processors requires specific conditions to allow code replacement by using the Qualcomm Hexagon Library (QHL). You use this code replacement when generating C/C++ code from a model or from MATLAB® code.
If you do not meet the specific requirements, then the generated C/C++ code runs on the Qualcomm Hexagon Processors. However, this generated code does not use library support.
The library supports these math operators only when you set specific properties, as indicated in this table:
Operators | Input Requirements | Parameter Requirements | Equivalent Functions | |
---|---|---|---|---|
1 |
add
|
|
|
|
2 | sub (Fixed-Point Designer)
|
|
|
|
3 | Mul - elementwise |
|
|
|
4 |
Scaling
|
|
| |
5 |
Matrix Multiplication
|
|
|
|
See Also
Conditions for Code Replacement of DSP Blocks with QHL | Conditions for Code Replacement of DSP System Objects with QHL | Conditions for Code Replacement of Math Functions with QHL | Conditions for Code Replacement of Math Operators with QHL | Conditions for Code Replacement of DSP Blocks with HVX | Conditions for Code Replacement of DSP System Objects with HVX