Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
d7fca891
Commit
d7fca891
authored
Aug 06, 2003
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Avoid non-portable long long constants.
parent
f93256a5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
23 additions
and
17 deletions
+23
-17
large_int.c
dlls/ntdll/tests/large_int.c
+0
-0
rtl.c
dlls/ntdll/tests/rtl.c
+2
-2
string.c
dlls/ntdll/tests/string.c
+0
-0
string.c
dlls/shlwapi/string.c
+21
-15
No files found.
dlls/ntdll/tests/large_int.c
View file @
d7fca891
This diff is collapsed.
Click to expand it.
dlls/ntdll/tests/rtl.c
View file @
d7fca891
...
...
@@ -235,8 +235,8 @@ static void test_RtlUlonglongByteSwap(void)
{
ULONGLONG
result
;
result
=
pRtlUlonglongByteSwap
(
0x7654321087654321
);
ok
(
0x2143658710325476
==
result
,
result
=
pRtlUlonglongByteSwap
(
((
ULONGLONG
)
0x76543210
<<
32
)
|
0x87654321
);
ok
(
(((
ULONGLONG
)
0x21436587
<<
32
)
|
0x10325476
)
==
result
,
"RtlUlonglongByteSwap(0x7654321087654321) returns 0x%llx, expected 0x2143658710325476"
,
result
);
}
...
...
dlls/ntdll/tests/string.c
View file @
d7fca891
This diff is collapsed.
Click to expand it.
dlls/shlwapi/string.c
View file @
d7fca891
...
...
@@ -2206,23 +2206,29 @@ LPSTR WINAPI StrFormatByteSize64A(LONGLONG llBytes, LPSTR lpszDest, UINT cchMax)
static
const
char
sz3_1
[]
=
"%3.1f"
;
static
const
char
sz3_2
[]
=
"%3.2f"
;
#define KB ((ULONGLONG)1024)
#define MB (KB*KB)
#define GB (KB*KB*KB)
#define TB (KB*KB*KB*KB)
#define PB (KB*KB*KB*KB*KB)
static
const
SHLWAPI_BYTEFORMATS
bfFormats
[]
=
{
{
10
240
,
10
.
24
,
100
.
0
,
sz3_2
,
'K'
},
/* 10 KB */
{
10
2400
,
102
.
4
,
10
.
0
,
sz3_1
,
'K'
},
/* 100 KB */
{
10
24000
,
1024
.
0
,
1
.
0
,
sz3_0
,
'K'
},
/* 1000 KB */
{
10
485760
,
10485
.
76
,
100
.
0
,
sz3_2
,
'M'
},
/* 10 MB */
{
10
4857600
,
104857
.
6
,
10
.
0
,
sz3_1
,
'M'
},
/* 100 MB */
{
10
48576000
,
1048576
.
0
,
1
.
0
,
sz3_0
,
'M'
},
/* 1000 MB */
{
10
737418240
,
10737418
.
24
,
100
.
0
,
sz3_2
,
'G'
},
/* 10 GB */
{
10
7374182400
,
107374182
.
4
,
10
.
0
,
sz3_1
,
'G'
},
/* 100 GB */
{
10
73741824000
,
1073741824
.
0
,
1
.
0
,
sz3_0
,
'G'
},
/* 1000 GB */
{
10
995116277760
,
10485
.
76
,
100
.
0
,
sz3_2
,
'T'
},
/* 10 TB */
{
10
9951162777600
,
104857
.
6
,
10
.
0
,
sz3_1
,
'T'
},
/* 100 TB */
{
10
99511627776000
,
1048576
.
0
,
1
.
0
,
sz3_0
,
'T'
},
/* 1000 TB */
{
1
1258999068426240
,
10737418
.
24
,
100
.
00
,
sz3_2
,
'P'
},
/* 10 PB */
{
1
12589990684262400
,
107374182
.
4
,
10
.
00
,
sz3_1
,
'P'
},
/* 100 PB */
{
1
125899906842624000
,
1073741824
.
0
,
1
.
00
,
sz3_0
,
'P'
},
/* 1000 PB */
{
10
*
KB
,
10
.
24
,
100
.
0
,
sz3_2
,
'K'
},
/* 10 KB */
{
10
0
*
KB
,
102
.
4
,
10
.
0
,
sz3_1
,
'K'
},
/* 100 KB */
{
10
00
*
KB
,
1024
.
0
,
1
.
0
,
sz3_0
,
'K'
},
/* 1000 KB */
{
10
*
MB
,
10485
.
76
,
100
.
0
,
sz3_2
,
'M'
},
/* 10 MB */
{
10
0
*
MB
,
104857
.
6
,
10
.
0
,
sz3_1
,
'M'
},
/* 100 MB */
{
10
00
*
MB
,
1048576
.
0
,
1
.
0
,
sz3_0
,
'M'
},
/* 1000 MB */
{
10
*
GB
,
10737418
.
24
,
100
.
0
,
sz3_2
,
'G'
},
/* 10 GB */
{
10
0
*
GB
,
107374182
.
4
,
10
.
0
,
sz3_1
,
'G'
},
/* 100 GB */
{
10
00
*
GB
,
1073741824
.
0
,
1
.
0
,
sz3_0
,
'G'
},
/* 1000 GB */
{
10
*
TB
,
10485
.
76
,
100
.
0
,
sz3_2
,
'T'
},
/* 10 TB */
{
10
0
*
TB
,
104857
.
6
,
10
.
0
,
sz3_1
,
'T'
},
/* 100 TB */
{
10
00
*
TB
,
1048576
.
0
,
1
.
0
,
sz3_0
,
'T'
},
/* 1000 TB */
{
1
0
*
PB
,
10737418
.
24
,
100
.
00
,
sz3_2
,
'P'
},
/* 10 PB */
{
1
00
*
PB
,
107374182
.
4
,
10
.
00
,
sz3_1
,
'P'
},
/* 100 PB */
{
1
000
*
PB
,
1073741824
.
0
,
1
.
00
,
sz3_0
,
'P'
},
/* 1000 PB */
{
0
,
10995116277
.
76
,
100
.
00
,
sz3_2
,
'E'
}
/* EB's, catch all */
};
char
szBuff
[
32
];
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment