VirtualBox

source: vbox/trunk/src/VBox/Runtime/table/avlhcphys.cpp@ 1

Last change on this file since 1 was 1, checked in by vboxsync, 55 years ago

import

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.6 KB
Line 
1/* $Id: avlhcphys.cpp 1 1970-01-01 00:00:00Z vboxsync $ */
2/** @file
3 * InnoTek Portable Runtime - AVL tree, RTHCPHYS, unique keys.
4 */
5
6/*
7 * Copyright (C) 2001-2004 knut st. osmundsen (bird-src-spam@anduin.net)
8 * Copyright (C) 2006 InnoTek Systemberatung GmbH
9 *
10 * This file is part of VirtualBox Open Source Edition (OSE), as
11 * available from http://www.virtualbox.org. This file is free software;
12 * you can redistribute it and/or modify it under the terms of the GNU
13 * General Public License as published by the Free Software Foundation,
14 * in version 2 as it comes in the "COPYING" file of the VirtualBox OSE
15 * distribution. VirtualBox OSE is distributed in the hope that it will
16 * be useful, but WITHOUT ANY WARRANTY of any kind.
17 *
18 * If you received this file as part of a commercial VirtualBox
19 * distribution, then only the terms of your commercial VirtualBox
20 * license agreement apply instead of the previous paragraph.
21 */
22
23#ifndef NOFILEID
24static const char szFileId[] = "Id: kAVLULInt.c,v 1.4 2003/02/13 02:02:38 bird Exp $";
25#endif
26
27/*******************************************************************************
28* Defined Constants And Macros *
29*******************************************************************************/
30/*
31 * AVL configuration.
32 */
33#define KAVL_FN(a) RTAvlHCPhys##a
34#define KAVL_MAX_STACK 27 /* Up to 2^24 nodes. */
35#define KAVL_CHECK_FOR_EQUAL_INSERT 1 /* No duplicate keys! */
36#define KAVLNODECORE AVLHCPHYSNODECORE
37#define PKAVLNODECORE PAVLHCPHYSNODECORE
38#define PPKAVLNODECORE PPAVLHCPHYSNODECORE
39#define KAVLKEY RTHCPHYS
40#define PKAVLKEY PRTHCPHYS
41#define KAVLENUMDATA AVLHCPHYSENUMDATA
42#define PKAVLENUMDATA PAVLHCPHYSENUMDATA
43#define PKAVLCALLBACK PAVLHCPHYSCALLBACK
44
45
46/*
47 * AVL Compare macros
48 */
49#define KAVL_G( key1, key2) ( (key1) > (key2) )
50#define KAVL_E( key1, key2) ( (key1) == (key2) )
51#define KAVL_NE(key1, key2) ( (key1) != (key2) )
52
53
54/*******************************************************************************
55* Header Files *
56*******************************************************************************/
57#include <iprt/avl.h>
58#include <iprt/assert.h>
59
60/*
61 * Include the code.
62 */
63#define SSToDS(ptr) ptr
64#define KMAX RT_MAX
65#define kASSERT Assert
66#include "avl_Base.cpp.h"
67#include "avl_Get.cpp.h"
68#include "avl_DoWithAll.cpp.h"
69#include "avl_GetBestFit.cpp.h"
70#include "avl_RemoveBestFit.cpp.h"
71#include "avl_Destroy.cpp.h"
72
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette