~drizzle-trunk/drizzle/development

« back to all changes in this revision

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

  • Committer: Monty Taylor
  • Date: 2009-03-08 23:45:12 UTC
  • mto: (923.2.1 mordred)
  • mto: This revision was merged to the branch mainline in revision 921.
  • Revision ID: mordred@inaugust.com-20090308234512-tqkygxtu1iaig23s
Removed C99 isnan() usage, which allows us to remove the util/math.{cc,h} workarounds. Yay for standards!

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., 51 Franklin
15
 
St, Fifth Floor, Boston, MA 02110-1301 USA
16
 
 
17
 
*****************************************************************************/
18
 
 
19
 
/***************************************************************//**
20
 
@file ut/ut0byte.c
 
1
/*******************************************************************
21
2
Byte utilities
22
3
 
 
4
(c) 1994, 1995 Innobase Oy
 
5
 
23
6
Created 5/11/1994 Heikki Tuuri
24
7
********************************************************************/
25
8
 
28
11
#ifdef UNIV_NONINL
29
12
#include "ut0byte.ic"
30
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 */