Replace the only two invocations of HIDWORD and LODWORD with their macro expansions and remove win_data_types_cross_platform.h

This commit is contained in:
fwcd 2019-04-06 18:14:36 +02:00
commit 3048a8af0b
7 changed files with 2 additions and 18 deletions

View file

@ -51,8 +51,8 @@ namespace CalcEngine
Rational::Rational(uint64_t ui)
{
uint32_t hi = HIDWORD(ui);
uint32_t lo = LODWORD(ui);
uint32_t hi = (uint32_t) (((ui) >> 32) & 0xffffffff);
uint32_t lo = (uint32_t) ui;
Rational temp = (Rational{ hi } << 32) | lo;

View file

@ -305,7 +305,6 @@
<ClInclude Include="UnitConverter.h" />
<ClInclude Include="preprocessor_cross_platform.h" />
<ClInclude Include="sal_cross_platform.h" />
<ClInclude Include="win_data_types_cross_platform.h" />
<ClInclude Include="winerror_cross_platform.h" />
</ItemGroup>
<ItemGroup>

View file

@ -162,7 +162,6 @@
</ClInclude>
<ClInclude Include="preprocessor_cross_platform.h" />
<ClInclude Include="sal_cross_platform.h" />
<ClInclude Include="win_data_types_cross_platform.h" />
<ClInclude Include="winerror_cross_platform.h" />
</ItemGroup>
</Project>

View file

@ -14,7 +14,6 @@
*
\****************************************************************************/
#include "win_data_types_cross_platform.h"
#include "sal_cross_platform.h"
#include "CCommand.h"

View file

@ -17,7 +17,6 @@
//
//-----------------------------------------------------------------------------
#include "win_data_types_cross_platform.h"
#include "sal_cross_platform.h"
#include <cstdint>

View file

@ -26,7 +26,6 @@
#include <string_view>
#include <future>
#include "win_data_types_cross_platform.h"
#include "winerror_cross_platform.h"
#include "sal_cross_platform.h"
#include "preprocessor_cross_platform.h"

View file

@ -1,11 +0,0 @@
#pragma once
#include <cstdint>
#ifndef LODWORD
#define LODWORD(qw) ((uint32_t)(qw))
#endif
#ifndef HIDWORD
#define HIDWORD(qw) ((uint32_t)(((qw) >> 32) & 0xffffffff))
#endif