Motorola DSP56800 Podręcznik Użytkownika Strona 174

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 446
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 173
Inline Assembly Language and Intrinsics
Intrinsic Functions
174
Targeting MC56F83xx/DSP5685x Controllers
Prototype
Word32 L_shl(Word32 lval2shft, Word16 s_shftamount)
Example
long result, l = 0x12345678;
short s2 = 1;
result = L_shl(l,s2);
// Expected value of result: 0x2468ACF0
L_shlftNs
Arithmetic shift of 32-bit value by a specified shift amount. If the shift count is
positive, a left shift is performed. Otherwise, a right shift is performed. Saturation does
not occur during a left shift.
NOTE
Ignores upper N-5 bits of s_shftamount except the sign bit (MSB).
Prototype
Word32 L_shlftNs(Word32 lval2shft, Word16 s_shftamount)
Example
long result, l = 0x12345678;
short s2= 1;
result = L_shlftNs(l,s2);
// Expected value of result: 0x2468ACF0
Przeglądanie stron 173
1 2 ... 169 170 171 172 173 174 175 176 177 178 179 ... 445 446

Komentarze do niniejszej Instrukcji

Brak uwag