Set.hh (8229:78bf55f23338) Set.hh (8351:f897d0483b06)
1/*
2 * Copyright (c) 1999-2008 Mark D. Hill and David A. Wood
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

--- 40 unchanged lines hidden (view full) ---

49 // Changed 5/24/05 for static allocation of array
50 // note that "long" corresponds to 32 bits on a 32-bit machine,
51 // 64 bits if the -m64 parameter is passed to g++, which it is
52 // for an AMD opteron under our configuration
53
54 long *m_p_nArray; // an word array to hold the bits in the set
55 long m_p_nArray_Static[NUMBER_WORDS_PER_SET];
56
1/*
2 * Copyright (c) 1999-2008 Mark D. Hill and David A. Wood
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

--- 40 unchanged lines hidden (view full) ---

49 // Changed 5/24/05 for static allocation of array
50 // note that "long" corresponds to 32 bits on a 32-bit machine,
51 // 64 bits if the -m64 parameter is passed to g++, which it is
52 // for an AMD opteron under our configuration
53
54 long *m_p_nArray; // an word array to hold the bits in the set
55 long m_p_nArray_Static[NUMBER_WORDS_PER_SET];
56
57 static const int LONG_BITS = std::numeric_limits::digits;
57 static const int LONG_BITS = std::numeric_limits<long>::digits + 1;
58 static const int INDEX_SHIFT = LONG_BITS == 64 ? 6 : 5;
59 static const int INDEX_MASK = (1 << INDEX_SHIFT) - 1;
60
61 void clearExcess();
62
63 public:
64 Set();
65 Set(int size);

--- 91 unchanged lines hidden ---
58 static const int INDEX_SHIFT = LONG_BITS == 64 ? 6 : 5;
59 static const int INDEX_MASK = (1 << INDEX_SHIFT) - 1;
60
61 void clearExcess();
62
63 public:
64 Set();
65 Set(int size);

--- 91 unchanged lines hidden ---