~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to storage/innobase/include/ut0rnd.h

  • Committer: Brian Aker
  • Date: 2008-09-04 19:31:00 UTC
  • Revision ID: brian@tangent.org-20080904193100-l849hgghfy4urj43
Changing default character set from this point on.

Show diffs side-by-side

added added

removed removed

Lines of Context:
77
77
/*===============*/
78
78
                        /* out: folded value */
79
79
        ulint   n1,     /* in: ulint */
80
 
        ulint   n2)     /* in: ulint */
81
 
        __attribute__((__const__));
 
80
        ulint   n2);    /* in: ulint */
82
81
/*****************************************************************
83
82
Folds a dulint. */
84
83
UNIV_INLINE
86
85
ut_fold_dulint(
87
86
/*===========*/
88
87
                        /* out: folded value */
89
 
        dulint  d)      /* in: dulint */
90
 
        __attribute__((__const__));
 
88
        dulint  d);     /* in: dulint */
91
89
/*****************************************************************
92
90
Folds a character string ending in the null character. */
93
91
UNIV_INLINE
95
93
ut_fold_string(
96
94
/*===========*/
97
95
                                /* out: folded value */
98
 
        const char*     str)    /* in: null-terminated string */
99
 
        __attribute__((pure));
 
96
        const char*     str);   /* in: null-terminated string */
100
97
/*****************************************************************
101
98
Folds a binary string. */
102
99
UNIV_INLINE
105
102
/*===========*/
106
103
                                /* out: folded value */
107
104
        const byte*     str,    /* in: string of bytes */
108
 
        ulint           len)    /* in: length */
109
 
        __attribute__((pure));
 
105
        ulint           len);   /* in: length */
110
106
/***************************************************************
111
107
Looks for a prime number slightly greater than the given argument.
112
108
The prime is chosen so that it is not near any power of 2. */
113
 
UNIV_INTERN
 
109
 
114
110
ulint
115
111
ut_find_prime(
116
112
/*==========*/
117
113
                        /* out: prime */
118
 
        ulint   n)      /* in: positive number > 100 */
119
 
        __attribute__((__const__));
 
114
        ulint    n);     /* in: positive number > 100 */
120
115
 
121
116
 
122
117
#ifndef UNIV_NONINL