diff options
Diffstat (limited to 'innobase/include/ut0byte.ic')
-rw-r--r-- | innobase/include/ut0byte.ic | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/innobase/include/ut0byte.ic b/innobase/include/ut0byte.ic index b8170392c8f..f0df9cc35a3 100644 --- a/innobase/include/ut0byte.ic +++ b/innobase/include/ut0byte.ic @@ -52,6 +52,20 @@ ut_dulint_get_low( } /*********************************************************** +Converts a dulint (a struct of 2 ulints) to ib_longlong, which is a 64-bit +integer type. */ +UNIV_INLINE +ib_longlong +ut_conv_dulint_to_longlong( +/*=======================*/ + /* out: value in ib_longlong type */ + dulint d) /* in: dulint */ +{ + return((ib_longlong)d.low + + (((ib_longlong)d.high) << 32)); +} + +/*********************************************************** Tests if a dulint is zero. */ UNIV_INLINE ibool |