File: int.defs.h

package info (click to toggle)
ns2 2.35%2Bdfsg-3.1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 78,808 kB
  • sloc: cpp: 172,923; tcl: 107,130; perl: 6,391; sh: 6,143; ansic: 5,846; makefile: 816; awk: 525; csh: 355
file content (23 lines) | stat: -rw-r--r-- 896 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// -*- C++ -*-

#define DEFAULT_INITIAL_CAPACITY 8
//     The initial capacity for containers (e.g., hash tables) that
//     require an initial capacity argument for constructors.  Default:
//     100

#define intEQ(a, b) ((a)==(b))
//     return true if a is considered equal to b for the purposes of
//     locating, etc., an element in a container.  Default: (a == b)

#define intLE(a, b) ((a)<=(b))
//     return true if a is less than or equal to b Default: (a <= b)

#define intCMP(a, b) (((a) <= (b))? ((a)==(b))? 0 : -1 : 1)
//     return an integer < 0 if a<b, 0 if a==b, or > 0 if a>b.  Default:
//     (a <= b)? (a==b)? 0 : -1 : 1

#define intHASH(a) (a)
//     return an unsigned integer representing the hash of a.  Default:
//     hash(a) ; where extern unsigned int hash(<T&>).  (note: several
//     useful hash functions are declared in builtin.h and defined in
//     hash.cc)