2005-10-27 07:29:40 +00:00
|
|
|
/*******************************************************************
|
|
|
|
Byte utilities
|
|
|
|
|
|
|
|
(c) 1994, 1995 Innobase Oy
|
|
|
|
|
|
|
|
Created 5/11/1994 Heikki Tuuri
|
|
|
|
********************************************************************/
|
|
|
|
|
|
|
|
#include "ut0byte.h"
|
|
|
|
|
|
|
|
#ifdef UNIV_NONINL
|
|
|
|
#include "ut0byte.ic"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/* Zero value for a dulint */
|
2006-02-23 19:25:29 +00:00
|
|
|
dulint ut_dulint_zero = {0, 0};
|
2005-10-27 07:29:40 +00:00
|
|
|
|
|
|
|
/* Maximum value for a dulint */
|
2006-02-23 19:25:29 +00:00
|
|
|
dulint ut_dulint_max = {0xFFFFFFFFUL, 0xFFFFFFFFUL};
|
2005-10-27 07:29:40 +00:00
|
|
|
|
2006-08-15 14:28:09 +00:00
|
|
|
#ifdef notdefined /* unused code */
|
|
|
|
#include "ut0sort.h"
|
|
|
|
|
2005-10-27 07:29:40 +00:00
|
|
|
/****************************************************************
|
|
|
|
Sort function for dulint arrays. */
|
|
|
|
void
|
|
|
|
ut_dulint_sort(dulint* arr, dulint* aux_arr, ulint low, ulint high)
|
|
|
|
/*===============================================================*/
|
|
|
|
{
|
2007-05-24 13:14:57 +00:00
|
|
|
#define ut_dulint_sort_ctx(c,a,aux,lo,hi) ut_dulint_sort(a,aux,lo,hi)
|
|
|
|
#define ut_dulint_cmp_ctx(c,a,b) ut_dulint_cmp(a,b)
|
|
|
|
|
|
|
|
UT_SORT_FUNCTION_BODY(ut_dulint_sort_ctx,, arr, aux_arr, low, high,
|
|
|
|
ut_dulint_cmp_ctx);
|
2005-10-27 07:29:40 +00:00
|
|
|
}
|
2006-08-15 14:28:09 +00:00
|
|
|
#endif /* notdefined */
|