SDKZSPF LSI, SDKZSPF Datasheet - Page 80

no-image

SDKZSPF

Manufacturer Part Number
SDKZSPF
Description
Manufacturer
LSI
Datasheet

Specifications of SDKZSPF

Lead Free Status / Rohs Status
Supplier Unconfirmed
3.10 Inline Assembly
3.10.1 Syntax
3.10.2 Parameterized Assembly
3-26
This release of the SDK does not support Q15 division.
The code produced for the Q15 data type is equivalent to that produced
for the int data type, except for the following three cases:
The fprintf and printf functions have been extended to allow
printing of the q15 data type. A “%q” format specifier prints a 16-bit value
in fixed point notation.
Inline assembly that references C variables can be generated by using
the asm directive.
The basic syntax of the asm directive is:
The parameterized assembly consists of a text string containing the
desired assembly output with parameters that are replaced with registers
C Cross Compiler
Copyright © 1999-2003 by LSI Logic Corporation. All rights reserved.
The product of two Q15s is calculated with a mul instruction rather
than an imul instruction.
The 16-bit result of a Q15 product is the high-order 16 bits of the
result produced by a mul instruction. The 16-bit result of an int
product is the low-order 16 bits of the result produced by an imul
instruction.
The product of two Q15 constants is not simplified by the compiler.
asm(
“parameterized assembly” :
output variable, ... :
input expression, ... :
explicitly clobbered register, ... );