Drizzled Public API Documentation

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
43 /*============*/
44  ulint seed);
45 /********************************************************/
48 UNIV_INLINE
49 ulint
51 /*==================*/
52  ulint rnd);
53 /*********************************************************/
59 UNIV_INLINE
60 ulint
61 ut_rnd_gen_ulint(void);
62 /*==================*/
63 /********************************************************/
66 UNIV_INLINE
67 ulint
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
87 /*==========*/
88  ulint key,
89  ulint table_size);
90 /*************************************************************/
93 UNIV_INLINE
94 ulint
96 /*===============*/
97  ulint n1,
98  ulint n2)
99  __attribute__((const));
100 /*************************************************************/
103 UNIV_INLINE
104 ulint
106 /*========*/
107  ib_uint64_t d)
108  __attribute__((const));
109 /*************************************************************/
112 UNIV_INLINE
113 ulint
115 /*===========*/
116  const char* str)
117  __attribute__((pure));
118 /*************************************************************/
121 UNIV_INLINE
122 ulint
124 /*===========*/
125  const byte* str,
126  ulint len)
127  __attribute__((pure));
128 /***********************************************************/
132 UNIV_INTERN
133 ulint
135 /*==========*/
136  ulint n)
137  __attribute__((const));
138 
139 
140 #ifndef UNIV_NONINL
141 #include "ut0rnd.ic"
142 #endif
143 
144 #endif