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
d58f43f8
Commit
d58f43f8
authored
Sep 19, 2023
by
Marko Mäkelä
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-21174 fixup: Remove unused ut_bit_set_nth()
This fixes up commit
56f6dab1
parent
6c05edfd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
29 deletions
+0
-29
storage/innobase/include/ut0byte.h
storage/innobase/include/ut0byte.h
+0
-10
storage/innobase/include/ut0byte.inl
storage/innobase/include/ut0byte.inl
+0
-19
No files found.
storage/innobase/include/ut0byte.h
View file @
d58f43f8
...
@@ -101,16 +101,6 @@ ut_bit_get_nth(
...
@@ -101,16 +101,6 @@ ut_bit_get_nth(
/*===========*/
/*===========*/
ulint
a
,
/*!< in: ulint */
ulint
a
,
/*!< in: ulint */
ulint
n
);
/*!< in: nth bit requested */
ulint
n
);
/*!< in: nth bit requested */
/*****************************************************************//**
Sets the nth bit of a ulint.
@return the ulint with the bit set as requested */
UNIV_INLINE
ulint
ut_bit_set_nth
(
/*===========*/
ulint
a
,
/*!< in: ulint */
ulint
n
,
/*!< in: nth bit requested */
ibool
val
);
/*!< in: value for the bit to set */
#include "ut0byte.inl"
#include "ut0byte.inl"
...
...
storage/innobase/include/ut0byte.inl
View file @
d58f43f8
...
@@ -88,22 +88,3 @@ ut_bit_get_nth(
...
@@ -88,22 +88,3 @@ ut_bit_get_nth(
ut_ad(n < 8 * sizeof(ulint));
ut_ad(n < 8 * sizeof(ulint));
return(1 & (a >> n));
return(1 & (a >> n));
}
}
/*****************************************************************//**
Sets the nth bit of a ulint.
@return the ulint with the bit set as requested */
UNIV_INLINE
ulint
ut_bit_set_nth(
/*===========*/
ulint a, /*!< in: ulint */
ulint n, /*!< in: nth bit requested */
ibool val) /*!< in: value for the bit to set */
{
ut_ad(n < 8 * sizeof(ulint));
if (val) {
return(((ulint) 1 << n) | a);
} else {
return(~((ulint) 1 << n) & a);
}
}
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