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
5c6d63b2
Commit
5c6d63b2
authored
Oct 15, 2008
by
Mikael Ronstrom
Browse files
Options
Browse Files
Download
Plain Diff
Merged Sparc Prefetch patch
parents
88640e37
c2ad3cad
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
storage/innobase/include/univ.i
storage/innobase/include/univ.i
+9
-0
No files found.
storage/innobase/include/univ.i
View file @
5c6d63b2
...
...
@@ -9,6 +9,10 @@ Created 1/20/1994 Heikki Tuuri
#
ifndef
univ_i
#
define
univ_i
#
if
(
defined
(
sun
)
||
defined
(
__sun
)
)
#
include
<
sun_prefetch
.
h
>
#
endif
#
if
(
defined
(
WIN32
)
||
defined
(
_WIN32
)
||
defined
(
WIN64
)
||
defined
(
_WIN64
))
&
&
!defined(MYSQL_SERVER)
&
&
!defined(__WIN__)
#
undef
__WIN__
#
define
__WIN__
...
...
@@ -274,6 +278,11 @@ it is read. */
/* Minimize cache-miss latency by moving data at addr into a cache before
it is read or written. */
#
define
UNIV_PREFETCH_RW
(
addr
)
__builtin_prefetch
(
addr
,
1
,
3
)
#
elif
(
defined
(
sun
)
||
defined
(
__sun
)
)
#
define
UNIV_EXPECT
(
expr
,
value
)
(
expr
)
#
define
UNIV_LIKELY_NULL
(
expr
)
(
expr
)
#
define
UNIV_PREFETCH_R
(
addr
)
sparc_prefetch_read_many
(
addr
)
#
define
UNIV_PREFETCH_RW
(
addr
)
sparc_prefetch_write_many
(
addr
)
#
else
/* Dummy versions of the macros */
#
define
UNIV_EXPECT
(
expr
,
value
)
(
expr
)
...
...
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