* [Patch 1/4] BaseTools: Fix Xcode 9 Beta treating 32-bit left shift as undefined
[not found] <1501666085-21208-1-git-send-email-yonghong.zhu@intel.com>
@ 2017-08-02 9:28 ` Yonghong Zhu
2017-08-02 9:28 ` [Patch 2/4] DuetPkg: " Yonghong Zhu
` (3 subsequent siblings)
4 siblings, 0 replies; 8+ messages in thread
From: Yonghong Zhu @ 2017-08-02 9:28 UTC (permalink / raw)
To: edk2-devel; +Cc: Liming Gao, Michael D Kinney, Andrew Fish
Bug: https://bugzilla.tianocore.org/show_bug.cgi?id=635
Cc: Liming Gao <liming.gao@intel.com>
Cc: Michael D Kinney <michael.d.kinney@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Andrew Fish <afish@apple.com>
---
BaseTools/Source/C/Common/Decompress.c | 4 ++--
BaseTools/Source/C/TianoCompress/TianoCompress.c | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/BaseTools/Source/C/Common/Decompress.c b/BaseTools/Source/C/Common/Decompress.c
index 4b83e88..b2049bd 100644
--- a/BaseTools/Source/C/Common/Decompress.c
+++ b/BaseTools/Source/C/Common/Decompress.c
@@ -87,15 +87,15 @@ Arguments:
Returns: (VOID)
--*/
{
- Sd->mBitBuf = (UINT32) (Sd->mBitBuf << NumOfBits);
+ Sd->mBitBuf = (UINT32) (((UINT64)Sd->mBitBuf) << NumOfBits);
while (NumOfBits > Sd->mBitCount) {
- Sd->mBitBuf |= (UINT32) (Sd->mSubBitBuf << (NumOfBits = (UINT16) (NumOfBits - Sd->mBitCount)));
+ Sd->mBitBuf |= (UINT32) (((UINT64)Sd->mSubBitBuf) << (NumOfBits = (UINT16) (NumOfBits - Sd->mBitCount)));
if (Sd->mCompSize > 0) {
//
// Get 1 byte into SubBitBuf
//
diff --git a/BaseTools/Source/C/TianoCompress/TianoCompress.c b/BaseTools/Source/C/TianoCompress/TianoCompress.c
index f810511..046fb36 100644
--- a/BaseTools/Source/C/TianoCompress/TianoCompress.c
+++ b/BaseTools/Source/C/TianoCompress/TianoCompress.c
@@ -2064,15 +2064,15 @@ Arguments:
Returns: (VOID)
--*/
{
- Sd->mBitBuf = (UINT32) (Sd->mBitBuf << NumOfBits);
+ Sd->mBitBuf = (UINT32) (((UINT64)Sd->mBitBuf) << NumOfBits);
while (NumOfBits > Sd->mBitCount) {
- Sd->mBitBuf |= (UINT32) (Sd->mSubBitBuf << (NumOfBits = (UINT16) (NumOfBits - Sd->mBitCount)));
+ Sd->mBitBuf |= (UINT32) (((UINT64)Sd->mSubBitBuf) << (NumOfBits = (UINT16) (NumOfBits - Sd->mBitCount)));
if (Sd->mCompSize > 0) {
//
// Get 1 byte into SubBitBuf
//
--
2.6.1.windows.1
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [Patch 2/4] DuetPkg: Fix Xcode 9 Beta treating 32-bit left shift as undefined
[not found] <1501666085-21208-1-git-send-email-yonghong.zhu@intel.com>
2017-08-02 9:28 ` [Patch 1/4] BaseTools: Fix Xcode 9 Beta treating 32-bit left shift as undefined Yonghong Zhu
@ 2017-08-02 9:28 ` Yonghong Zhu
2017-08-03 1:42 ` Ni, Ruiyu
2017-08-02 9:28 ` [Patch 3/4] IntelFrameworkModulePkg: " Yonghong Zhu
` (2 subsequent siblings)
4 siblings, 1 reply; 8+ messages in thread
From: Yonghong Zhu @ 2017-08-02 9:28 UTC (permalink / raw)
To: edk2-devel; +Cc: Ruiyu Ni, Hao Wu, Andrew Fish
Bug: https://bugzilla.tianocore.org/show_bug.cgi?id=635
Cc: Ruiyu Ni <ruiyu.ni@intel.com>
Cc: Hao Wu <hao.a.wu@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Andrew Fish <afish@apple.com>
---
DuetPkg/EfiLdr/TianoDecompress.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/DuetPkg/EfiLdr/TianoDecompress.c b/DuetPkg/EfiLdr/TianoDecompress.c
index b504e8e..86d82fc 100644
--- a/DuetPkg/EfiLdr/TianoDecompress.c
+++ b/DuetPkg/EfiLdr/TianoDecompress.c
@@ -91,15 +91,15 @@ Arguments:
Returns: (VOID)
--*/
{
- Sd->mBitBuf = (UINT32) (Sd->mBitBuf << NumOfBits);
+ Sd->mBitBuf = (UINT32) (((UINT64)Sd->mBitBuf) << NumOfBits);
while (NumOfBits > Sd->mBitCount) {
- Sd->mBitBuf |= (UINT32) (Sd->mSubBitBuf << (NumOfBits = (UINT16) (NumOfBits - Sd->mBitCount)));
+ Sd->mBitBuf |= (UINT32) (((UINT64)Sd->mSubBitBuf) << (NumOfBits = (UINT16) (NumOfBits - Sd->mBitCount)));
if (Sd->mCompSize > 0) {
//
// Get 1 byte into SubBitBuf
//
--
2.6.1.windows.1
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [Patch 3/4] IntelFrameworkModulePkg: Fix Xcode 9 Beta treating 32-bit left shift as undefined
[not found] <1501666085-21208-1-git-send-email-yonghong.zhu@intel.com>
2017-08-02 9:28 ` [Patch 1/4] BaseTools: Fix Xcode 9 Beta treating 32-bit left shift as undefined Yonghong Zhu
2017-08-02 9:28 ` [Patch 2/4] DuetPkg: " Yonghong Zhu
@ 2017-08-02 9:28 ` Yonghong Zhu
2017-08-02 9:28 ` [Patch 4/4] MdePkg: " Yonghong Zhu
2017-08-02 13:47 ` [Patch 0/4] Fix Xcode 9 Beta treating 32-bit left shift as undefined behavior Zhu, Yonghong
4 siblings, 0 replies; 8+ messages in thread
From: Yonghong Zhu @ 2017-08-02 9:28 UTC (permalink / raw)
To: edk2-devel; +Cc: Liming Gao, Michael D Kinney, Jeff Fan, Andrew Fish
Bug: https://bugzilla.tianocore.org/show_bug.cgi?id=635
Cc: Liming Gao <liming.gao@intel.com>
Cc: Michael D Kinney <michael.d.kinney@intel.com>
Cc: Jeff Fan <jeff.fan@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Andrew Fish <afish@apple.com>
---
.../BaseUefiTianoCustomDecompressLib.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/IntelFrameworkModulePkg/Library/BaseUefiTianoCustomDecompressLib/BaseUefiTianoCustomDecompressLib.c b/IntelFrameworkModulePkg/Library/BaseUefiTianoCustomDecompressLib/BaseUefiTianoCustomDecompressLib.c
index e0ba053..4a4340b 100644
--- a/IntelFrameworkModulePkg/Library/BaseUefiTianoCustomDecompressLib/BaseUefiTianoCustomDecompressLib.c
+++ b/IntelFrameworkModulePkg/Library/BaseUefiTianoCustomDecompressLib/BaseUefiTianoCustomDecompressLib.c
@@ -28,18 +28,18 @@ FillBuf (
)
{
//
// Left shift NumOfBits of bits in advance
//
- Sd->mBitBuf = (UINT32) (Sd->mBitBuf << NumOfBits);
+ Sd->mBitBuf = (UINT32) (((UINT64)Sd->mBitBuf) << NumOfBits);
//
// Copy data needed in bytes into mSbuBitBuf
//
while (NumOfBits > Sd->mBitCount) {
- Sd->mBitBuf |= (UINT32) (Sd->mSubBitBuf << (NumOfBits = (UINT16) (NumOfBits - Sd->mBitCount)));
+ Sd->mBitBuf |= (UINT32) (((UINT64)Sd->mSubBitBuf) << (NumOfBits = (UINT16) (NumOfBits - Sd->mBitCount)));
if (Sd->mCompSize > 0) {
//
// Get 1 byte into SubBitBuf
//
--
2.6.1.windows.1
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [Patch 4/4] MdePkg: Fix Xcode 9 Beta treating 32-bit left shift as undefined
[not found] <1501666085-21208-1-git-send-email-yonghong.zhu@intel.com>
` (2 preceding siblings ...)
2017-08-02 9:28 ` [Patch 3/4] IntelFrameworkModulePkg: " Yonghong Zhu
@ 2017-08-02 9:28 ` Yonghong Zhu
2017-08-02 14:04 ` Marvin H?user
2017-08-02 13:47 ` [Patch 0/4] Fix Xcode 9 Beta treating 32-bit left shift as undefined behavior Zhu, Yonghong
4 siblings, 1 reply; 8+ messages in thread
From: Yonghong Zhu @ 2017-08-02 9:28 UTC (permalink / raw)
To: edk2-devel; +Cc: Liming Gao, Michael D Kinney, Andrew Fish
Bug: https://bugzilla.tianocore.org/show_bug.cgi?id=635
Cc: Liming Gao <liming.gao@intel.com>
Cc: Michael D Kinney <michael.d.kinney@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Andrew Fish <afish@apple.com>
---
MdePkg/Library/BaseUefiDecompressLib/BaseUefiDecompressLib.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/MdePkg/Library/BaseUefiDecompressLib/BaseUefiDecompressLib.c b/MdePkg/Library/BaseUefiDecompressLib/BaseUefiDecompressLib.c
index e3b2846..ce1fe0a 100644
--- a/MdePkg/Library/BaseUefiDecompressLib/BaseUefiDecompressLib.c
+++ b/MdePkg/Library/BaseUefiDecompressLib/BaseUefiDecompressLib.c
@@ -38,18 +38,18 @@ FillBuf (
)
{
//
// Left shift NumOfBits of bits in advance
//
- Sd->mBitBuf = (UINT32) (Sd->mBitBuf << NumOfBits);
+ Sd->mBitBuf = (UINT32) (((UINT64)Sd->mBitBuf) << NumOfBits);
//
// Copy data needed in bytes into mSbuBitBuf
//
while (NumOfBits > Sd->mBitCount) {
- Sd->mBitBuf |= (UINT32) (Sd->mSubBitBuf << (NumOfBits = (UINT16) (NumOfBits - Sd->mBitCount)));
+ Sd->mBitBuf |= (UINT32) (((UINT64)Sd->mSubBitBuf) << (NumOfBits = (UINT16) (NumOfBits - Sd->mBitCount)));
if (Sd->mCompSize > 0) {
//
// Get 1 byte into SubBitBuf
//
--
2.6.1.windows.1
^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: [Patch 0/4] Fix Xcode 9 Beta treating 32-bit left shift as undefined behavior
[not found] <1501666085-21208-1-git-send-email-yonghong.zhu@intel.com>
` (3 preceding siblings ...)
2017-08-02 9:28 ` [Patch 4/4] MdePkg: " Yonghong Zhu
@ 2017-08-02 13:47 ` Zhu, Yonghong
4 siblings, 0 replies; 8+ messages in thread
From: Zhu, Yonghong @ 2017-08-02 13:47 UTC (permalink / raw)
To: edk2-devel@lists.01.org, afish@apple.com
After apply those patches, build MdeModulePkg by VS2015 toolchain failed.
BaseUefiDecompressLib.lib(BaseUefiDecompressLib.obj) : error LNK2001: unresolved
external symbol __allshl
d:\git\edk2_bak\Build\MdeModule\DEBUG_VS2015x86\IA32\MdeModulePkg\Core\Dxe\DxeMa
in\DEBUG\DxeCore.dll : fatal error LNK1120: 1 unresolved externals
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 14.0
\Vc\bin\link.exe"' : return code '0x460'
Stop.
Best Regards,
Zhu Yonghong
-----Original Message-----
From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf Of Yonghong Zhu
Sent: Wednesday, August 02, 2017 5:28 PM
To: edk2-devel@lists.01.org
Subject: [edk2] [Patch 0/4] Fix Xcode 9 Beta treating 32-bit left shift as undefined behavior
Bug: https://bugzilla.tianocore.org/show_bug.cgi?id=635
Yonghong Zhu (4):
BaseTools: Fix Xcode 9 Beta treating 32-bit left shift as undefined
DuetPkg: Fix Xcode 9 Beta treating 32-bit left shift as undefined
IntelFrameworkModulePkg: Fix Xcode 9 Beta treating 32-bit left shift
as undefined
MdePkg: Fix Xcode 9 Beta treating 32-bit left shift as undefined
BaseTools/Source/C/Common/Decompress.c | 4 ++--
BaseTools/Source/C/TianoCompress/TianoCompress.c | 4 ++--
DuetPkg/EfiLdr/TianoDecompress.c | 4 ++--
.../BaseUefiTianoCustomDecompressLib.c | 4 ++--
MdePkg/Library/BaseUefiDecompressLib/BaseUefiDecompressLib.c | 4 ++--
5 files changed, 10 insertions(+), 10 deletions(-)
--
2.6.1.windows.1
_______________________________________________
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Patch 4/4] MdePkg: Fix Xcode 9 Beta treating 32-bit left shift as undefined
2017-08-02 9:28 ` [Patch 4/4] MdePkg: " Yonghong Zhu
@ 2017-08-02 14:04 ` Marvin H?user
0 siblings, 0 replies; 8+ messages in thread
From: Marvin H?user @ 2017-08-02 14:04 UTC (permalink / raw)
To: edk2-devel@lists.01.org
Cc: Yonghong Zhu, afish@apple.com, liming.gao@intel.com,
michael.d.kinney@intel.com
Hello Yonghong and Andrew,
This patch may cause issues when compiling MSVC x IA32 as the optimizer might replace the shift with an intrinsic.
I suggest you to use LShiftU64() rather than the << operator.
Regards,
Marvin.
> -----Original Message-----
> From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf Of
> Yonghong Zhu
> Sent: Wednesday, August 2, 2017 11:28 AM
> To: edk2-devel@lists.01.org
> Cc: Michael D Kinney <michael.d.kinney@intel.com>; Andrew Fish
> <afish@apple.com>; Liming Gao <liming.gao@intel.com>
> Subject: [edk2] [Patch 4/4] MdePkg: Fix Xcode 9 Beta treating 32-bit left shift
> as undefined
>
> Bug: https://bugzilla.tianocore.org/show_bug.cgi?id=635
>
> Cc: Liming Gao <liming.gao@intel.com>
> Cc: Michael D Kinney <michael.d.kinney@intel.com>
> Contributed-under: TianoCore Contribution Agreement 1.0
> Signed-off-by: Andrew Fish <afish@apple.com>
> ---
> MdePkg/Library/BaseUefiDecompressLib/BaseUefiDecompressLib.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git
> a/MdePkg/Library/BaseUefiDecompressLib/BaseUefiDecompressLib.c
> b/MdePkg/Library/BaseUefiDecompressLib/BaseUefiDecompressLib.c
> index e3b2846..ce1fe0a 100644
> --- a/MdePkg/Library/BaseUefiDecompressLib/BaseUefiDecompressLib.c
> +++ b/MdePkg/Library/BaseUefiDecompressLib/BaseUefiDecompressLib.c
> @@ -38,18 +38,18 @@ FillBuf (
> )
> {
> //
> // Left shift NumOfBits of bits in advance
> //
> - Sd->mBitBuf = (UINT32) (Sd->mBitBuf << NumOfBits);
> + Sd->mBitBuf = (UINT32) (((UINT64)Sd->mBitBuf) << NumOfBits);
>
> //
> // Copy data needed in bytes into mSbuBitBuf
> //
> while (NumOfBits > Sd->mBitCount) {
>
> - Sd->mBitBuf |= (UINT32) (Sd->mSubBitBuf << (NumOfBits = (UINT16)
> (NumOfBits - Sd->mBitCount)));
> + Sd->mBitBuf |= (UINT32) (((UINT64)Sd->mSubBitBuf) << (NumOfBits =
> (UINT16) (NumOfBits - Sd->mBitCount)));
>
> if (Sd->mCompSize > 0) {
> //
> // Get 1 byte into SubBitBuf
> //
> --
> 2.6.1.windows.1
>
> _______________________________________________
> edk2-devel mailing list
> edk2-devel@lists.01.org
> https://lists.01.org/mailman/listinfo/edk2-devel
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Patch 2/4] DuetPkg: Fix Xcode 9 Beta treating 32-bit left shift as undefined
2017-08-02 9:28 ` [Patch 2/4] DuetPkg: " Yonghong Zhu
@ 2017-08-03 1:42 ` Ni, Ruiyu
2017-08-03 18:26 ` Richardson, Brian
0 siblings, 1 reply; 8+ messages in thread
From: Ni, Ruiyu @ 2017-08-03 1:42 UTC (permalink / raw)
To: Zhu, Yonghong, edk2-devel@lists.01.org; +Cc: Wu, Hao A, Andrew Fish
I am surprised DuetPkg is still being used.
Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com>
Regards,
Ray
>-----Original Message-----
>From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf Of Yonghong Zhu
>Sent: Wednesday, August 2, 2017 5:28 PM
>To: edk2-devel@lists.01.org
>Cc: Ni, Ruiyu <ruiyu.ni@intel.com>; Wu, Hao A <hao.a.wu@intel.com>; Andrew Fish <afish@apple.com>
>Subject: [edk2] [Patch 2/4] DuetPkg: Fix Xcode 9 Beta treating 32-bit left shift as undefined
>
>Bug: https://bugzilla.tianocore.org/show_bug.cgi?id=635
>
>Cc: Ruiyu Ni <ruiyu.ni@intel.com>
>Cc: Hao Wu <hao.a.wu@intel.com>
>Contributed-under: TianoCore Contribution Agreement 1.0
>Signed-off-by: Andrew Fish <afish@apple.com>
>---
> DuetPkg/EfiLdr/TianoDecompress.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
>diff --git a/DuetPkg/EfiLdr/TianoDecompress.c b/DuetPkg/EfiLdr/TianoDecompress.c
>index b504e8e..86d82fc 100644
>--- a/DuetPkg/EfiLdr/TianoDecompress.c
>+++ b/DuetPkg/EfiLdr/TianoDecompress.c
>@@ -91,15 +91,15 @@ Arguments:
>
> Returns: (VOID)
>
> --*/
> {
>- Sd->mBitBuf = (UINT32) (Sd->mBitBuf << NumOfBits);
>+ Sd->mBitBuf = (UINT32) (((UINT64)Sd->mBitBuf) << NumOfBits);
>
> while (NumOfBits > Sd->mBitCount) {
>
>- Sd->mBitBuf |= (UINT32) (Sd->mSubBitBuf << (NumOfBits = (UINT16) (NumOfBits - Sd->mBitCount)));
>+ Sd->mBitBuf |= (UINT32) (((UINT64)Sd->mSubBitBuf) << (NumOfBits = (UINT16) (NumOfBits - Sd->mBitCount)));
>
> if (Sd->mCompSize > 0) {
> //
> // Get 1 byte into SubBitBuf
> //
>--
>2.6.1.windows.1
>
>_______________________________________________
>edk2-devel mailing list
>edk2-devel@lists.01.org
>https://lists.01.org/mailman/listinfo/edk2-devel
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Patch 2/4] DuetPkg: Fix Xcode 9 Beta treating 32-bit left shift as undefined
2017-08-03 1:42 ` Ni, Ruiyu
@ 2017-08-03 18:26 ` Richardson, Brian
0 siblings, 0 replies; 8+ messages in thread
From: Richardson, Brian @ 2017-08-03 18:26 UTC (permalink / raw)
To: Ni, Ruiyu, Zhu, Yonghong, edk2-devel@lists.01.org; +Cc: Wu, Hao A, Andrew Fish
I thought we considered this an obsolete package.
https://github.com/tianocore/tianocore.github.io/wiki/DuetPkg
If this package is obsolete, the readme needs to be updated to reflect this information.
https://github.com/tianocore/edk2/tree/master/DuetPkg
Thanks ... br
---
Brian Richardson, Senior Technical Marketing Engineer, Intel Software
brian.richardson@intel.com -- @intel_brian (Twitter & WeChat)
https://software.intel.com/en-us/meet-the-developers/evangelists/team/brian-richardson
-----Original Message-----
From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf Of Ni, Ruiyu
Sent: Wednesday, August 2, 2017 9:42 PM
To: Zhu, Yonghong <yonghong.zhu@intel.com>; edk2-devel@lists.01.org
Cc: Wu, Hao A <hao.a.wu@intel.com>; Andrew Fish <afish@apple.com>
Subject: Re: [edk2] [Patch 2/4] DuetPkg: Fix Xcode 9 Beta treating 32-bit left shift as undefined
I am surprised DuetPkg is still being used.
Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com>
Regards,
Ray
>-----Original Message-----
>From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf Of Yonghong Zhu
>Sent: Wednesday, August 2, 2017 5:28 PM
>To: edk2-devel@lists.01.org
>Cc: Ni, Ruiyu <ruiyu.ni@intel.com>; Wu, Hao A <hao.a.wu@intel.com>; Andrew Fish <afish@apple.com>
>Subject: [edk2] [Patch 2/4] DuetPkg: Fix Xcode 9 Beta treating 32-bit left shift as undefined
>
>Bug: https://bugzilla.tianocore.org/show_bug.cgi?id=635
>
>Cc: Ruiyu Ni <ruiyu.ni@intel.com>
>Cc: Hao Wu <hao.a.wu@intel.com>
>Contributed-under: TianoCore Contribution Agreement 1.0
>Signed-off-by: Andrew Fish <afish@apple.com>
>---
> DuetPkg/EfiLdr/TianoDecompress.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
>diff --git a/DuetPkg/EfiLdr/TianoDecompress.c b/DuetPkg/EfiLdr/TianoDecompress.c
>index b504e8e..86d82fc 100644
>--- a/DuetPkg/EfiLdr/TianoDecompress.c
>+++ b/DuetPkg/EfiLdr/TianoDecompress.c
>@@ -91,15 +91,15 @@ Arguments:
>
> Returns: (VOID)
>
> --*/
> {
>- Sd->mBitBuf = (UINT32) (Sd->mBitBuf << NumOfBits);
>+ Sd->mBitBuf = (UINT32) (((UINT64)Sd->mBitBuf) << NumOfBits);
>
> while (NumOfBits > Sd->mBitCount) {
>
>- Sd->mBitBuf |= (UINT32) (Sd->mSubBitBuf << (NumOfBits = (UINT16) (NumOfBits - Sd->mBitCount)));
>+ Sd->mBitBuf |= (UINT32) (((UINT64)Sd->mSubBitBuf) << (NumOfBits = (UINT16) (NumOfBits - Sd->mBitCount)));
>
> if (Sd->mCompSize > 0) {
> //
> // Get 1 byte into SubBitBuf
> //
>--
>2.6.1.windows.1
>
>_______________________________________________
>edk2-devel mailing list
>edk2-devel@lists.01.org
>https://lists.01.org/mailman/listinfo/edk2-devel
_______________________________________________
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2017-08-03 18:24 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <1501666085-21208-1-git-send-email-yonghong.zhu@intel.com>
2017-08-02 9:28 ` [Patch 1/4] BaseTools: Fix Xcode 9 Beta treating 32-bit left shift as undefined Yonghong Zhu
2017-08-02 9:28 ` [Patch 2/4] DuetPkg: " Yonghong Zhu
2017-08-03 1:42 ` Ni, Ruiyu
2017-08-03 18:26 ` Richardson, Brian
2017-08-02 9:28 ` [Patch 3/4] IntelFrameworkModulePkg: " Yonghong Zhu
2017-08-02 9:28 ` [Patch 4/4] MdePkg: " Yonghong Zhu
2017-08-02 14:04 ` Marvin H?user
2017-08-02 13:47 ` [Patch 0/4] Fix Xcode 9 Beta treating 32-bit left shift as undefined behavior Zhu, Yonghong
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox