mirror of
https://github.com/Microsoft/calculator.git
synced 2025-08-22 14:13:30 -07:00
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:
parent
98669ef129
commit
3048a8af0b
7 changed files with 2 additions and 18 deletions
|
@ -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;
|
||||
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -14,7 +14,6 @@
|
|||
*
|
||||
\****************************************************************************/
|
||||
|
||||
#include "win_data_types_cross_platform.h"
|
||||
#include "sal_cross_platform.h"
|
||||
|
||||
#include "CCommand.h"
|
||||
|
|
|
@ -17,7 +17,6 @@
|
|||
//
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
#include "win_data_types_cross_platform.h"
|
||||
#include "sal_cross_platform.h"
|
||||
|
||||
#include <cstdint>
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue