Home | History | Annotate | Download | only in BasePrintLib

Lines Matching full:precision

326   UINTN             Precision;

428 // Set the default width to zero, and the default precision to 1
431 Precision = 1;
448 Flags |= PRECISION;
467 if ((Flags & PRECISION) == 0) {
476 Precision = VA_ARG (VaListMarker, UINTN);
478 Precision = BASE_ARG (BaseListMarker, UINTN);
483 if ((Flags & PRECISION) == 0) {
501 if ((Flags & PRECISION) == 0) {
505 Precision = Count;
512 // looking up for flag, width, precision and type.
515 Precision = 0;
593 Precision = 1;
629 if (Value == 0 && Precision == 0) {
643 Precision++;
650 if ((Flags & PRECISION) == 0) {
651 Precision = Width;
675 // Set the default precision for string to be zero if not specified.
677 if ((Flags & PRECISION) == 0) {
678 Precision = 0;
865 // ArgumentString is either null-terminated, or it contains Precision characters
867 for (Count = 0; Count < Precision || ((Flags & PRECISION) == 0); Count++) {
875 if (Precision < Count) {
876 Precision = Count;
883 LengthToReturn += ((Width - Precision) * BytesPerOutputCharacter);
885 Buffer = BasePrintLibFillBuffer (Buffer, EndBuffer, Width - Precision, ' ', BytesPerOutputCharacter);
896 LengthToReturn += ((Precision - Count) * BytesPerOutputCharacter);
898 Buffer = BasePrintLibFillBuffer (Buffer, EndBuffer, Precision - Count, '0', BytesPerOutputCharacter);
901 LengthToReturn += ((Precision - Count) * BytesPerOutputCharacter);
903 Buffer = BasePrintLibFillBuffer (Buffer, EndBuffer, Precision - Count, ' ', BytesPerOutputCharacter);
952 LengthToReturn += ((Width - Precision) * BytesPerOutputCharacter);
954 Buffer = BasePrintLibFillBuffer (Buffer, EndBuffer, Width - Precision