XilinxProcessorIPLib/drivers/axicdma/src/xaxicdma_bdring.c
u32 XAxiCdma_BdRingMemCalc(u32 Alignment, int NumBd)
{
	return (uint32_t)(((sizeof(XAxiCdma_Bd) + (Alignment - 1)) &
               ~(Alignment - 1)) * NumBd);
}
/*****************************************************************************/
/**
 * This function calculates how much memory is needed to build requested number
 * of BDs.
 *
 * @param	Alignment is the preferred alignment for the BDs
 * @param	NumBd is the number of BDs to be built
 *
 * @return	The number of bytes of memory needed to build the BDs
 *
 * @note	None.
 *
 *****************************************************************************/
This function calculates how much memory is needed to build requested number
of BDs.

@param       Alignment is the preferred alignment for the BDs
@param       NumBd is the number of BDs to be built

@return      The number of bytes of memory needed to build the BDs

@note        None.
This function calculates how much memory is needed to build requested number of BDs . @param Alignment is the preferred alignment for the BDs @param NumBd is the number of BDs to be built @return The number of bytes of memory needed to build the BDs @note None .
u32 XAxiCdma_BdRingMemCalc(u32 Alignment, int NumBd)
{
	return (uint32_t)(((sizeof(XAxiCdma_Bd) + (Alignment - 1)) &
               ~(Alignment - 1)) * NumBd);
}
u32 XAxiCdma_BdRingMemCalc ( u32 Alignment , int NumBd ) { return ( uint32_t ) ( ( ( sizeof ( XAxiCdma_Bd ) + ( Alignment - 1 ) ) & ~ ( Alignment - 1 ) ) * NumBd ) ; }
This function calculates how much memory is needed to build requested number
 of BDs.
This function calculates how much memory is needed to build requested number of BDs .