Drizzled Public API Documentation

ut0byte.h
Go to the documentation of this file.
1 /*****************************************************************************
2 
3 Copyright (C) 1994, 2009, Innobase Oy. 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., 51 Franklin
15 St, Fifth Floor, Boston, MA 02110-1301 USA
16 
17 *****************************************************************************/
18 
19 /******************************************************************/
26 #pragma once
27 #ifndef ut0byte_h
28 #define ut0byte_h
29 
30 
31 
32 #include "univ.i"
33 
34 /*******************************************************/
37 UNIV_INLINE
38 ib_uint64_t
40 /*==========*/
41  ulint high,
42  ulint low)
43  __attribute__((const));
44 
45 /********************************************************/
48 UNIV_INLINE
49 ib_uint64_t
51 /*=================*/
52  ib_uint64_t n,
53  ulint align_no);
55 /********************************************************/
58 UNIV_INLINE
59 ib_uint64_t
61 /*===============*/
62  ib_uint64_t n,
63  ulint align_no);
65 /*********************************************************/
68 UNIV_INLINE
69 void*
70 ut_align(
71 /*=====*/
72  const void* ptr,
73  ulint align_no);
74 /*********************************************************/
78 UNIV_INLINE
79 void*
81 /*==========*/
82  const void* ptr,
83  ulint align_no)
84  __attribute__((const));
85 /*********************************************************/
89 UNIV_INLINE
90 ulint
92 /*============*/
93  const void* ptr,
94  ulint align_no)
95  __attribute__((const));
96 /*****************************************************************/
99 UNIV_INLINE
100 ibool
102 /*===========*/
103  ulint a,
104  ulint n);
105 /*****************************************************************/
108 UNIV_INLINE
109 ulint
111 /*===========*/
112  ulint a,
113  ulint n,
114  ibool val);
116 #ifndef UNIV_NONINL
117 #include "ut0byte.ic"
118 #endif
119 
120 #endif