/dports/www/firefox-legacy/firefox-52.8.0esr/mfbt/ |
H A D | CheckedInt.h | 403 static CheckedInt<T> negate(const CheckedInt<T>& aVal) 414 static CheckedInt<T> negate(const CheckedInt<T>& aVal) 574 friend CheckedInt<U> operator +(const CheckedInt<U>& aLhs, 578 CheckedInt& operator +=(const CheckedInt<T>& aRhs); 581 friend CheckedInt<U> operator -(const CheckedInt<U>& aLhs, 585 CheckedInt& operator -=(const CheckedInt<T>& aRhs); 588 friend CheckedInt<U> operator *(const CheckedInt<U>& aLhs, 592 CheckedInt& operator *=(const CheckedInt<T>& aRhs); 599 CheckedInt& operator /=(const CheckedInt<T>& aRhs); 606 CheckedInt& operator %=(const CheckedInt<T>& aRhs); [all …]
|
/dports/databases/mongodb36/mongodb-src-r3.6.23/src/third_party/mozjs-45/extract/mfbt/ |
H A D | CheckedInt.h | 403 static CheckedInt<T> negate(const CheckedInt<T>& aVal) 414 static CheckedInt<T> negate(const CheckedInt<T>& aVal) 574 friend CheckedInt<U> operator +(const CheckedInt<U>& aLhs, 578 CheckedInt& operator +=(const CheckedInt<T>& aRhs); 581 friend CheckedInt<U> operator -(const CheckedInt<U>& aLhs, 585 CheckedInt& operator -=(const CheckedInt<T>& aRhs); 588 friend CheckedInt<U> operator *(const CheckedInt<U>& aLhs, 592 CheckedInt& operator *=(const CheckedInt<T>& aRhs); 599 CheckedInt& operator /=(const CheckedInt<T>& aRhs); 606 CheckedInt& operator %=(const CheckedInt<T>& aRhs); [all …]
|
/dports/databases/mongodb36/mongodb-src-r3.6.23/src/third_party/mozjs-45/include/mozilla/ |
H A D | CheckedInt.h | 403 static CheckedInt<T> negate(const CheckedInt<T>& aVal) 414 static CheckedInt<T> negate(const CheckedInt<T>& aVal) 574 friend CheckedInt<U> operator +(const CheckedInt<U>& aLhs, 578 CheckedInt& operator +=(const CheckedInt<T>& aRhs); 581 friend CheckedInt<U> operator -(const CheckedInt<U>& aLhs, 585 CheckedInt& operator -=(const CheckedInt<T>& aRhs); 588 friend CheckedInt<U> operator *(const CheckedInt<U>& aLhs, 592 CheckedInt& operator *=(const CheckedInt<T>& aRhs); 599 CheckedInt& operator /=(const CheckedInt<T>& aRhs); 606 CheckedInt& operator %=(const CheckedInt<T>& aRhs); [all …]
|
/dports/lang/spidermonkey60/firefox-60.9.0/mfbt/ |
H A D | CheckedInt.h | 37 class CheckedInt; variable 390 static CheckedInt<T> negate(const CheckedInt<T>& aVal) { 399 static CheckedInt<T> negate(const CheckedInt<T>& aVal) { 550 friend CheckedInt<U> operator+(const CheckedInt<U>& aLhs, 554 CheckedInt& operator+=(const CheckedInt<T>& aRhs); 557 friend CheckedInt<U> operator-(const CheckedInt<U>& aLhs, 561 CheckedInt& operator-=(const CheckedInt<T>& aRhs); 564 friend CheckedInt<U> operator*(const CheckedInt<U>& aLhs, 568 CheckedInt& operator*=(const CheckedInt<T>& aRhs); 575 CheckedInt& operator/=(const CheckedInt<T>& aRhs); [all …]
|
H A D | Compression.cpp | 22 CheckedInt<int> inputSizeChecked = aInputSize; in compress() 30 CheckedInt<int> inputSizeChecked = aInputSize; in compressLimitedOutput() 32 CheckedInt<int> maxOutputSizeChecked = aMaxOutputSize; in compressLimitedOutput() 39 CheckedInt<int> outputSizeChecked = aOutputSize; in decompress() 47 CheckedInt<int> maxOutputSizeChecked = aMaxOutputSize; in decompress() 49 CheckedInt<int> inputSizeChecked = aInputSize; in decompress() 65 CheckedInt<int> maxOutputSizeChecked = aMaxOutputSize; in decompressPartial() 67 CheckedInt<int> inputSizeChecked = aInputSize; in decompressPartial()
|
/dports/www/firefox-esr/firefox-91.8.0/mfbt/ |
H A D | CheckedInt.h | 52 class CheckedInt; variable 408 static constexpr CheckedInt<T> negate(const CheckedInt<T>& aVal) { 418 static constexpr CheckedInt<T> negate(const CheckedInt<T>& aVal) { 505 class CheckedInt { 574 friend constexpr CheckedInt<U> operator+(const CheckedInt<U>& aLhs, 578 constexpr CheckedInt& operator+=(const CheckedInt<T>& aRhs); 581 friend constexpr CheckedInt<U> operator-(const CheckedInt<U>& aLhs, 585 constexpr CheckedInt& operator-=(const CheckedInt<T>& aRhs); 592 constexpr CheckedInt& operator*=(const CheckedInt<T>& aRhs); 599 constexpr CheckedInt& operator/=(const CheckedInt<T>& aRhs); [all …]
|
/dports/www/firefox/firefox-99.0/mfbt/ |
H A D | CheckedInt.h | 52 class CheckedInt; variable 408 static constexpr CheckedInt<T> negate(const CheckedInt<T>& aVal) { 418 static constexpr CheckedInt<T> negate(const CheckedInt<T>& aVal) { 505 class CheckedInt { 574 friend constexpr CheckedInt<U> operator+(const CheckedInt<U>& aLhs, 578 constexpr CheckedInt& operator+=(const CheckedInt<T>& aRhs); 581 friend constexpr CheckedInt<U> operator-(const CheckedInt<U>& aLhs, 585 constexpr CheckedInt& operator-=(const CheckedInt<T>& aRhs); 592 constexpr CheckedInt& operator*=(const CheckedInt<T>& aRhs); 599 constexpr CheckedInt& operator/=(const CheckedInt<T>& aRhs); [all …]
|
/dports/mail/thunderbird/thunderbird-91.8.0/mfbt/ |
H A D | CheckedInt.h | 52 class CheckedInt; variable 408 static constexpr CheckedInt<T> negate(const CheckedInt<T>& aVal) { 418 static constexpr CheckedInt<T> negate(const CheckedInt<T>& aVal) { 505 class CheckedInt { 574 friend constexpr CheckedInt<U> operator+(const CheckedInt<U>& aLhs, 578 constexpr CheckedInt& operator+=(const CheckedInt<T>& aRhs); 581 friend constexpr CheckedInt<U> operator-(const CheckedInt<U>& aLhs, 585 constexpr CheckedInt& operator-=(const CheckedInt<T>& aRhs); 592 constexpr CheckedInt& operator*=(const CheckedInt<T>& aRhs); 599 constexpr CheckedInt& operator/=(const CheckedInt<T>& aRhs); [all …]
|
/dports/lang/spidermonkey78/firefox-78.9.0/mfbt/ |
H A D | CheckedInt.h | 52 class CheckedInt; variable 408 static constexpr CheckedInt<T> negate(const CheckedInt<T>& aVal) { 418 static constexpr CheckedInt<T> negate(const CheckedInt<T>& aVal) { 505 class CheckedInt { 574 friend constexpr CheckedInt<U> operator+(const CheckedInt<U>& aLhs, 578 constexpr CheckedInt& operator+=(const CheckedInt<T>& aRhs); 581 friend constexpr CheckedInt<U> operator-(const CheckedInt<U>& aLhs, 585 constexpr CheckedInt& operator-=(const CheckedInt<T>& aRhs); 592 constexpr CheckedInt& operator*=(const CheckedInt<T>& aRhs); 599 constexpr CheckedInt& operator/=(const CheckedInt<T>& aRhs); [all …]
|
/dports/converters/wkhtmltopdf/qt-5db36ec/src/3rdparty/webkit/Source/WebCore/html/canvas/ |
H A D | CheckedInt.h | 405 class CheckedInt 450 …template<typename U> friend CheckedInt<U> operator +(const CheckedInt<U>& lhs, const CheckedInt<U>… 454 …template<typename U> friend CheckedInt<U> operator -(const CheckedInt<U>& lhs, const CheckedInt<U>… 458 …template<typename U> friend CheckedInt<U> operator *(const CheckedInt<U>& lhs, const CheckedInt<U>… 462 …template<typename U> friend CheckedInt<U> operator /(const CheckedInt<U>& lhs, const CheckedInt<U>… 491 inline CheckedInt<T> operator OP(const CheckedInt<T> &lhs, const CheckedInt<T> &rhs) \ 512 inline CheckedInt<T> operator /(const CheckedInt<T> &lhs, const CheckedInt<T> &rhs) 540 static const CheckedInt<T>& run(const CheckedInt<T>& u) { return u; } 553 CheckedInt<T>& CheckedInt<T>::operator COMPOUND_OP(const U &rhs) \ 559 inline CheckedInt<T> operator OP(const CheckedInt<T> &lhs, const U &rhs) \ [all …]
|
/dports/www/firefox-esr/firefox-91.8.0/mfbt/tests/ |
H A D | TestCheckedInt.cpp | 374 CheckedInt<T> x = one; in test() 381 CheckedInt<T> x = two; in test() 388 CheckedInt<T> x = one; in test() 417 CheckedInt<T> x = one; in test() 422 CheckedInt<T> x = two; in test() 427 CheckedInt<T> x = one; in test() 472 CheckedInt<uint8_t> foo = CheckedInt<uint16_t>(2).toChecked<uint8_t>(); in test() 477 CheckedInt<uint8_t> foo = CheckedInt<uint16_t>(255).toChecked<uint8_t>(); in test() 482 CheckedInt<uint8_t> foo = CheckedInt<uint16_t>(256).toChecked<uint8_t>(); in test() 486 CheckedInt<uint8_t> foo = CheckedInt<int8_t>(-2).toChecked<uint8_t>(); in test() [all …]
|
/dports/www/firefox/firefox-99.0/mfbt/tests/ |
H A D | TestCheckedInt.cpp | 374 CheckedInt<T> x = one; in test() 381 CheckedInt<T> x = two; in test() 388 CheckedInt<T> x = one; in test() 417 CheckedInt<T> x = one; in test() 422 CheckedInt<T> x = two; in test() 427 CheckedInt<T> x = one; in test() 472 CheckedInt<uint8_t> foo = CheckedInt<uint16_t>(2).toChecked<uint8_t>(); in test() 477 CheckedInt<uint8_t> foo = CheckedInt<uint16_t>(255).toChecked<uint8_t>(); in test() 482 CheckedInt<uint8_t> foo = CheckedInt<uint16_t>(256).toChecked<uint8_t>(); in test() 486 CheckedInt<uint8_t> foo = CheckedInt<int8_t>(-2).toChecked<uint8_t>(); in test() [all …]
|
/dports/lang/spidermonkey60/firefox-60.9.0/mfbt/tests/ |
H A D | TestCheckedInt.cpp | 385 CheckedInt<T> x = one; in test() 392 CheckedInt<T> x = two; in test() 399 CheckedInt<T> x = one; in test() 428 CheckedInt<T> x = one; in test() 433 CheckedInt<T> x = two; in test() 438 CheckedInt<T> x = one; in test() 483 CheckedInt<uint8_t> foo = CheckedInt<uint16_t>(2).toChecked<uint8_t>(); in test() 488 CheckedInt<uint8_t> foo = CheckedInt<uint16_t>(255).toChecked<uint8_t>(); in test() 493 CheckedInt<uint8_t> foo = CheckedInt<uint16_t>(256).toChecked<uint8_t>(); in test() 497 CheckedInt<uint8_t> foo = CheckedInt<int8_t>(-2).toChecked<uint8_t>(); in test() [all …]
|
/dports/www/firefox-legacy/firefox-52.8.0esr/mfbt/tests/ |
H A D | TestCheckedInt.cpp | 385 CheckedInt<T> x = one; in test() 392 CheckedInt<T> x = two; in test() 399 CheckedInt<T> x = one; in test() 428 CheckedInt<T> x = one; in test() 433 CheckedInt<T> x = two; in test() 438 CheckedInt<T> x = one; in test() 483 CheckedInt<uint8_t> foo = CheckedInt<uint16_t>(2).toChecked<uint8_t>(); in test() 488 CheckedInt<uint8_t> foo = CheckedInt<uint16_t>(255).toChecked<uint8_t>(); in test() 493 CheckedInt<uint8_t> foo = CheckedInt<uint16_t>(256).toChecked<uint8_t>(); in test() 497 CheckedInt<uint8_t> foo = CheckedInt<int8_t>(-2).toChecked<uint8_t>(); in test() [all …]
|
/dports/mail/thunderbird/thunderbird-91.8.0/mfbt/tests/ |
H A D | TestCheckedInt.cpp | 374 CheckedInt<T> x = one; in test() 381 CheckedInt<T> x = two; in test() 388 CheckedInt<T> x = one; in test() 417 CheckedInt<T> x = one; in test() 422 CheckedInt<T> x = two; in test() 427 CheckedInt<T> x = one; in test() 472 CheckedInt<uint8_t> foo = CheckedInt<uint16_t>(2).toChecked<uint8_t>(); in test() 477 CheckedInt<uint8_t> foo = CheckedInt<uint16_t>(255).toChecked<uint8_t>(); in test() 482 CheckedInt<uint8_t> foo = CheckedInt<uint16_t>(256).toChecked<uint8_t>(); in test() 486 CheckedInt<uint8_t> foo = CheckedInt<int8_t>(-2).toChecked<uint8_t>(); in test() [all …]
|
/dports/lang/spidermonkey78/firefox-78.9.0/mfbt/tests/ |
H A D | TestCheckedInt.cpp | 374 CheckedInt<T> x = one; in test() 381 CheckedInt<T> x = two; in test() 388 CheckedInt<T> x = one; in test() 417 CheckedInt<T> x = one; in test() 422 CheckedInt<T> x = two; in test() 427 CheckedInt<T> x = one; in test() 472 CheckedInt<uint8_t> foo = CheckedInt<uint16_t>(2).toChecked<uint8_t>(); in test() 477 CheckedInt<uint8_t> foo = CheckedInt<uint16_t>(255).toChecked<uint8_t>(); in test() 482 CheckedInt<uint8_t> foo = CheckedInt<uint16_t>(256).toChecked<uint8_t>(); in test() 486 CheckedInt<uint8_t> foo = CheckedInt<int8_t>(-2).toChecked<uint8_t>(); in test() [all …]
|
/dports/devel/llvm-devel/llvm-project-f05c95f10fc1d8171071735af8ad3a9e87633120/llvm/unittests/ADT/ |
H A D | SequenceTest.cpp | 23 using detail::CheckedInt; 49 EXPECT_EQ(CheckedInt::from(Min).template to<T>(), Min); in TYPED_TEST() 50 EXPECT_EQ(CheckedInt::from(Max).template to<T>(), Max); in TYPED_TEST() 54 const CheckedInt Actual = CheckedInt::from(Expected); in TYPED_TEST() 73 EXPECT_EQ(CheckedInt::from(A).to<UntypedEnum>(), A); in TEST() 76 EXPECT_EQ(CheckedInt::from(B).to<TypedEnum>(), B); in TEST() 88 EXPECT_DEATH(CheckedInt::from(-1).to<uint8_t>(), "Out of bounds"); in TEST() 89 EXPECT_DEATH(CheckedInt::from(256).to<uint8_t>(), "Out of bounds"); in TEST() 91 EXPECT_DEATH(CheckedInt::from(INTMAX_MAX) + 1, "Out of bounds"); in TEST() 92 EXPECT_DEATH(CheckedInt::from(INTMAX_MIN) + -1, "Out of bounds"); in TEST() [all …]
|
/dports/lang/rust/rustc-1.58.1-src/src/llvm-project/llvm/unittests/ADT/ |
H A D | SequenceTest.cpp | 23 using detail::CheckedInt; 49 EXPECT_EQ(CheckedInt::from(Min).template to<T>(), Min); in TYPED_TEST() 50 EXPECT_EQ(CheckedInt::from(Max).template to<T>(), Max); in TYPED_TEST() 54 const CheckedInt Actual = CheckedInt::from(Expected); in TYPED_TEST() 73 EXPECT_EQ(CheckedInt::from(A).to<UntypedEnum>(), A); in TEST() 76 EXPECT_EQ(CheckedInt::from(B).to<TypedEnum>(), B); in TEST() 88 EXPECT_DEATH(CheckedInt::from(-1).to<uint8_t>(), "Out of bounds"); in TEST() 89 EXPECT_DEATH(CheckedInt::from(256).to<uint8_t>(), "Out of bounds"); in TEST() 91 EXPECT_DEATH(CheckedInt::from(INTMAX_MAX) + 1, "Out of bounds"); in TEST() 92 EXPECT_DEATH(CheckedInt::from(INTMAX_MIN) + -1, "Out of bounds"); in TEST() [all …]
|
/dports/devel/wasi-compiler-rt13/llvm-project-13.0.1.src/llvm/unittests/ADT/ |
H A D | SequenceTest.cpp | 23 using detail::CheckedInt; 49 EXPECT_EQ(CheckedInt::from(Min).template to<T>(), Min); in TYPED_TEST() 50 EXPECT_EQ(CheckedInt::from(Max).template to<T>(), Max); in TYPED_TEST() 54 const CheckedInt Actual = CheckedInt::from(Expected); in TYPED_TEST() 73 EXPECT_EQ(CheckedInt::from(A).to<UntypedEnum>(), A); in TEST() 76 EXPECT_EQ(CheckedInt::from(B).to<TypedEnum>(), B); in TEST() 88 EXPECT_DEATH(CheckedInt::from(-1).to<uint8_t>(), "Out of bounds"); in TEST() 89 EXPECT_DEATH(CheckedInt::from(256).to<uint8_t>(), "Out of bounds"); in TEST() 91 EXPECT_DEATH(CheckedInt::from(INTMAX_MAX) + 1, "Out of bounds"); in TEST() 92 EXPECT_DEATH(CheckedInt::from(INTMAX_MIN) + -1, "Out of bounds"); in TEST() [all …]
|
/dports/devel/wasi-libcxx/llvm-project-13.0.1.src/llvm/unittests/ADT/ |
H A D | SequenceTest.cpp | 23 using detail::CheckedInt; 49 EXPECT_EQ(CheckedInt::from(Min).template to<T>(), Min); in TYPED_TEST() 50 EXPECT_EQ(CheckedInt::from(Max).template to<T>(), Max); in TYPED_TEST() 54 const CheckedInt Actual = CheckedInt::from(Expected); in TYPED_TEST() 73 EXPECT_EQ(CheckedInt::from(A).to<UntypedEnum>(), A); in TEST() 76 EXPECT_EQ(CheckedInt::from(B).to<TypedEnum>(), B); in TEST() 88 EXPECT_DEATH(CheckedInt::from(-1).to<uint8_t>(), "Out of bounds"); in TEST() 89 EXPECT_DEATH(CheckedInt::from(256).to<uint8_t>(), "Out of bounds"); in TEST() 91 EXPECT_DEATH(CheckedInt::from(INTMAX_MAX) + 1, "Out of bounds"); in TEST() 92 EXPECT_DEATH(CheckedInt::from(INTMAX_MIN) + -1, "Out of bounds"); in TEST() [all …]
|
/dports/graphics/llvm-mesa/llvm-13.0.1.src/unittests/ADT/ |
H A D | SequenceTest.cpp | 23 using detail::CheckedInt; 49 EXPECT_EQ(CheckedInt::from(Min).template to<T>(), Min); in TYPED_TEST() 50 EXPECT_EQ(CheckedInt::from(Max).template to<T>(), Max); in TYPED_TEST() 54 const CheckedInt Actual = CheckedInt::from(Expected); in TYPED_TEST() 73 EXPECT_EQ(CheckedInt::from(A).to<UntypedEnum>(), A); in TEST() 76 EXPECT_EQ(CheckedInt::from(B).to<TypedEnum>(), B); in TEST() 88 EXPECT_DEATH(CheckedInt::from(-1).to<uint8_t>(), "Out of bounds"); in TEST() 89 EXPECT_DEATH(CheckedInt::from(256).to<uint8_t>(), "Out of bounds"); in TEST() 91 EXPECT_DEATH(CheckedInt::from(INTMAX_MAX) + 1, "Out of bounds"); in TEST() 92 EXPECT_DEATH(CheckedInt::from(INTMAX_MIN) + -1, "Out of bounds"); in TEST() [all …]
|
/dports/devel/llvm13/llvm-project-13.0.1.src/llvm/unittests/ADT/ |
H A D | SequenceTest.cpp | 23 using detail::CheckedInt; 49 EXPECT_EQ(CheckedInt::from(Min).template to<T>(), Min); in TYPED_TEST() 50 EXPECT_EQ(CheckedInt::from(Max).template to<T>(), Max); in TYPED_TEST() 54 const CheckedInt Actual = CheckedInt::from(Expected); in TYPED_TEST() 73 EXPECT_EQ(CheckedInt::from(A).to<UntypedEnum>(), A); in TEST() 76 EXPECT_EQ(CheckedInt::from(B).to<TypedEnum>(), B); in TEST() 88 EXPECT_DEATH(CheckedInt::from(-1).to<uint8_t>(), "Out of bounds"); in TEST() 89 EXPECT_DEATH(CheckedInt::from(256).to<uint8_t>(), "Out of bounds"); in TEST() 91 EXPECT_DEATH(CheckedInt::from(INTMAX_MAX) + 1, "Out of bounds"); in TEST() 92 EXPECT_DEATH(CheckedInt::from(INTMAX_MIN) + -1, "Out of bounds"); in TEST() [all …]
|
/dports/www/firefox-esr/firefox-91.8.0/dom/media/ |
H A D | SharedBuffer.h | 65 static already_AddRefed<SharedBuffer> Create(CheckedInt<size_t>& aSize, in Create() 67 CheckedInt<size_t> allocSize = AllocSize(aSize, fallible); in Create() 79 static already_AddRefed<SharedBuffer> Create(CheckedInt<size_t>& aSize) { in Create() 90 static CheckedInt<size_t> AllocSize(CheckedInt<size_t> aDataSize, in AllocSize() 92 CheckedInt<size_t> size = sizeof(SharedBuffer); in AllocSize() 97 static size_t AllocSize(CheckedInt<size_t> aDataSize) { in AllocSize() 98 CheckedInt<size_t> size = AllocSize(aDataSize, fallible); in AllocSize()
|
/dports/lang/spidermonkey78/firefox-78.9.0/dom/media/ |
H A D | SharedBuffer.h | 65 static already_AddRefed<SharedBuffer> Create(CheckedInt<size_t>& aSize, in Create() 67 CheckedInt<size_t> allocSize = AllocSize(aSize, fallible); in Create() 79 static already_AddRefed<SharedBuffer> Create(CheckedInt<size_t>& aSize) { in Create() 90 static CheckedInt<size_t> AllocSize(CheckedInt<size_t> aDataSize, in AllocSize() 92 CheckedInt<size_t> size = sizeof(SharedBuffer); in AllocSize() 97 static size_t AllocSize(CheckedInt<size_t> aDataSize) { in AllocSize() 98 CheckedInt<size_t> size = AllocSize(aDataSize, fallible); in AllocSize()
|
/dports/www/firefox/firefox-99.0/dom/media/ |
H A D | SharedBuffer.h | 65 static already_AddRefed<SharedBuffer> Create(CheckedInt<size_t>& aSize, in Create() 67 CheckedInt<size_t> allocSize = AllocSize(aSize, fallible); in Create() 79 static already_AddRefed<SharedBuffer> Create(CheckedInt<size_t>& aSize) { in Create() 90 static CheckedInt<size_t> AllocSize(CheckedInt<size_t> aDataSize, in AllocSize() 92 CheckedInt<size_t> size = sizeof(SharedBuffer); in AllocSize() 97 static size_t AllocSize(CheckedInt<size_t> aDataSize) { in AllocSize() 98 CheckedInt<size_t> size = AllocSize(aDataSize, fallible); in AllocSize()
|