• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/amule/aMule-2.3.1/src/kademlia/utils/

Lines Matching defs:value

52 	CUInt128(const CUInt128& value) throw()
54 SetValue(value);
62 explicit CUInt128(uint32_t value) throw()
64 SetValue(value);
73 * Generates a new number, copying the most significant 'numBits' bits from 'value'.
76 CUInt128(const CUInt128& value, uint32_t numBits);
85 int CompareTo(uint32_t value) const throw();
96 void Set32BitChunk(unsigned chunk, uint32_t value)
100 m_data[chunk] = value;
103 CUInt128& SetValue(const CUInt128& value) throw()
105 m_data[0] = value.m_data[0];
106 m_data[1] = value.m_data[1];
107 m_data[2] = value.m_data[2];
108 m_data[3] = value.m_data[3];
112 CUInt128& SetValue(uint32_t value) throw()
115 m_data[3] = value;
122 * Stores value used by the crypt functions.
124 * Since eMule started to use the value as-is (four little-endian 32-bit integers in big-endian order),
127 * @param buf Buffer to hold the value. Must be large enough to hold the data (16 bytes at least),
133 CUInt128& SetBitNumber(unsigned bit, unsigned value)
137 if (value)
147 CUInt128& Add(const CUInt128& value) throw();
148 CUInt128& Add(uint32_t value) throw()
150 return value ? Add(CUInt128(value)) : *this;
153 CUInt128& Subtract(const CUInt128& value) throw();
154 CUInt128& Subtract(uint32_t value) throw()
156 return value ? Subtract(CUInt128(value)) : *this;
159 CUInt128& XOR(const CUInt128& value) throw()
161 m_data[0] ^= value.m_data[0];
162 m_data[1] ^= value.m_data[1];
163 m_data[2] ^= value.m_data[2];
164 m_data[3] ^= value.m_data[3];
170 bool operator< (const CUInt128& value) const throw() {return (CompareTo(value) < 0);}
171 bool operator> (const CUInt128& value) const throw() {return (CompareTo(value) > 0);}
172 bool operator<= (const CUInt128& value) const throw() {return (CompareTo(value) <= 0);}
173 bool operator>= (const CUInt128& value) const throw() {return (CompareTo(value) >= 0);}
174 bool operator== (const CUInt128& value) const throw() {return (CompareTo(value) == 0);}
175 bool operator!= (const CUInt128& value) const throw() {return (CompareTo(value) != 0);}
177 CUInt128& operator= (const CUInt128& value) throw() { return SetValue(value); }
178 CUInt128& operator+=(const CUInt128& value) throw() { return Add(value); }
179 CUInt128& operator-=(const CUInt128& value) throw() { return Subtract(value); }
180 CUInt128& operator^=(const CUInt128& value) throw() { return XOR(value); }
181 CUInt128 operator+ (const CUInt128& value) const throw() { return CUInt128(*this).Add(value); }
182 CUInt128 operator- (const CUInt128& value) const throw() { return CUInt128(*this).Subtract(value); }
183 CUInt128 operator^ (const CUInt128& value) const throw() { return CUInt128(*this).XOR(value); }
185 bool operator< (uint32_t value) const throw() {return (CompareTo(value) < 0);}
186 bool operator> (uint32_t value) const throw() {return (CompareTo(value) > 0);}
187 bool operator<= (uint32_t value) const throw() {return (CompareTo(value) <= 0);}
188 bool operator>= (uint32_t value) const throw() {return (CompareTo(value) >= 0);}
189 bool operator== (uint32_t value) const throw() {return (CompareTo(value) == 0);}
190 bool operator!= (uint32_t value) const throw() {return (CompareTo(value) != 0);}
192 CUInt128& operator= (uint32_t value) throw() { return SetValue(value); }
193 CUInt128& operator+=(uint32_t value) throw() { return Add(value); }
194 CUInt128& operator-=(uint32_t value) throw() { return Subtract(value); }
195 CUInt128& operator^=(uint32_t value) throw() { return value ? XOR(CUInt128(value)) : *this; }
196 CUInt128 operator+ (uint32_t value) const throw() { return CUInt128(*this).Add(value); }
197 CUInt128 operator- (uint32_t value) const throw() { return CUInt128(*this).Subtract(value); }
198 CUInt128 operator^ (uint32_t value) const throw() { return value ? CUInt128(*this).XOR(CUInt128(value)) : *this; }