From 07e154167cf69e90c2d22d04677163f8f5f13754 Mon Sep 17 00:00:00 2001 From: unknown Date: Thu, 21 Mar 2002 18:24:26 +0200 Subject: sync0rw.ic, ut0byte.ic: Forgot to merge these to 3.23.50 innobase/include/sync0rw.ic: Forgot to merge these to 3.23.50 innobase/include/ut0byte.ic: Forgot to merge these to 3.23.50 --- innobase/include/ut0byte.ic | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'innobase/include/ut0byte.ic') 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 @@ -51,6 +51,20 @@ ut_dulint_get_low( return(d.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 -- cgit v1.2.1