aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/Support/MathExtrasTest.cpp
AgeCommit message (Expand)AuthorFilesLines
2024-08-19MathExtras: template'ize alignToPowerOf2 (#97814)Ramkumar Ramachandra1-2/+5
2024-07-09MathExtras: add overflow query for signed-div (#97901)Ramkumar Ramachandra1-0/+8
2024-06-29MathExtras: avoid unnecessarily widening types (#95426)Ramkumar Ramachandra1-2/+16
2024-06-15MathExtras: rewrite some methods to never overflow (#95556)Ramkumar Ramachandra1-2/+36
2024-06-14MathExtras/test: increase coverage (#95425)Ramkumar Ramachandra1-2/+44
2024-06-11mlir/MathExtras: consolidate with llvm/MathExtras (#95087)Ramkumar Ramachandra1-3/+33
2024-04-22[Support] Fix a warningKazu Hirata1-1/+1
2024-04-22[nfc][llvm] Fix a typo in MathExtras.h testing (#89653)Théo Degioanni1-3/+3
2024-04-22[llvm] Add support for zero-width integers in MathExtras.h (#87193)Théo Degioanni1-0/+8
2023-02-14[llvm] Deprecate {Bits,Float,Double}To{Bits,Float,Double} (NFC)Kazu Hirata1-10/+0
2023-02-12[llvm] Deprecate PowerOf2Floor and ByteSwap_{16,32,64}Kazu Hirata1-6/+0
2023-02-12[llvm] Deprecate llvm::count{Leading,Trailing}{Zeros,Ones} and llvm::countPop...Kazu Hirata1-67/+0
2023-01-26[Support] Remove findFirstSet and findLastSetKazu Hirata1-40/+0
2022-12-01[Support][MathExtras] Add variadic SaturatingAddAlexander Shaposhnikov1-3/+37
2022-02-08Fix signed/unsigned comparison warnings on ppc buildbotsSimon Pilgrim1-12/+12
2022-02-08[ADT] Add APInt/MathExtras isShiftedMask variant returning mask offset/lengthSimon Pilgrim1-0/+24
2022-02-04[Support] Add isShiftedMask_32/isShiftedMask_64 unit test coverageSimon Pilgrim1-0/+14
2021-05-17Put back the trailing commas on TYPED_TEST_SUITEBenjamin Kramer1-1/+1
2021-05-14Bump googletest to 1.10.0Benjamin Kramer1-1/+1
2020-02-27[Support] Remove byte swapping from MathExtras.hReid Kleckner1-10/+0
2019-10-14[Alignment][NFC] Support compile time constantsGuillaume Chatelet1-0/+19
2019-10-03Revert "[Alignment][NFC] Allow constexpr Align"Guillaume Chatelet1-19/+0
2019-10-03[Alignment][NFC] Allow constexpr AlignGuillaume Chatelet1-0/+19
2019-07-31[Support] Added overflow checking add, sub and mul.JF Bastien1-0/+127
2019-01-19Update the file headers across all of the LLVM projects in the monorepoChandler Carruth1-4/+3
2017-07-03MathExtras UnitTest: Assert that isPowerOf2(0) is false. NFC.Zvi Rackover1-0/+2
2017-06-06Re-sort #include lines for unittests. This uses a slightly modifiedChandler Carruth1-1/+1
2017-04-19[MathExtras] Fix undefined behavior (shift by bit width)Benjamin Kramer1-0/+5
2017-04-19[Support] Add some helpers to generate bitmasks.Zachary Turner1-0/+20
2016-11-11[ADT/MathExtras] Make buildbot happy again.Davide Italiano1-6/+6
2016-11-11[ADT/MathExtras] Add tests for PowerOf2Floor (previously untested).Davide Italiano1-0/+6
2016-11-11[ADT/MathExtras] Introduce PowerOf2Ceil.Davide Italiano1-0/+6
2016-07-17Add tests for max/minIntN(64).Justin Lebar1-0/+4
2016-07-17Fix isShiftedInt and isShiftedUint for widths > 32.Justin Lebar1-0/+38
2016-07-16Don't do uint64_t(1) << 64 in maxUIntN.Justin Lebar1-0/+1
2016-06-02Add tests to Support/MathExtrasDylan McKay1-0/+29
2016-03-14MathExtrasTest.cpp: Use EXPECT_DOUBLE_EQ here, instead of EXPECT_FLOAT_EQ.NAKAMURA Takumi1-1/+1
2016-01-14Update to use new name alignTo().Rui Ueyama1-9/+9
2016-01-12[Support] Add saturating multiply-add support functionNathan Slingerland1-0/+54
2015-12-09[Support] Change SaturatingAdd()/SaturatingMultiply() to use pointer for retu...Nathan Slingerland1-17/+17
2015-11-23[Support] Add optional argument to SaturatingAdd() and SaturatingMultiply() t...Nathan Slingerland1-1/+50
2015-11-23[Support] Fix SaturatingMultiply<T>() to be correct (and fast), Re-enable Uni...Nathan Slingerland1-0/+48
2015-11-20Revert the revert 253497 and 253539 - These commits aren't the cause of the c...Daniel Sanders1-0/+17
2015-11-20Revert 253497 and 253539 to try to fix clang-cmake-mips buildbot.Daniel Sanders1-17/+0
2015-11-19[Support] Disable SaturatingMultiply() unit test while investigatingNathan Slingerland1-19/+0
2015-11-18[llvm-profdata] Add SaturatingAdd/SaturatingMultiply Helper Functions (2nd try)Nathan Slingerland1-0/+36
2015-11-18Revert "[llvm-profdata] Add SaturatingAdd/SaturatingMultiply Helper Functions"Nathan Slingerland1-48/+0
2015-11-18[llvm-profdata] Add SaturatingAdd/SaturatingMultiply Helper FunctionsNathan Slingerland1-0/+48
2015-09-29HHVM calling conventions.Maksim Panchenko1-0/+5
2015-02-12Try to fix the MSVC build.Benjamin Kramer1-1/+1