Home
last modified time | relevance | path

Searched refs:other (Results 1 – 25 of 615) sorted by relevance

12345678910>>...25

/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/
Dfunctools.py56 '__lt__': [('__gt__', lambda self, other: not (self < other or self == other)),
57 ('__le__', lambda self, other: self < other or self == other),
58 ('__ge__', lambda self, other: not self < other)],
59 '__le__': [('__ge__', lambda self, other: not self <= other or self == other),
60 ('__lt__', lambda self, other: self <= other and not self == other),
61 ('__gt__', lambda self, other: not self <= other)],
62 '__gt__': [('__lt__', lambda self, other: not (self > other or self == other)),
63 ('__ge__', lambda self, other: self > other or self == other),
64 ('__le__', lambda self, other: not self > other)],
65 '__ge__': [('__le__', lambda self, other: (not self >= other) or self == other),
[all …]
Dsets.py113 def __cmp__(self, other): argument
131 def __eq__(self, other): argument
132 if isinstance(other, BaseSet):
133 return self._data == other._data
137 def __ne__(self, other): argument
138 if isinstance(other, BaseSet):
139 return self._data != other._data
178 def __or__(self, other): argument
183 if not isinstance(other, BaseSet):
185 return self.union(other)
[all …]
DUserList.py17 def __lt__(self, other): return self.data < self.__cast(other) argument
18 def __le__(self, other): return self.data <= self.__cast(other) argument
19 def __eq__(self, other): return self.data == self.__cast(other) argument
20 def __ne__(self, other): return self.data != self.__cast(other) argument
21 def __gt__(self, other): return self.data > self.__cast(other) argument
22 def __ge__(self, other): return self.data >= self.__cast(other) argument
23 def __cast(self, other): argument
24 if isinstance(other, UserList): return other.data
25 else: return other
26 def __cmp__(self, other): argument
[all …]
Dnumbers.py73 def __add__(self, other): argument
78 def __radd__(self, other): argument
92 def __sub__(self, other): argument
94 return self + -other
96 def __rsub__(self, other): argument
98 return -self + other
101 def __mul__(self, other): argument
106 def __rmul__(self, other): argument
111 def __div__(self, other): argument
119 def __rdiv__(self, other): argument
[all …]
D_weakrefset.py116 def update(self, other): argument
119 if isinstance(other, self.__class__):
120 self.data.update(other.data)
122 for element in other:
125 def __ior__(self, other): argument
126 self.update(other)
130 def _apply(self, other, method): argument
131 if not isinstance(other, self.__class__):
132 other = self.__class__(other)
133 newdata = method(other.data)
[all …]
D_abcoll.py149 def __le__(self, other): argument
150 if not isinstance(other, Set):
152 if len(self) > len(other):
155 if elem not in other:
159 def __lt__(self, other): argument
160 if not isinstance(other, Set):
162 return len(self) < len(other) and self.__le__(other)
164 def __gt__(self, other): argument
165 if not isinstance(other, Set):
167 return other < self
[all …]
Ddecimal.py728 def _check_nans(self, other=None, context=None): argument
739 if other is None:
742 other_is_nan = other._isnan()
753 other)
757 return other._fix_nan(context)
760 def _compare_check_nans(self, other, context): argument
774 if self._is_special or other._is_special:
779 elif other.is_snan():
782 other)
787 elif other.is_qnan():
[all …]
Dtabnanny.py207 def equal(self, other): argument
208 return self.norm == other.norm
214 def not_equal_witness(self, other): argument
216 other.longest_run_of_spaces()) + 1
219 if self.indent_level(ts) != other.indent_level(ts):
222 other.indent_level(ts)) )
238 def less(self, other): argument
239 if self.n >= other.n:
241 if self.is_simple and other.is_simple:
242 return self.nt <= other.nt
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Lib/
Dfunctools.py56 '__lt__': [('__gt__', lambda self, other: not (self < other or self == other)),
57 ('__le__', lambda self, other: self < other or self == other),
58 ('__ge__', lambda self, other: not self < other)],
59 '__le__': [('__ge__', lambda self, other: not self <= other or self == other),
60 ('__lt__', lambda self, other: self <= other and not self == other),
61 ('__gt__', lambda self, other: not self <= other)],
62 '__gt__': [('__lt__', lambda self, other: not (self > other or self == other)),
63 ('__ge__', lambda self, other: self > other or self == other),
64 ('__le__', lambda self, other: not self > other)],
65 '__ge__': [('__le__', lambda self, other: (not self >= other) or self == other),
[all …]
Dnumbers.py73 def __add__(self, other): argument
78 def __radd__(self, other): argument
92 def __sub__(self, other): argument
94 return self + -other
96 def __rsub__(self, other): argument
98 return -self + other
101 def __mul__(self, other): argument
106 def __rmul__(self, other): argument
111 def __div__(self, other): argument
119 def __rdiv__(self, other): argument
[all …]
D_weakrefset.py118 def update(self, other): argument
121 for element in other:
124 def __ior__(self, other): argument
125 self.update(other)
128 def difference(self, other): argument
130 newset.difference_update(other)
134 def difference_update(self, other): argument
135 self.__isub__(other)
136 def __isub__(self, other): argument
139 if self is other:
[all …]
D_abcoll.py150 def __le__(self, other): argument
151 if not isinstance(other, Set):
153 if len(self) > len(other):
156 if elem not in other:
160 def __lt__(self, other): argument
161 if not isinstance(other, Set):
163 return len(self) < len(other) and self.__le__(other)
165 def __gt__(self, other): argument
166 if not isinstance(other, Set):
168 return len(self) > len(other) and self.__ge__(other)
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/
Dtest_binop.py86 def __add__(self, other): argument
88 if isint(other):
89 other = Rat(other)
90 if isRat(other):
91 return Rat(self.__num*other.__den + other.__num*self.__den,
92 self.__den*other.__den)
93 if isnum(other):
94 return float(self) + other
99 def __sub__(self, other): argument
101 if isint(other):
[all …]
Dtest_coercion.py14 def __coerce__(self, other): argument
15 if isinstance(other, CoerceNumber):
16 return self.arg, other.arg
18 return (self.arg, other)
24 def __coerce__(self, other): argument
25 if isinstance(other, CoerceTo):
26 return self.arg, other.arg
28 return self.arg, other
39 def __add__(self,other): argument
40 return self.arg + other
[all …]
Dtest_richcmp.py13 def __lt__(self, other): argument
14 return self.x < other
16 def __le__(self, other): argument
17 return self.x <= other
19 def __eq__(self, other): argument
20 return self.x == other
22 def __ne__(self, other): argument
23 return self.x != other
25 def __gt__(self, other): argument
26 return self.x > other
[all …]
/device/google/cuttlefish/common/libs/time/
Dmonotonic_time.h67 TimeDifference operator+(const TimeDifference& other) const {
69 ret.tv_nsec = (ts_.tv_nsec + other.ts_.tv_nsec) % 1000000000;
70 ret.tv_sec = (ts_.tv_sec + other.ts_.tv_sec) +
71 (ts_.tv_nsec + other.ts_.tv_nsec) / 1000000000;
72 return TimeDifference(ret, scale_ < other.scale_ ? scale_: other.scale_);
75 TimeDifference operator-(const TimeDifference& other) const {
79 ret.tv_nsec = (1000000000 + ts_.tv_nsec - other.ts_.tv_nsec) % 1000000000;
80 ret.tv_sec = (ts_.tv_sec - other.ts_.tv_sec) -
81 (ts_.tv_nsec < other.ts_.tv_nsec ? 1 : 0);
82 return TimeDifference(ret, scale_ < other.scale_ ? scale_: other.scale_);
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Demo/classes/
DComplex.py160 def __cmp__(self, other): argument
161 other = ToComplex(other)
162 return cmp((self.re, self.im), (other.re, other.im))
164 def __rcmp__(self, other): argument
165 other = ToComplex(other)
166 return cmp(other, self)
178 def __add__(self, other): argument
179 other = ToComplex(other)
180 return Complex(self.re + other.re, self.im + other.im)
184 def __sub__(self, other): argument
[all …]
/device/generic/goldfish-opengl/android-emu/android/base/
DAlignedBuf.h44 AlignedBuf(const AlignedBuf& other) : AlignedBuf(other.mSize) { in AlignedBuf() argument
45 if (other.mBuffer) { // could have got moved out in AlignedBuf()
46 std::copy(other.mBuffer, other.mBuffer + other.mSize, mBuffer); in AlignedBuf()
50 AlignedBuf& operator=(const AlignedBuf& other) {
51 if (this != &other) {
52 AlignedBuf tmp(other);
58 AlignedBuf(AlignedBuf&& other) { *this = std::move(other); } in AlignedBuf() argument
60 AlignedBuf& operator=(AlignedBuf&& other) {
61 mBuffer = other.mBuffer;
62 mSize = other.mSize;
[all …]
DOptional.h195 Optional(const Optional& other) : base_flag(other.constructed()) { in Optional() argument
197 new (&get()) T(other.get()); in Optional()
200 Optional(Optional&& other) : base_flag(other.constructed()) { in Optional() argument
202 new (&get()) T(std::move(other.get())); in Optional()
210 Optional(const Optional<U>& other) : base_flag(other.constructed()) { in Optional() argument
212 new (&get()) T(other.get()); in Optional()
220 Optional(Optional<U>&& other) : base_flag(other.constructed()) { in Optional() argument
222 new (&get()) T(std::move(other.get())); in Optional()
246 Optional& operator=(const Optional& other) {
247 if (&other == this) {
[all …]
DStringView.h74 constexpr StringView(const StringView& other) : in StringView() argument
75 mString(other.data()), mSize(other.size()) {} in StringView()
157 void set(const StringView& other) { in set() argument
158 mString = other.mString; in set()
159 mSize = other.mSize; in set()
163 int compare(const StringView& other) const;
165 StringView& operator=(const StringView& other) {
166 set(other);
172 size_t find(StringView other, size_t off = 0) {
174 if (!other.mSize) return 0;
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/distutils/
Dversion.py136 def __cmp__ (self, other): argument
137 if isinstance(other, StringType):
138 other = StrictVersion(other)
140 compare = cmp(self.version, other.version)
148 if (not self.prerelease and not other.prerelease):
150 elif (self.prerelease and not other.prerelease):
152 elif (not self.prerelease and other.prerelease):
154 elif (self.prerelease and other.prerelease):
155 return cmp(self.prerelease, other.prerelease)
292 def __cmp__ (self, other): argument
[all …]
/device/generic/goldfish-opengl/android-emu/android/base/containers/
DSmallVector.h325 SmallFixedVector(const SmallFixedVector& other) in SmallFixedVector() argument
326 : SmallFixedVector(other.begin(), other.end()) {} in SmallFixedVector()
328 SmallFixedVector(SmallFixedVector&& other) { in SmallFixedVector() argument
329 if (other.isAllocated()) { in SmallFixedVector()
331 this->mBegin = other.mBegin; in SmallFixedVector()
332 this->mEnd = other.mEnd; in SmallFixedVector()
333 this->mCapacity = other.mCapacity; in SmallFixedVector()
334 other.init_inplace(); in SmallFixedVector()
339 std::make_move_iterator(other.begin()), in SmallFixedVector()
340 std::make_move_iterator(other.end()), this->begin()); in SmallFixedVector()
[all …]
/device/generic/goldfish-opengl/shared/GoldfishAddressSpace/
Dgoldfish_address_space.cpp24 void GoldfishAddressSpaceBlock::replace(GoldfishAddressSpaceBlock *other) in replace() argument
28 if (other) { in replace()
29 *this = *other; in replace()
30 *other = GoldfishAddressSpaceBlock(); in replace()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Objects/
Dsetobject.c651 PySetObject *other; in set_merge() local
660 other = (PySetObject*)otherset; in set_merge()
661 if (other == so || other->used == 0) in set_merge()
668 if ((so->fill + other->used)*3 >= (so->mask+1)*2) { in set_merge()
669 if (set_table_resize(so, (so->used + other->used)*2) != 0) in set_merge()
672 for (i = 0; i <= other->mask; i++) { in set_merge()
673 entry = &other->table[i]; in set_merge()
932 set_update_internal(PySetObject *so, PyObject *other) in set_update_internal() argument
936 if (PyAnySet_Check(other)) in set_update_internal()
937 return set_merge(so, other); in set_update_internal()
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Objects/
Dsetobject.c650 PySetObject *other; in set_merge() local
659 other = (PySetObject*)otherset; in set_merge()
660 if (other == so || other->used == 0) in set_merge()
667 if ((so->fill + other->used)*3 >= (so->mask+1)*2) { in set_merge()
668 if (set_table_resize(so, (so->used + other->used)*2) != 0) in set_merge()
671 for (i = 0; i <= other->mask; i++) { in set_merge()
672 entry = &other->table[i]; in set_merge()
931 set_update_internal(PySetObject *so, PyObject *other) in set_update_internal() argument
935 if (PyAnySet_Check(other)) in set_update_internal()
936 return set_merge(so, other); in set_update_internal()
[all …]

12345678910>>...25