Lines Matching refs:srcA
766 uint32 bbs_convertU32( uint32 srcA, int32 srcBbpA, int32 dstBbpA )
771 if( srcA > ( ( uint32 )0xFFFFFFFF >> shiftL ) )
778 return srcA << shiftL;
785 if( srcA + addL < addL )
788 return srcA >> shiftL;
792 return ( srcA + addL ) >> shiftL;
799 int32 bbs_convertS32( int32 srcA, int32 srcBbpA, int32 dstBbpA )
804 if( srcA > ( ( int32 )0x7FFFFFFF >> shiftL ) )
809 else if( srcA < ( ( int32 )0x80000000 >> shiftL ) )
816 return srcA << shiftL;
823 if( srcA + addL < addL )
826 return srcA >> shiftL;
830 return ( srcA + addL ) >> shiftL;