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; --- 73 unchanged lines hidden (view full) --- 82 void 83 add(NodeID index) 84 { 85 m_p_nArray[index >> INDEX_SHIFT] |= 86 (((unsigned long) 1) << (index & INDEX_MASK)); 87 } 88 89 void addSet(const Set& set); |
90 91 void 92 remove(NodeID index) 93 { 94 m_p_nArray[index >> INDEX_SHIFT] &= 95 ~(((unsigned long)1) << (index & INDEX_MASK)); 96 } 97 --- 69 unchanged lines hidden --- |