Drizzled Public API Documentation
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
ut0rnd.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 ut0rnd_h
28
#define ut0rnd_h
29
30
#include "univ.i"
31
32
#include "
ut0byte.h
"
33
36
#define UT_END_OF_FIELD 257
37
38
/********************************************************/
40
UNIV_INLINE
41
void
42
ut_rnd_set_seed
(
43
/*============*/
44
ulint seed);
45
/********************************************************/
48
UNIV_INLINE
49
ulint
50
ut_rnd_gen_next_ulint
(
51
/*==================*/
52
ulint rnd);
53
/*********************************************************/
59
UNIV_INLINE
60
ulint
61
ut_rnd_gen_ulint
(
void
);
62
/*==================*/
63
/********************************************************/
66
UNIV_INLINE
67
ulint
68
ut_rnd_interval
(
69
/*============*/
70
ulint low,
71
ulint high);
72
/*********************************************************/
75
UNIV_INLINE
76
ibool
77
ut_rnd_gen_ibool
(
void
);
78
/*=================*/
79
/*******************************************************/
84
UNIV_INLINE
85
ulint
86
ut_hash_ulint
(
87
/*==========*/
88
ulint key,
89
ulint table_size);
90
/*************************************************************/
93
UNIV_INLINE
94
ulint
95
ut_fold_ulint_pair
(
96
/*===============*/
97
ulint n1,
98
ulint n2)
99
__attribute__((
const
));
100
/*************************************************************/
103
UNIV_INLINE
104
ulint
105
ut_fold_ull
(
106
/*========*/
107
ib_uint64_t d)
108
__attribute__((
const
));
109
/*************************************************************/
112
UNIV_INLINE
113
ulint
114
ut_fold_string
(
115
/*===========*/
116
const
char
* str)
117
__attribute__((pure));
118
/*************************************************************/
121
UNIV_INLINE
122
ulint
123
ut_fold_binary
(
124
/*===========*/
125
const
byte* str,
126
ulint len)
127
__attribute__((pure));
128
/***********************************************************/
132
UNIV_INTERN
133
ulint
134
ut_find_prime
(
135
/*==========*/
136
ulint n)
137
__attribute__((
const
));
138
139
140
#ifndef UNIV_NONINL
141
#include "ut0rnd.ic"
142
#endif
143
144
#endif
plugin
innobase
include
ut0rnd.h
Generated on Mon Jun 10 2013 09:48:17 for drizzle by
1.8.1.2