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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
6e02272a
Commit
6e02272a
authored
Nov 20, 2009
by
Mikael Ronstrom
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
WL#5105, review fix
parent
5a1ac833
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
mysys/ptr_cmp.c
mysys/ptr_cmp.c
+5
-5
No files found.
mysys/ptr_cmp.c
View file @
6e02272a
...
@@ -22,7 +22,7 @@
...
@@ -22,7 +22,7 @@
#include "mysys_priv.h"
#include "mysys_priv.h"
#include <myisampack.h>
#include <myisampack.h>
#ifdef
UNIV
_SOLARIS
#ifdef
TARGET_OS
_SOLARIS
/*
/*
* On Solaris, memcmp() is normally faster than the unrolled ptr_compare_N
* On Solaris, memcmp() is normally faster than the unrolled ptr_compare_N
* functions, as memcmp() is usually a platform-specific implementation
* functions, as memcmp() is usually a platform-specific implementation
...
@@ -39,20 +39,20 @@ static int native_compare(size_t *length, unsigned char **a, unsigned char **b)
...
@@ -39,20 +39,20 @@ static int native_compare(size_t *length, unsigned char **a, unsigned char **b)
return
memcmp
(
*
a
,
*
b
,
*
length
);
return
memcmp
(
*
a
,
*
b
,
*
length
);
}
}
#else
/*
UNIV
_SOLARIS */
#else
/*
TARGET_OS
_SOLARIS */
static
int
ptr_compare
(
size_t
*
compare_length
,
uchar
**
a
,
uchar
**
b
);
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
);
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
);
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
);
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
);
static
int
ptr_compare_3
(
size_t
*
compare_length
,
uchar
**
a
,
uchar
**
b
);
#endif
/*
UNIV
_SOLARIS */
#endif
/*
TARGET_OS
_SOLARIS */
/* Get a pointer to a optimal byte-compare function for a given size */
/* Get a pointer to a optimal byte-compare function for a given size */
qsort2_cmp
get_ptr_compare
(
size_t
size
)
qsort2_cmp
get_ptr_compare
(
size_t
size
)
{
{
#ifdef
UNIV
_SOLARIS
#ifdef
TARGET_OS
_SOLARIS
return
(
qsort2_cmp
)
native_compare
;
return
(
qsort2_cmp
)
native_compare
;
#else
#else
if
(
size
<
4
)
if
(
size
<
4
)
...
@@ -64,7 +64,7 @@ qsort2_cmp get_ptr_compare (size_t size)
...
@@ -64,7 +64,7 @@ qsort2_cmp get_ptr_compare (size_t size)
case
3
:
return
(
qsort2_cmp
)
ptr_compare_3
;
case
3
:
return
(
qsort2_cmp
)
ptr_compare_3
;
}
}
return
0
;
/* Impossible */
return
0
;
/* Impossible */
#endif
/*
UNIV
_SOLARIS */
#endif
/*
TARGET_OS
_SOLARIS */
}
}
...
...
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