%%
%%Thisfilecontainstlccodeforgenerationoffixedpointmultiplication
%%
%%Copyright1994-2011TheMathWorks,Inc.
%%
 
%%Function:FixPt_Multiply==========================================
%%
%%Abstract:
%%RadixOnlyMultiplication(SingleChunkOnly)
%%
%%Vc=Va*Vb
%%
%%NotetheStoredIntegersaredenotedbyA,B,andC
%%
%%C=2^(Ea+Eb-Ec)*A*B
%%
%%TherecordsC,A,andBmustcontain
%%allthefixedpointdatatypeandscalingfields.
%%Theymustalsocontainafieldcalled"Label"
%%InC_LanguagetermscLabelmustbeanl-value.
%%aLabelandbLabelaretreatedasreadonlyand
%%theymustprovidethevalues(storedintegers)for
%%AandB.PleasenotenoneoftheLabelscanbeaddresses.
%%
%%Synopsis:
%%FixPt_Multiply(C,A,B,roundMode,satMode)
%%
%%C=recorddescribingoutput
%%A=recorddescribinginput1
%%B=recorddescribinginput2
%%roundMode=stringspecifyingroundto"Zero","Nearest",etc.
%%satMode=stringspecifying"Wrap"or"Saturate"onoverflow
%%
%function FixPt_Multiply(cLabel,cDT,aLabel,aDT,bLabel,bDT,roundMode,satMode) Output
  %%
  %<FixPt_WordLengthLimitationCheck(aDT)>/
  %<FixPt_WordLengthLimitationCheck(bDT)>/
  %<FixPt_WordLengthLimitationCheck(cDT)>/
  %%
  %assign vec = FixPt_BinaryOp("FixPtMul", cLabel, cDT, aLabel, aDT, ...
    bLabel, bDT, roundMode, satMode)
  %%
  %/
  %return
  %%
%endfunction %% FixPt_Multiply
 
 
 
%%[EOF]fixptmul.tlc