Motorola DSP56800 Guia do Utilizador Página 153

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 446
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 152
Inline Assembly Language and Intrinsics
Intrinsic Functions
153Targeting MC56F83xx/DSP5685x Controllers
Deposit/Extract
The intrinsic functions of the deposit/extract group are:
extract_h
extract_l
L_deposit_h
L_deposit_l
extract_h
Extracts the 16 MSBs of a 32-bit integer or fractional value. Returns a 16-bit value.
Does not perform saturation. When an accumulator is the destination, zeroes out the
LSP portion. Corresponds to truncation when applied to fractional values.
Prototype
Word16 extract_h(Word32 lsrc)
Example
long l = 0x87654321;
short result;
result = extract_h(l);
// Expected value of result: 0x8765
extract_l
Extracts the 16 LSBs of a 32-bit integer or fractional value. Returns a 16-bit value.
Does not perform saturation. When an accumulator is the destination, zeroes out the
LSP portion.
Prototype
Word16 extract_l(Word32 lsrc)
Vista de página 152
1 2 ... 148 149 150 151 152 153 154 155 156 157 158 ... 445 446

Comentários a estes Manuais

Sem comentários