~ubuntu-branches/ubuntu/precise/mysql-5.1/precise

« back to all changes in this revision

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

  • Committer: Bazaar Package Importer
  • Author(s): Norbert Tretkowski
  • Date: 2010-03-17 14:56:02 UTC
  • Revision ID: james.westby@ubuntu.com-20100317145602-x7e30l1b2sb5s6w6
Tags: upstream-5.1.45
ImportĀ upstreamĀ versionĀ 5.1.45

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*******************************************************************
 
2
Byte utilities
 
3
 
 
4
(c) 1994, 1995 Innobase Oy
 
5
 
 
6
Created 5/11/1994 Heikki Tuuri
 
7
********************************************************************/
 
8
 
 
9
#include "ut0byte.h"
 
10
 
 
11
#ifdef UNIV_NONINL
 
12
#include "ut0byte.ic"
 
13
#endif
 
14
 
 
15
#include "ut0sort.h"
 
16
 
 
17
/* Zero value for a dulint */
 
18
dulint  ut_dulint_zero          = {0, 0};
 
19
 
 
20
/* Maximum value for a dulint */
 
21
dulint  ut_dulint_max           = {0xFFFFFFFFUL, 0xFFFFFFFFUL};
 
22
 
 
23
/****************************************************************
 
24
Sort function for dulint arrays. */
 
25
void
 
26
ut_dulint_sort(dulint* arr, dulint* aux_arr, ulint low, ulint high)
 
27
/*===============================================================*/
 
28
{
 
29
        UT_SORT_FUNCTION_BODY(ut_dulint_sort, arr, aux_arr, low, high,
 
30
                              ut_dulint_cmp);
 
31
}