Drizzled Public API Documentation
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
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
39
ut_ull_create
(
40
/*==========*/
41
ulint high,
42
ulint low)
43
__attribute__((
const
));
44
45
/********************************************************/
48
UNIV_INLINE
49
ib_uint64_t
50
ut_uint64_align_down
(
51
/*=================*/
52
ib_uint64_t n,
53
ulint align_no);
55
/********************************************************/
58
UNIV_INLINE
59
ib_uint64_t
60
ut_uint64_align_up
(
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
*
80
ut_align_down
(
81
/*==========*/
82
const
void
* ptr,
83
ulint align_no)
84
__attribute__((
const
));
85
/*********************************************************/
89
UNIV_INLINE
90
ulint
91
ut_align_offset
(
92
/*============*/
93
const
void
* ptr,
94
ulint align_no)
95
__attribute__((
const
));
96
/*****************************************************************/
99
UNIV_INLINE
100
ibool
101
ut_bit_get_nth
(
102
/*===========*/
103
ulint a,
104
ulint n);
105
/*****************************************************************/
108
UNIV_INLINE
109
ulint
110
ut_bit_set_nth
(
111
/*===========*/
112
ulint a,
113
ulint n,
114
ibool val);
116
#ifndef UNIV_NONINL
117
#include "ut0byte.ic"
118
#endif
119
120
#endif
plugin
innobase
include
ut0byte.h
Generated on Tue Oct 29 2013 17:05:47 for drizzle by
1.8.4