Conditions for Code Replacement of Math Operators with QHL
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 |
Mul - Scaling
|
|
|
|
5 |
Matrix inverse
|
|
| |
6 |
Comparators
|
|
Real Input Length >= 20 OR Complex Input Length > inf
Real Input Length > = 16 OR Complex Input Length > inf
Real Input Length > 16
Real Input Length > 16 |
|
7 |
Shift
|
|
|
|
8 | dot |
|
|
|
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 DSP Blocks with HVX | Conditions for Code Replacement of DSP System Objects with HVX | Conditions for Code Replacement of Math Operators with HVX