Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
d2a78def
Commit
d2a78def
authored
Nov 18, 2014
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cleanup: ptr_cmp
1. don't cast size_t* to int* 2. remove long obsolete register specifier
parent
20c3b2ff
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
mysys/ptr_cmp.c
mysys/ptr_cmp.c
+10
-10
No files found.
mysys/ptr_cmp.c
View file @
d2a78def
...
...
@@ -88,8 +88,8 @@ qsort2_cmp get_ptr_compare (size_t size)
static
int
ptr_compare
(
size_t
*
compare_length
,
uchar
**
a
,
uchar
**
b
)
{
reg3
in
t
length
=
*
compare_length
;
reg1
uchar
*
first
,
*
last
;
size_
t
length
=
*
compare_length
;
uchar
*
first
,
*
last
;
first
=
*
a
;
last
=
*
b
;
while
(
--
length
)
...
...
@@ -103,8 +103,8 @@ static int ptr_compare(size_t *compare_length, uchar **a, uchar **b)
static
int
ptr_compare_0
(
size_t
*
compare_length
,
uchar
**
a
,
uchar
**
b
)
{
reg3
in
t
length
=
*
compare_length
;
reg1
uchar
*
first
,
*
last
;
size_
t
length
=
*
compare_length
;
uchar
*
first
,
*
last
;
first
=
*
a
;
last
=
*
b
;
loop:
...
...
@@ -124,8 +124,8 @@ static int ptr_compare_0(size_t *compare_length,uchar **a, uchar **b)
static
int
ptr_compare_1
(
size_t
*
compare_length
,
uchar
**
a
,
uchar
**
b
)
{
reg3
in
t
length
=
*
compare_length
-
1
;
reg1
uchar
*
first
,
*
last
;
size_
t
length
=
*
compare_length
-
1
;
uchar
*
first
,
*
last
;
first
=
*
a
+
1
;
last
=
*
b
+
1
;
cmp
(
-
1
);
...
...
@@ -145,8 +145,8 @@ static int ptr_compare_1(size_t *compare_length,uchar **a, uchar **b)
static
int
ptr_compare_2
(
size_t
*
compare_length
,
uchar
**
a
,
uchar
**
b
)
{
reg3
in
t
length
=
*
compare_length
-
2
;
reg1
uchar
*
first
,
*
last
;
size_
t
length
=
*
compare_length
-
2
;
uchar
*
first
,
*
last
;
first
=
*
a
+
2
;
last
=
*
b
+
2
;
cmp
(
-
2
);
...
...
@@ -167,8 +167,8 @@ static int ptr_compare_2(size_t *compare_length,uchar **a, uchar **b)
static
int
ptr_compare_3
(
size_t
*
compare_length
,
uchar
**
a
,
uchar
**
b
)
{
reg3
in
t
length
=
*
compare_length
-
3
;
reg1
uchar
*
first
,
*
last
;
size_
t
length
=
*
compare_length
-
3
;
uchar
*
first
,
*
last
;
first
=
*
a
+
3
;
last
=
*
b
+
3
;
cmp
(
-
3
);
...
...
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