Commit Graph

30 Commits

Author SHA1 Message Date
Jeff Walden
83da961132 Bug 1299284 - Remove js::IsPowerOfTwo in favor of mozilla::IsPowerOfTwo. r=sfink 2016-07-21 00:36:38 -07:00
Benjamin Bouvier
fcb917ea9e Bug 1271972: wasm: Implement i64.ctz, i64.clz, i64.popcount; r=sunfish
MozReview-Commit-ID: 2XXloMWmbjV
2016-05-11 19:00:53 +02:00
Sean Stangl
4e6b0b5cfd Bug 939157 - RotateLeft with shift of zero gives undefined behavior. r=Waldo 2015-11-03 14:25:48 -08:00
Jeff Gilbert
690c37e1f4 Bug 1193600 - Add Clamp and IsPowerOfTwo to MFBT. - r=waldo 2015-09-04 13:33:10 -07:00
Jeff Gilbert
826cb18cda Bug 1182370 - _BitScan* does not modify *pIndex if input is zero. - r=waldo 2015-07-17 10:24:30 -07:00
Xidorn Quan
a211857e72 Bug 1124029 - Fix unsigned/signed mismatch in MathAlgorithms. r=waldo 2015-01-23 08:29:36 +11:00
Ehsan Akhgari
a7f747ec15 Bug 1118486 - Part 1: Use = delete instead of MOZ_DELETE directly; r=Waldo
Most of this patch (with the exception of dom/bindings/Codegen.py) was
generated by the following bash script:

#!/bin/bash

function convert() {
echo "Converting $1 to $2..."
find . ! -wholename "*nsprpub*" \
       ! -wholename "*security/nss*" \
       ! -wholename "*/.hg*" \
       ! -wholename "*/.git*" \
       ! -wholename "obj-*" \
         -type f \
      \( -iname "*.cpp" \
         -o -iname "*.h" \
         -o -iname "*.cc" \
         -o -iname "*.idl" \
         -o -iname "*.ipdl" \
         -o -iname "*.ipdlh" \
         -o -iname "*.mm" \) | \
    xargs -n 1 sed -i -e "s/\b$1\b/$2/g"
}

convert MOZ_DELETE '= delete'
2015-01-08 23:19:05 -05:00
Jacek Caban
d9934d7512 Bug 1114368 - Use GCC builtins in MathAlgorithms.h on mingw. r=froydnj 2014-12-22 12:38:41 +01:00
Ehsan Akhgari
49991f4559 Bug 1111255 - Remove some code specific to MSVC7 from MFBT; r=froydnj 2014-12-14 14:58:13 -05:00
Nicholas Nethercote
e286b23cb3 Bug 1036789 - Convert the third quarter of MFBT to Gecko style. r=Ms2ger. 2014-07-10 19:10:17 -07:00
Marty Rosenberg
5f35a2b15b Bug 991153: Make the types for sets of registers a per-type quantity (r=jandem) 2014-06-25 12:54:34 -04:00
Nicholas Nethercote
50bb9d3f06 Bug 1026319 - Convert the second quarter of MFBT to Gecko style. r=froydnj. 2014-06-12 23:34:08 -07:00
Jeff Muizelaar
f589c49e6f Bug 1022049. Switch to <intrin.h>. r=nfroyd
Instead of declaring these ourselves just use intrin.h
This has the advantage of allowing them to work with clang-cl
2014-06-09 17:26:55 -04:00
Ehsan Akhgari
8ee5eb76a6 Bug 1013662 - Fix bad implicit conversion constructors in MFBT; r=froydnj,Waldo 2014-06-06 23:17:06 -04:00
Brian Smith
ddf8a3763b Bug 1010634, Part 2: Fix compiler warnings in MFBT and XPCOM, r=ehsan 2014-05-29 20:18:29 -07:00
Dan Gohman
70a9f85b86 Bug 978397 - Fix the implementation of CountPopulation_32 on Windows. r=nbp 2014-03-11 08:09:55 -04:00
Joshua Cranmer
d2aea42cae Bug 935789, part 2: Implement RotateLeft/RotateRight in MFBT and use them, r=Waldo. 2013-11-12 18:24:56 -06:00
Dan Gohman
f5895e763b Bug 906368 - IonMonkey: Define a proper CountPopulation32 function, and use it in place of manual code in RegisterSets.h. r=nbp 2013-08-19 12:32:22 -07:00
Ehsan Akhgari
6d396d8bcb Bug 872127 - Part 2: Replace mozilla/StandardInteger.h with stdint.h; r=Waldo,ted 2013-07-30 10:25:31 -04:00
Jeff Walden
d8741e702c Bug 895792 - Fix RoundUpPow2's required precondition to not be wrong. r=terrence 2013-07-25 20:01:45 -07:00
Ms2ger
d1c985e201 Bug 896341 - Update include guards and modelines in MFBT; r=Waldo 2013-07-24 09:41:39 +02:00
Jeff Walden
0fbbd2d316 Bug 895727 - Fix obvious typo breaking Win64 builds. r=lumpy 2013-07-18 19:30:06 -07:00
Jeff Walden
9f01148df2 Bug 891177 - Move leading/trailing-zero-bit counting functions, ceiling/floor log2 functions, and round-up-pow2 functions into MathAlgorithms.h. r=terrence 2013-07-03 15:46:51 -07:00
Jeff Walden
8a473f614c Bug 847480 - Remove unused (verified by manual inspection and try) DeprecatedAbs overloads so it's harder for new uses to pop up. r=Ms2ger 2013-03-09 14:20:14 -08:00
Oleg Romashin
5d462241c4 Bug 848611 - MathAlgorithms.h:116: error: 'fabsl' was not declared in this scope. r=Waldo 2013-03-14 00:16:55 -07:00
Jeff Walden
dc6bf5f361 Bug 847480 - Convert DeprecatedAbs overloads taking floating point (except for nscoord uses, when nscoord is optionally a floating point type) to Abs. r=Ms2ger 2013-03-05 15:43:44 -08:00
Jeff Walden
bd1ae2a684 Bug 847480 - Make mozilla::Abs return the unsigned type, for the integral types. r=bjacob 2013-03-05 15:43:38 -08:00
Jeff Walden
41594ee4f8 Bug 847480 - Copy the existing mozilla::Abs as mozilla::DeprecatedAbs, to allow mozilla::Abs to return an unsigned type when possible. r=Ms2ger 2013-03-05 15:43:23 -08:00
Jeff Walden
8be01906e2 Bug 835542 - Implement mozilla::Abs. r=Ms2ger 2013-02-15 19:55:36 -08:00
Raphael Catolino
c8eea1c4b7 Bug 781313 - Move the euclidGcd and lcm algos form nsStyleAnimation.cpp to mfbt/MathAlgorithms.h r=dbaron,luke 2012-08-26 22:58:23 -03:00