VirtualBox

Ignore:
Timestamp:
Oct 29, 2015 4:30:44 AM (9 years ago)
Author:
vboxsync
Message:

EFI/Firmware: Merged in the svn:eol-style, svn:mime-type and trailing whitespace cleanup that was done after the initial UDK2014.SP1 import: svn merge /vendor/edk2/UDK2014.SP1 /vendor/edk2/current .

Location:
trunk/src/VBox/Devices/EFI/Firmware
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/EFI/Firmware

  • trunk/src/VBox/Devices/EFI/Firmware/MdePkg/Library/BaseUefiDecompressLib/BaseUefiDecompressLib.c

    r58459 r58466  
    7272  //
    7373  Sd->mBitCount = (UINT16) (Sd->mBitCount - NumOfBits);
    74  
     74
    7575  //
    7676  // Copy NumOfBits of bits from mSubBitBuf into mBitBuf
     
    102102  //
    103103  // Pop NumOfBits of Bits from Left
    104   // 
     104  //
    105105  OutBits = (UINT32) (Sd->mBitBuf >> (BITBUFSIZ - NumOfBits));
    106106
     
    167167    Count[BitLen[Index]]++;
    168168  }
    169  
     169
    170170  Start[0] = 0;
    171171  Start[1] = 0;
     
    183183
    184184  JuBits = (UINT16) (16 - TableBits);
    185  
     185
    186186  Weight[0] = 0;
    187187  for (Index = 1; Index <= TableBits; Index++) {
     
    192192  while (Index <= 16) {
    193193    Weight[Index] = (UINT16) (1U << (16 - Index));
    194     Index++;   
     194    Index++;
    195195  }
    196196
     
    233233          *Pointer = Avail++;
    234234        }
    235        
     235
    236236        if (*Pointer < (2 * NC - 1)) {
    237237          if ((Index3 & Mask) != 0) {
     
    336336  ASSERT (nn <= NPT);
    337337  //
    338   // Read Extra Set Code Length Array size 
     338  // Read Extra Set Code Length Array size
    339339  //
    340340  Number = (UINT16) GetBits (Sd, nbit);
     
    361361    //
    362362    // If a code length is less than 7, then it is encoded as a 3-bit
    363     // value. Or it is encoded as a series of "1"s followed by a 
     363    // value. Or it is encoded as a series of "1"s followed by a
    364364    // terminating "0". The number of "1"s = Code length - 4.
    365365    //
     
    371371      }
    372372    }
    373    
     373
    374374    FillBuf (Sd, (UINT16) ((CharC < 7) ? 3 : CharC - 3));
    375375
    376376    Sd->mPTLen[Index++] = (UINT8) CharC;
    377  
    378     //
    379     // For Code&Len Set, 
     377
     378    //
     379    // For Code&Len Set,
    380380    // After the third length of the code length concatenation,
    381     // a 2-bit value is used to indicated the number of consecutive 
     381    // a 2-bit value is used to indicated the number of consecutive
    382382    // zero lengths after the third length.
    383383    //
     
    393393    Sd->mPTLen[Index++] = 0;
    394394  }
    395  
     395
    396396  return MakeTable (Sd, nn, Sd->mPTLen, 8, Sd->mPTTable);
    397397}
     
    505505    // Starting a new block
    506506    // Read BlockSize from block header
    507     // 
     507    //
    508508    Sd->mBlockSize    = (UINT16) GetBits (Sd, 16);
    509509
     
    524524
    525525    //
    526     // Read in the Position Set Code Length Arrary, 
     526    // Read in the Position Set Code Length Arrary,
    527527    // Generate the Huffman code mapping table for the Position Set.
    528528    //
     
    582582    //
    583583    // Get one code from mBitBuf
    584     // 
     584    //
    585585    CharC = DecodeC (Sd);
    586586    if (Sd->mBadTableFlag != 0) {
     
    606606      //
    607607      CharC       = (UINT16) (CharC - (BIT8 - THRESHOLD));
    608  
     608
    609609      //
    610610      // Get string length
     
    637637
    638638/**
    639   Given a compressed source buffer, this function retrieves the size of 
    640   the uncompressed buffer and the size of the scratch buffer required 
     639  Given a compressed source buffer, this function retrieves the size of
     640  the uncompressed buffer and the size of the scratch buffer required
    641641  to decompress the compressed source buffer.
    642642
    643   Retrieves the size of the uncompressed buffer and the temporary scratch buffer 
     643  Retrieves the size of the uncompressed buffer and the temporary scratch buffer
    644644  required to decompress the buffer specified by Source and SourceSize.
    645645  If the size of the uncompressed buffer or the size of the scratch buffer cannot
    646   be determined from the compressed data specified by Source and SourceData, 
     646  be determined from the compressed data specified by Source and SourceData,
    647647  then RETURN_INVALID_PARAMETER is returned.  Otherwise, the size of the uncompressed
    648648  buffer is returned in DestinationSize, the size of the scratch buffer is returned
    649649  in ScratchSize, and RETURN_SUCCESS is returned.
    650   This function does not have scratch buffer available to perform a thorough 
     650  This function does not have scratch buffer available to perform a thorough
    651651  checking of the validity of the source data.  It just retrieves the "Original Size"
    652652  field from the beginning bytes of the source data and output it as DestinationSize.
     
    663663                          by Source and SourceSize is decompressed.
    664664  @param  ScratchSize     A pointer to the size, in bytes, of the scratch buffer that
    665                           is required to decompress the compressed buffer specified 
     665                          is required to decompress the compressed buffer specified
    666666                          by Source and SourceSize.
    667667
    668   @retval  RETURN_SUCCESS The size of the uncompressed data was returned 
    669                           in DestinationSize, and the size of the scratch 
     668  @retval  RETURN_SUCCESS The size of the uncompressed data was returned
     669                          in DestinationSize, and the size of the scratch
    670670                          buffer was returned in ScratchSize.
    671   @retval  RETURN_INVALID_PARAMETER 
    672                           The size of the uncompressed data or the size of 
    673                           the scratch buffer cannot be determined from 
    674                           the compressed data specified by Source 
     671  @retval  RETURN_INVALID_PARAMETER
     672                          The size of the uncompressed data or the size of
     673                          the scratch buffer cannot be determined from
     674                          the compressed data specified by Source
    675675                          and SourceSize.
    676676**/
     
    711711  This function is designed so that the decompression algorithm can be implemented
    712712  without using any memory services.  As a result, this function is not allowed to
    713   call any memory allocation services in its implementation.  It is the caller's 
     713  call any memory allocation services in its implementation.  It is the caller's
    714714  responsibility to allocate and free the Destination and Scratch buffers.
    715   If the compressed source data specified by Source is successfully decompressed 
    716   into Destination, then RETURN_SUCCESS is returned.  If the compressed source data 
     715  If the compressed source data specified by Source is successfully decompressed
     716  into Destination, then RETURN_SUCCESS is returned.  If the compressed source data
    717717  specified by Source is not in a valid compressed data format,
    718718  then RETURN_INVALID_PARAMETER is returned.
     
    725725  @param  Destination The destination buffer to store the decompressed data.
    726726  @param  Scratch     A temporary scratch buffer that is used to perform the decompression.
    727                       This is an optional parameter that may be NULL if the 
     727                      This is an optional parameter that may be NULL if the
    728728                      required scratch buffer size is 0.
    729                      
    730   @retval  RETURN_SUCCESS Decompression completed successfully, and 
     729
     730  @retval  RETURN_SUCCESS Decompression completed successfully, and
    731731                          the uncompressed buffer is returned in Destination.
    732   @retval  RETURN_INVALID_PARAMETER 
    733                           The source buffer specified by Source is corrupted 
     732  @retval  RETURN_INVALID_PARAMETER
     733                          The source buffer specified by Source is corrupted
    734734                          (not in a valid compressed format).
    735735**/
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette