~ubuntu-branches/ubuntu/saucy/drizzle/saucy-proposed

« back to all changes in this revision

Viewing changes to plugin/innobase/ut/ut0byte.c

  • Committer: Bazaar Package Importer
  • Author(s): Monty Taylor
  • Date: 2010-03-18 12:12:31 UTC
  • Revision ID: james.westby@ubuntu.com-20100318121231-k6g1xe6cshbwa0f8
Tags: upstream-2010.03.1347
ImportĀ upstreamĀ versionĀ 2010.03.1347

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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., 59 Temple
 
15
Place, Suite 330, Boston, MA 02111-1307 USA
 
16
 
 
17
*****************************************************************************/
 
18
 
 
19
/***************************************************************//**
 
20
@file ut/ut0byte.c
 
21
Byte utilities
 
22
 
 
23
Created 5/11/1994 Heikki Tuuri
 
24
********************************************************************/
 
25
 
 
26
#include "ut0byte.h"
 
27
 
 
28
#ifdef UNIV_NONINL
 
29
#include "ut0byte.ic"
 
30
#endif
 
31
 
 
32
/** Zero value for a dulint */
 
33
UNIV_INTERN const dulint        ut_dulint_zero  = {0, 0};
 
34
 
 
35
/** Maximum value for a dulint */
 
36
UNIV_INTERN const dulint        ut_dulint_max   = {0xFFFFFFFFUL, 0xFFFFFFFFUL};
 
37
 
 
38
#ifdef notdefined /* unused code */
 
39
#include "ut0sort.h"
 
40
 
 
41
/************************************************************//**
 
42
Sort function for dulint arrays. */
 
43
UNIV_INTERN
 
44
void
 
45
ut_dulint_sort(
 
46
/*===========*/
 
47
        dulint* arr,    /*!< in/out: array to be sorted */
 
48
        dulint* aux_arr,/*!< in/out: auxiliary array (same size as arr) */
 
49
        ulint   low,    /*!< in: low bound of sort interval, inclusive */
 
50
        ulint   high)   /*!< in: high bound of sort interval, noninclusive */
 
51
{
 
52
        UT_SORT_FUNCTION_BODY(ut_dulint_sort, arr, aux_arr, low, high,
 
53
                              ut_dulint_cmp);
 
54
}
 
55
#endif /* notdefined */