InnoDB Plugin  1.0
ut0byte.h
Go to the documentation of this file.
1 /*****************************************************************************
2 
3 Copyright (c) 1994, 2009, Oracle and/or its affiliates. All Rights Reserved.
4 
5 This program is free software; you can redistribute it and/or modify it under
6 the terms of the GNU General Public License as published by the Free Software
7 Foundation; version 2 of the License.
8 
9 This program is distributed in the hope that it will be useful, but WITHOUT
10 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11 FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
12 
13 You should have received a copy of the GNU General Public License along with
14 this program; if not, write to the Free Software Foundation, Inc.,
15 51 Franklin Street, Suite 500, Boston, MA 02110-1335 USA
16 
17 *****************************************************************************/
18 
19 /******************************************************************/
26 #ifndef ut0byte_h
27 #define ut0byte_h
28 
29 
30 
31 #include "univ.i"
32 
33 /*******************************************************/
36 UNIV_INLINE
37 ib_uint64_t
39 /*==========*/
40  ulint high,
41  ulint low)
42  __attribute__((const));
43 
44 /********************************************************/
47 UNIV_INLINE
48 ib_uint64_t
50 /*=================*/
51  ib_uint64_t n,
52  ulint align_no);
54 /********************************************************/
57 UNIV_INLINE
58 ib_uint64_t
60 /*===============*/
61  ib_uint64_t n,
62  ulint align_no);
64 /*********************************************************/
67 UNIV_INLINE
68 void*
69 ut_align(
70 /*=====*/
71  const void* ptr,
72  ulint align_no);
73 /*********************************************************/
77 UNIV_INLINE
78 void*
80 /*==========*/
81  const void* ptr,
82  ulint align_no)
83  __attribute__((const));
84 /*********************************************************/
88 UNIV_INLINE
89 ulint
91 /*============*/
92  const void* ptr,
93  ulint align_no)
94  __attribute__((const));
95 /*****************************************************************/
98 UNIV_INLINE
99 ibool
101 /*===========*/
102  ulint a,
103  ulint n);
104 /*****************************************************************/
107 UNIV_INLINE
108 ulint
110 /*===========*/
111  ulint a,
112  ulint n,
113  ibool val);
115 #ifndef UNIV_NONINL
116 #include "ut0byte.ic"
117 #endif
118 
119 #endif