Commit d58f43f8 authored by Marko Mäkelä's avatar Marko Mäkelä

MDEV-21174 fixup: Remove unused ut_bit_set_nth()

This fixes up commit 56f6dab1
parent 6c05edfd
...@@ -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"
......
...@@ -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);
}
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment