定点运算符替换
使用代码替换工具或编程接口,定义定点运算的代码替换映射,定点运算包括左移位运算和不同类型的定标 - 例如二进制小数点或净斜率。
工具
函数
主题
- Fixed-Point Operator Code Replacement
Define code replacement mappings for fixed-point operators.
- Binary-Point-Only Scaling Code Replacement
Define code replacement mappings for operations on fixed-point data types so that they match a binary-point-only scaling combination on operator inputs and output.
- Slope Bias Scaling Code Replacement
Define code replacement mappings for operations on fixed-point data types as matching a slope bias scaling combination on the operator inputs and output.
- Net Slope Scaling Code Replacement
Define a code replacement mapping for operations on fixed-point data types as matching net slope between operator inputs and output.
- Equal Slope and Zero Net Bias Code Replacement
Define code replacement mappings for addition and subtraction of fixed-point data types so that they match relative slope and bias values (equal slope and zero net bias) across operator inputs and output.
- Data Type Conversions (Casts) and Operator Code Replacement
Define code replacement mappings for code that the code generator produces for data type conversion (cast) operations.
- Shift Left Operations and Code Replacement
Define code replacement mappings for code that the code generator produces for shift (<<) operations.