mfbt/MathAlgorithms.h
6f3709b3878117466168c40affa7bca0b60cf75b
created 2018-11-30 11:46 +0100
pushed 2019-01-21 12:33 +0000
Sylvestre Ledru Sylvestre Ledru - Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format
f293d2face23fddef0e1d43dff4cbf2e3a98e828
created 2018-08-03 18:07 -0400
pushed 2018-10-15 10:40 +0000
Nathan Froyd Nathan Froyd - Bug 1480577 - add AArch64-specific cases for MathUtils.h bitscan functionality; r=Waldo
9581711718570bc55ce69f4eb397f462ab0a639e
created 2018-03-01 17:05 -0800
pushed 2018-04-26 16:43 +0000
Jeff Walden Jeff Walden - Bug 1443342 - Remove HashFunctions.h's RotateBitsLeft32 and use the general RotateLeft function instead. r=froydnj
bc01e52c16d77ba3a7ab45ec195892c88e5f861b
created 2018-02-15 17:36 -0800
pushed 2018-04-26 16:43 +0000
Jeff Walden Jeff Walden - Bug 1441657 - Create a new mozilla/WrappingOperations.h header to contain implementations of common math operations with well-defined wraparound semantics. r=froydnj
31ea2689701e6bbae44401b1696609469187d1c4
created 2018-02-15 17:22 -0800
pushed 2018-04-26 16:43 +0000
Jeff Walden Jeff Walden - Bug 744965 - Implement mozilla::NumberEqualsInt32 in a way that doesn't depend on undefined behavior casting an out-of-range floating point number to int32_t. r=froydnj
742aab314d75930531b3320a945600de658f4cf1
created 2018-02-21 10:12 +0200
pushed 2018-04-26 16:43 +0000
Cosmin Sabou Cosmin Sabou - Backed out changeset 1fcc972d445b (bug 744965) for assertion failures on TestFloatingPoint.cpp on a CLOSED TREE
1fcc972d445b035a86907702d6d53c8430d6b6b8
created 2018-02-15 17:22 -0800
pushed 2018-04-26 16:43 +0000
Jeff Walden Jeff Walden - Bug 744965 - Implement mozilla::NumberEqualsInt32 in a way that doesn't depend on undefined behavior casting an out-of-range floating point number to int32_t. r=froydnj
7144fcd531df304bea9bc2031fab6bc56c405095
created 2018-02-02 21:25 -0800
pushed 2018-04-26 16:43 +0000
Jeff Walden Jeff Walden - Bug 1435484 - Split the integer-overflow blacklist into two blacklists, one for signed integer overflow and one for unsigned integer overflow, and rename both configure flags to be clearer. r=decoder, r=froydnj
e266383ee349457626c646694a374d9d3ef7bc19
created 2018-01-25 14:48 -0800
pushed 2018-04-26 16:43 +0000
Jeff Walden Jeff Walden - Bug 1432646 - Implement mozilla::WrapToSigned. r=froydnj
250c433640e0c13087189284a7f38285bb3a85c9
created 2016-07-21 00:36 -0700
pushed 2017-02-27 14:59 +0000
Jeff Walden Jeff Walden - Bug 1299284 - Remove js::IsPowerOfTwo in favor of mozilla::IsPowerOfTwo. r=sfink
4daee069692632e5d4477a0c5710d835da1feed9
created 2016-05-11 19:00 +0200
pushed 2016-09-05 20:01 +0000
Benjamin Bouvier Benjamin Bouvier - Bug 1271972: wasm: Implement i64.ctz, i64.clz, i64.popcount; r=sunfish
980aebe436cf782cba8c65eeff46ec3dec4fc23f
created 2015-11-03 14:25 -0800
pushed 2016-02-29 17:11 +0000
Sean Stangl Sean Stangl - Bug 939157 - RotateLeft with shift of zero gives undefined behavior. r=Waldo
52c158ae017886ecdf45f971522452cf13b2cf6e
created 2015-11-03 14:25 -0800
pushed 2016-01-18 19:06 +0000
Sean Stangl Sean Stangl - Bug 939157 - RotateLeft with shift of zero gives undefined behavior. r=waldo, a=ritu
dff32fe11db99341fa0f1fb95ab04feee3dc112e
created 2015-09-04 13:33 -0700
pushed 2015-12-04 23:28 +0000
Jeff Gilbert Jeff Gilbert - Bug 1193600 - Add Clamp and IsPowerOfTwo to MFBT. - r=waldo
5b4a4d8e5a801ba292c589d0d47c4b30971b8448
created 2015-07-17 10:24 -0700
pushed 2015-10-26 12:58 +0000
Jeff Gilbert Jeff Gilbert - Bug 1182370 - _BitScan* does not modify `*pIndex` if input is zero. - r=waldo
7315bdbef259908fc3464f4916a88ede312ffa98
created 2015-01-23 08:29 +1100
pushed 2015-04-21 23:03 +0000
Xidorn Quan Xidorn Quan - Bug 1124029 - Fix unsigned/signed mismatch in MathAlgorithms. r=waldo
86924ac6a94a9147bcae518239d7a33b5981062b
created 2015-01-06 18:35 -0500
pushed 2015-03-23 22:08 +0000
Ehsan Akhgari Ehsan Akhgari - Bug 1118486 - Part 1: Use `= delete` instead of MOZ_DELETE directly; r=Waldo
c0c165a61e9dc81ae066a5a54771d743cf5607c8
created 2014-12-22 12:38 +0100
pushed 2015-03-23 22:08 +0000
Jacek Caban Jacek Caban - Bug 1114368 - Use GCC builtins in MathAlgorithms.h on mingw. r=froydnj
66e4db6c4a8946f736d0c2829557b2d78f7a9cfd
created 2014-12-14 14:58 -0500
pushed 2015-03-23 22:08 +0000
Ehsan Akhgari Ehsan Akhgari - Bug 1111255 - Remove some code specific to MSVC7 from MFBT; r=froydnj
91d7659bb35145e10ff737753688e0972c1a79b5
created 2014-07-10 19:10 -0700
pushed 2014-10-06 12:51 +0000
Nicholas Nethercote Nicholas Nethercote - Bug 1036789 - Convert the third quarter of MFBT to Gecko style. r=Ms2ger.
4dbf6c8109d45f9f9316a5a4d159e15a866391ee
created 2014-06-25 12:54 -0400
pushed 2014-10-06 12:51 +0000
Marty Rosenberg Marty Rosenberg - Bug 991153: Make the types for sets of registers a per-type quantity (r=jandem)
cf068fd95d3cef2e75205ae37c937bfaee01506f
created 2014-06-12 23:34 -0700
pushed 2014-10-06 12:51 +0000
Nicholas Nethercote Nicholas Nethercote - Bug 1026319 - Convert the second quarter of MFBT to Gecko style. r=froydnj.
e19324807568e9b57b3494e688da4755aebb16b2
created 2014-06-09 17:26 -0400
pushed 2014-10-06 12:51 +0000
Jeff Muizelaar Jeff Muizelaar - Bug 1022049. Switch to <intrin.h>. r=nfroyd
d7dc39d162348d21bd2b51b3a3b56fa2fe969dd5
created 2014-06-06 23:17 -0400
pushed 2014-08-25 18:42 +0000
Ehsan Akhgari Ehsan Akhgari - Bug 1013662 - Fix bad implicit conversion constructors in MFBT; r=froydnj,Waldo
20f228f5a33d18619e5199000cdd3d8dcc7ee086
created 2014-05-29 20:18 -0700
pushed 2014-08-25 18:42 +0000
Brian Smith Brian Smith - Bug 1010634, Part 2: Fix compiler warnings in MFBT and XPCOM, r=ehsan
4d6f4e6bba2172d05f6cf9cee1dc7b8e7c0bf972
created 2014-03-11 08:09 -0400
pushed 2014-06-02 21:01 +0000
Dan Gohman Dan Gohman - Bug 978397 - Fix the implementation of CountPopulation_32 on Windows. r=nbp
7c3792d389bc87d1bfb549cf7c44d45d3be2116e
created 2013-11-12 18:24 -0600
pushed 2014-03-10 22:05 +0000
Joshua Cranmer Joshua Cranmer - Bug 935789, part 2: Implement RotateLeft/RotateRight in MFBT and use them, r=Waldo.
8d3b2cb5d698934a49dfa315f8ba7bcb55a20dc2
created 2013-08-19 12:32 -0700
pushed 2013-12-03 03:32 +0000
Dan Gohman Dan Gohman - Bug 906368 - IonMonkey: Define a proper CountPopulation32 function, and use it in place of manual code in RegisterSets.h. r=nbp
95fda0cdd9da6a6ce4dba2a09d00406896958e00
created 2013-07-30 10:25 -0400
pushed 2013-10-21 21:47 +0000
Ehsan Akhgari Ehsan Akhgari - Bug 872127 - Part 2: Replace mozilla/StandardInteger.h with stdint.h; r=Waldo,ted
4a126050ecdbdfc3a7b4432783db8ac8373af002
created 2013-07-25 20:01 -0700
pushed 2013-10-21 21:47 +0000
Jeff Walden Jeff Walden - Bug 895792 - Fix RoundUpPow2's required precondition to not be wrong. r=terrence
f55906cadf07a9ef44cc4ce2574fe35f3dc85672
created 2013-07-24 09:41 +0200
pushed 2013-10-21 21:47 +0000
Ms2ger Ms2ger - Bug 896341 - Update include guards and modelines in MFBT; r=Waldo
a988d931e968de728b00e1fb13f0f9dae9aa7a0f
created 2013-07-18 19:30 -0700
pushed 2013-10-21 21:47 +0000
Jeff Walden Jeff Walden - Bug 895727 - Fix obvious typo breaking Win64 builds. r=lumpy
021fd4e03439d25889ba2f2f6ef776c980149a9a
created 2013-07-03 15:46 -0700
pushed 2013-10-21 21:47 +0000
Jeff Walden Jeff Walden - Bug 891177 - Move leading/trailing-zero-bit counting functions, ceiling/floor log2 functions, and round-up-pow2 functions into MathAlgorithms.h. r=terrence
ba0b144c146f277bb9d8782bbfddb95e1c36a1a8
created 2013-03-09 14:20 -0800
pushed 2013-06-17 22:53 +0000
Jeff Walden Jeff Walden - Bug 847480 - Remove unused (verified by manual inspection and try) DeprecatedAbs overloads so it's harder for new uses to pop up. r=Ms2ger
051405e33fc4e68e1b68e67b2f3171fcfe2d9509
created 2013-03-14 00:16 -0700
pushed 2013-06-17 22:53 +0000
Oleg Romashin Oleg Romashin - Bug 848611 - MathAlgorithms.h:116: error: 'fabsl' was not declared in this scope. r=Waldo
1338c63a370bb2c030b73276a72eedc835eceb01
created 2013-03-05 15:43 -0800
pushed 2013-06-17 22:53 +0000
Jeff Walden Jeff Walden - Bug 847480 - Convert DeprecatedAbs overloads taking floating point (except for nscoord uses, when nscoord is optionally a floating point type) to Abs. r=Ms2ger
eb393a9ef207cc8de47d100bdc2ef7ed5a42dfd0
created 2013-03-05 15:43 -0800
pushed 2013-06-17 22:53 +0000
Jeff Walden Jeff Walden - Bug 847480 - Make mozilla::Abs return the unsigned type, for the integral types. r=bjacob
7c26a953082dd0b861f1dcaccb700cf970c37fa7
created 2013-03-05 15:43 -0800
pushed 2013-06-17 22:53 +0000
Jeff Walden Jeff Walden - Bug 847480 - Copy the existing mozilla::Abs as mozilla::DeprecatedAbs, to allow mozilla::Abs to return an unsigned type when possible. r=Ms2ger
5a8b3e397ffcc45895074dfdc68ee4ed947ec8b0
created 2013-02-15 19:55 -0800
pushed 2013-06-17 22:53 +0000
Jeff Walden Jeff Walden - Bug 835542 - Implement mozilla::Abs. r=Ms2ger
b2ad6e5fc690e5fd561ef698d0bf8e0f291d9d04
created 2012-08-26 22:58 -0300
pushed 2012-11-14 20:38 +0000
Raphael Catolino Raphael Catolino - Bug 781313 - Move the euclidGcd and lcm algos form nsStyleAnimation.cpp to mfbt/MathAlgorithms.h r=dbaron,luke
less more (0) tip