/* This function calculates the UINT16 sum for the requested region. */
UINT16 CalculateSum16(IN UINT16 *Buffer, IN UINTN Size)
/* This function calculates the UINT16 sum for the requested region. */
UINT16 CalculateSum16(IN UINT16 *Buffer, IN UINTN Size)
{
  UINTN   Index;
  UINT16  Sum;
  Sum = 0;
  for (Index = 0; Index < Size; Index++) {
    Sum = (UINT16) (Sum + Buffer[Index]);
  }
  return (UINT16) Sum;
}