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
9a73af01
Commit
9a73af01
authored
May 09, 2017
by
Jan Lindström
Committed by
GitHub
May 09, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #388 from grooverdan/10.2-MDEV-8684-innobase-remove-maths
MDEV-8684: innodb ut_delay - no maths
parents
b246993c
015966d2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
8 deletions
+3
-8
storage/innobase/include/ut0ut.h
storage/innobase/include/ut0ut.h
+1
-1
storage/innobase/ut/ut0ut.cc
storage/innobase/ut/ut0ut.cc
+2
-7
No files found.
storage/innobase/include/ut0ut.h
View file @
9a73af01
...
@@ -313,7 +313,7 @@ ut_sprintf_timestamp(
...
@@ -313,7 +313,7 @@ ut_sprintf_timestamp(
Runs an idle loop on CPU. The argument gives the desired delay
Runs an idle loop on CPU. The argument gives the desired delay
in microseconds on 100 MHz Pentium + Visual C++.
in microseconds on 100 MHz Pentium + Visual C++.
@return dummy value */
@return dummy value */
ulint
void
ut_delay
(
ut_delay
(
/*=====*/
/*=====*/
ulint
delay
);
/*!< in: delay in microseconds on 100 MHz Pentium */
ulint
delay
);
/*!< in: delay in microseconds on 100 MHz Pentium */
...
...
storage/innobase/ut/ut0ut.cc
View file @
9a73af01
...
@@ -285,26 +285,21 @@ ut_sprintf_timestamp(
...
@@ -285,26 +285,21 @@ ut_sprintf_timestamp(
Runs an idle loop on CPU. The argument gives the desired delay
Runs an idle loop on CPU. The argument gives the desired delay
in microseconds on 100 MHz Pentium + Visual C++.
in microseconds on 100 MHz Pentium + Visual C++.
@return dummy value */
@return dummy value */
ulint
void
ut_delay
(
ut_delay
(
/*=====*/
/*=====*/
ulint
delay
)
/*!< in: delay in microseconds on 100 MHz Pentium */
ulint
delay
)
/*!< in: delay in microseconds on 100 MHz Pentium */
{
{
ulint
i
,
j
;
ulint
i
;
UT_LOW_PRIORITY_CPU
();
UT_LOW_PRIORITY_CPU
();
j
=
0
;
for
(
i
=
0
;
i
<
delay
*
50
;
i
++
)
{
for
(
i
=
0
;
i
<
delay
*
50
;
i
++
)
{
j
+=
i
;
UT_RELAX_CPU
();
UT_RELAX_CPU
();
UT_COMPILER_BARRIER
();
UT_COMPILER_BARRIER
();
}
}
UT_RESUME_PRIORITY_CPU
();
UT_RESUME_PRIORITY_CPU
();
return
(
j
);
}
}
/*************************************************************//**
/*************************************************************//**
...
...
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