Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
MINOTAuR
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
MINOTAuR
MINOTAuR
Commits
34277630
Commit
34277630
authored
5 years ago
by
Michael Platzer
Browse files
Options
Downloads
Patches
Plain Diff
sequential/ammunition: replace all long by long long
parent
82665cd9
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
bench/sequential/ammunition/ammunition_libc.c
+1
-1
1 addition, 1 deletion
bench/sequential/ammunition/ammunition_libc.c
bench/sequential/ammunition/arithm.c
+6
-6
6 additions, 6 deletions
bench/sequential/ammunition/arithm.c
with
7 additions
and
7 deletions
bench/sequential/ammunition/ammunition_libc.c
+
1
−
1
View file @
34277630
...
@@ -145,7 +145,7 @@ int ammunition_sprintf_u( char *s, unsigned int number )
...
@@ -145,7 +145,7 @@ int ammunition_sprintf_u( char *s, unsigned int number )
/* How many decimal digits do we need? */
/* How many decimal digits do we need? */
char
digits
=
0
;
char
digits
=
0
;
unsigned
char
writePos
=
0
;
unsigned
char
writePos
=
0
;
unsigned
long
copyOfNumber
=
number
;
unsigned
long
long
copyOfNumber
=
number
;
_Pragma
(
"loopbound min 1 max 10"
)
_Pragma
(
"loopbound min 1 max 10"
)
do
{
do
{
digits
++
;
digits
++
;
...
...
This diff is collapsed.
Click to expand it.
bench/sequential/ammunition/arithm.c
+
6
−
6
View file @
34277630
...
@@ -246,7 +246,7 @@ int ammunition_multiply_unsigned_integer_without_overflow_reaction
...
@@ -246,7 +246,7 @@ int ammunition_multiply_unsigned_integer_without_overflow_reaction
int
op1_digit_num
;
int
op1_digit_num
;
int
op2_digit_num
;
int
op2_digit_num
;
int
carry
;
int
carry
;
unsigned
long
int
partial_sum
;
unsigned
long
long
int
partial_sum
;
int
result_digit_number
;
int
result_digit_number
;
int
overflow_flag
;
int
overflow_flag
;
unsigned
char
long_result
[
2
*
MAX_INTEGER_OPERAND_SIZE
];
unsigned
char
long_result
[
2
*
MAX_INTEGER_OPERAND_SIZE
];
...
@@ -384,8 +384,8 @@ int ammunition_divide_unsigned_integer_without_overflow_reaction
...
@@ -384,8 +384,8 @@ int ammunition_divide_unsigned_integer_without_overflow_reaction
/* Division by digit. */
/* Division by digit. */
int
digit_num
;
int
digit_num
;
int
digit
;
int
digit
;
unsigned
long
divisable
;
unsigned
long
long
divisable
;
unsigned
long
remainder
;
unsigned
long
long
remainder
;
digit
=
(
(
unsigned
char
*
)
op2
)
[
first_nonzero_digit_number
];
digit
=
(
(
unsigned
char
*
)
op2
)
[
first_nonzero_digit_number
];
ammunition_memcpy
(
result
,
op1
,
(
size_t
)
size
);
ammunition_memcpy
(
result
,
op1
,
(
size_t
)
size
);
...
@@ -434,7 +434,7 @@ int ammunition_divide_unsigned_integer_without_overflow_reaction
...
@@ -434,7 +434,7 @@ int ammunition_divide_unsigned_integer_without_overflow_reaction
_Pragma
(
"loopbound min 0 max 0"
)
_Pragma
(
"loopbound min 0 max 0"
)
while
(
normalized_op2
[
first_nonzero_digit_number
+
1
]
*
q_approximation
while
(
normalized_op2
[
first_nonzero_digit_number
+
1
]
*
q_approximation
>
(
(
(
unsigned
long
int
)
scaled_op1
[
scaled_op1_digit_num
]
>
(
(
(
unsigned
long
long
int
)
scaled_op1
[
scaled_op1_digit_num
]
*
(
UCHAR_MAX
+
1
)
*
(
UCHAR_MAX
+
1
)
+
scaled_op1
[
scaled_op1_digit_num
+
1
]
+
scaled_op1
[
scaled_op1_digit_num
+
1
]
-
q_approximation
-
q_approximation
...
@@ -1168,8 +1168,8 @@ ammunition_unsigned_integer_to_based_string ( int size, const void *operand,
...
@@ -1168,8 +1168,8 @@ ammunition_unsigned_integer_to_based_string ( int size, const void *operand,
{
{
int
digit_num
;
int
digit_num
;
int
i
;
int
i
;
unsigned
long
divisable
;
unsigned
long
long
divisable
;
unsigned
long
remainder
;
unsigned
long
long
remainder
;
int
nonzero_flag
;
int
nonzero_flag
;
int
length
;
int
length
;
int
temporary
;
int
temporary
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment