Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
aecaf0b6
Commit
aecaf0b6
authored
Apr 18, 2012
by
Stefan Krah
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix comments and whitespace.
parent
6369f77d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
Modules/_decimal/libmpdec/mpdecimal.c
Modules/_decimal/libmpdec/mpdecimal.c
+8
-8
No files found.
Modules/_decimal/libmpdec/mpdecimal.c
View file @
aecaf0b6
...
...
@@ -2484,7 +2484,7 @@ mpd_qand(mpd_t *result, const mpd_t *a, const mpd_t *b,
}
result
->
data
[
i
++
]
=
z
;
/* scan the rest of y for digit > 1 */
/* scan the rest of y for digit
s
> 1 */
for
(;
k
<
MPD_RDIGITS
;
k
++
)
{
ybit
=
y
%
10
;
y
/=
10
;
...
...
@@ -2492,7 +2492,7 @@ mpd_qand(mpd_t *result, const mpd_t *a, const mpd_t *b,
goto
invalid_operation
;
}
}
/* scan the rest of big for digit > 1 */
/* scan the rest of big for digit
s
> 1 */
for
(;
i
<
big
->
len
;
i
++
)
{
y
=
big
->
data
[
i
];
for
(
k
=
0
;
k
<
MPD_RDIGITS
;
k
++
)
{
...
...
@@ -2571,7 +2571,7 @@ mpd_qinvert(mpd_t *result, const mpd_t *a, const mpd_context_t *ctx,
}
for
(
i
=
0
;
i
<
len
;
i
++
)
{
x
=
(
i
<
a
->
len
)
?
a
->
data
[
i
]
:
0
;
x
=
(
i
<
a
->
len
)
?
a
->
data
[
i
]
:
0
;
z
=
0
;
for
(
k
=
0
;
k
<
MPD_RDIGITS
;
k
++
)
{
xbit
=
x
%
10
;
...
...
@@ -2674,7 +2674,7 @@ mpd_qor(mpd_t *result, const mpd_t *a, const mpd_t *b,
z
+=
(
xbit
|
ybit
)
?
mpd_pow10
[
k
]
:
0
;
}
/* scan
and copy the rest of y for digit > 1
*/
/* scan
for digits > 1 and copy the rest of y
*/
for
(;
k
<
MPD_RDIGITS
;
k
++
)
{
ybit
=
y
%
10
;
y
/=
10
;
...
...
@@ -2684,7 +2684,7 @@ mpd_qor(mpd_t *result, const mpd_t *a, const mpd_t *b,
z
+=
ybit
*
mpd_pow10
[
k
];
}
result
->
data
[
i
++
]
=
z
;
/* scan
and copy the rest of big for digit > 1
*/
/* scan
for digits > 1 and copy the rest of big
*/
for
(;
i
<
big
->
len
;
i
++
)
{
y
=
big
->
data
[
i
];
for
(
k
=
0
;
k
<
MPD_RDIGITS
;
k
++
)
{
...
...
@@ -2710,7 +2710,7 @@ invalid_operation:
}
/*
* Rotate the coefficient of
a by b->data digits. b
must be an integer with
* Rotate the coefficient of
'a' by 'b' digits. 'b'
must be an integer with
* exponent 0.
*/
void
...
...
@@ -2993,7 +2993,7 @@ mpd_qxor(mpd_t *result, const mpd_t *a, const mpd_t *b,
z
+=
(
xbit
^
ybit
)
?
mpd_pow10
[
k
]
:
0
;
}
/* scan
and copy the rest of y for digit > 1
*/
/* scan
for digits > 1 and copy the rest of y
*/
for
(;
k
<
MPD_RDIGITS
;
k
++
)
{
ybit
=
y
%
10
;
y
/=
10
;
...
...
@@ -3003,7 +3003,7 @@ mpd_qxor(mpd_t *result, const mpd_t *a, const mpd_t *b,
z
+=
ybit
*
mpd_pow10
[
k
];
}
result
->
data
[
i
++
]
=
z
;
/* scan
and copy the rest of big for digit > 1
*/
/* scan
for digits > 1 and copy the rest of big
*/
for
(;
i
<
big
->
len
;
i
++
)
{
y
=
big
->
data
[
i
];
for
(
k
=
0
;
k
<
MPD_RDIGITS
;
k
++
)
{
...
...
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