dptx: MST: Removed dependency on math.h.
Added equivalent ceil functionality. Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
This commit is contained in:
parent
6e222812f1
commit
abd449945c
1 changed files with 6 additions and 1 deletions
|
@ -727,7 +727,12 @@ static void XDptx_CalculateTs(XDptx *InstancePtr, u8 Stream, u8 BitsPerPixel)
|
|||
|
||||
/* Calculate the payload bandiwdth number (PBN). */
|
||||
InstancePtr->MstStreamConfig[Stream - 1].MstPbn =
|
||||
ceil(1.006 * PeakPixelBw * ((double)64 / 54));
|
||||
1.006 * PeakPixelBw * ((double)64 / 54);
|
||||
/* Ceil - round up if required, avoiding overhead of math.h. */
|
||||
if ((double)(1.006 * PeakPixelBw * ((double)64 / 54)) >
|
||||
((double)InstancePtr->MstStreamConfig[Stream - 1].MstPbn)) {
|
||||
InstancePtr->MstStreamConfig[Stream - 1].MstPbn++;
|
||||
}
|
||||
|
||||
/* Calculate the average stream symbol time slots per MTP. */
|
||||
Average_StreamSymbolTimeSlotsPerMTP = (64.0 * PeakPixelBw / LinkBw);
|
||||
|
|
Loading…
Add table
Reference in a new issue