Motorola DSP56800 Guía de usuario Pagina 176

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 446
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 175
Inline Assembly Language and Intrinsics
Intrinsic Functions
176
Targeting MC56F83xx/DSP5685x Controllers
Assumptions
OMR’s SA bit was set to 1 at least 3 cycles before this code, that is, saturation on data
ALU results enabled.
Prototype
Word32 L_shr(Word32 lval2shft, Word16 s_shftamount)
Example
long result, l = 0x24680000;
short s2= 1;
result = L_shrtNs(l,s2);
// Expected value of result: 0x12340000
L_shr_r
Arithmetic shift of 32-bit value by a specified shift amount. If the shift count is
positive, a right shift is performed. Otherwise, a left shift is performed. If a right shift
is performed, then rounding performed on result. Saturation may occur during a left
shift.
Assumptions
OMR's SA bit was set to 1 at least 3 cycles before this code, that is, saturation on data
ALU results enabled.
Prototype
Word32 L_shr_r(Word32 lval2shft, Word16 s_shftamount)
Vista de pagina 175
1 2 ... 171 172 173 174 175 176 177 178 179 180 181 ... 445 446

Comentarios a estos manuales

Sin comentarios