/** @file\r
Example program using BltLib\r
\r
- Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.<BR>\r
+ Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
{\r
#if defined (MDE_CPU_IA32) || defined (MDE_CPU_X64)\r
return AsmReadTsc ();\r
-#elif defined (MDE_CPU_IPF)\r
- return AsmReadItc ();\r
#else\r
#error ReadTimestamp not supported for this architecture!\r
#endif\r
)\r
{\r
UINTN Found;\r
- UINTN Bits;\r
+ INTN Bits;\r
UINT64 Tsc1;\r
UINT64 Tsc2;\r
UINT64 TscBits;\r
Bits = Bits - 1;\r
}\r
R32 = (UINT32)((R32 << Bits) |\r
- RShiftU64 (LShiftU64 (TscBits, 64 - Bits), 64 - Bits));\r
+ RShiftU64 (LShiftU64 (TscBits, (UINTN) (64 - Bits)), (UINTN) (64 - Bits)));\r
Found = Found + Bits;\r
} while (Found < 32);\r
\r