~percona-dev/percona-innodb-plugin/percona-innodb-1.0

« back to all changes in this revision

Viewing changes to ut/ut0byte.c

  • Committer: Vadim Tkachenko
  • Date: 2008-12-01 02:05:57 UTC
  • Revision ID: vadim@percona.com-20081201020557-p7k2m94mjtdg1a83
New rw-locks

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
/* Zero value for a dulint */
 
16
UNIV_INTERN const dulint        ut_dulint_zero  = {0, 0};
 
17
 
 
18
/* Maximum value for a dulint */
 
19
UNIV_INTERN const dulint        ut_dulint_max   = {0xFFFFFFFFUL, 0xFFFFFFFFUL};
 
20
 
 
21
#ifdef notdefined /* unused code */
 
22
#include "ut0sort.h"
 
23
 
 
24
/****************************************************************
 
25
Sort function for dulint arrays. */
 
26
UNIV_INTERN
 
27
void
 
28
ut_dulint_sort(dulint* arr, dulint* aux_arr, ulint low, ulint high)
 
29
/*===============================================================*/
 
30
{
 
31
        UT_SORT_FUNCTION_BODY(ut_dulint_sort, arr, aux_arr, low, high,
 
32
                              ut_dulint_cmp);
 
33
}
 
34
#endif /* notdefined */