Normalization. freescale DSP56F80x/DSP56F82x
PDF
Документ
Реклама
Реклама
Freescale Semiconductor, Inc.
Inline Assembly Language and Intrinsic Functions
List of Intrinsic Functions: Definitions and Examples
Normalization
• __norm_l
• __norm_s
__norm_l
Definition
Computes the number of left shifts required to normalize a 32-bit value, returning a
16-bit result. Returns a shift count of 0 for an input of 0x00000000.
Note
Does not actually normalize the value!
This operation is NOT optimal on the DSP56800 because of the case of returning 0 for an input of 0x00000000.
Prototype
Word16 __norm_l(Word32 lsrc)
Example
long ll = 0x20000000;/* .25 */ short result; result = __norm_l(ll);
// Expected value of result: 1
202 Targeting DSP56F80x/DSP56F82x Controllers
For More Information: www.freescale.com
/
Завантажити
Просто дружнє нагадування. Ви можете переглянути документ прямо тут. Але найголовніше, наш штучний інтелект вже прочитав його. Він може пояснити складні речі простими словами, відповісти на ваші запитання будь-якою мовою та допомогти вам швидко орієнтуватися навіть у найдовших або найскладніших документах.
Реклама