Benjamin Bouvier
|
8436415dfa
|
Bug 939843: Unify FloatingPoint's code for Double and Float; r=waldo
--HG--
extra : rebase_source : 2f7956d497d534af8931939a38a29ad27695a3fc
|
2014-01-30 15:54:46 +01:00 |
|
Kartikaya Gupta
|
84032c6cea
|
Bug 948984 - Add functions to fuzzily compare float numbers. r=bjacob, r=Waldo
|
2014-02-05 17:04:42 -05:00 |
|
Dan Gohman
|
82cabc0e08
|
Bug 930708 - IonMonkey: Factor out a DoubleEqualsInt32 from DoubleIsInt32 and use it when negative zero is to be treated as zero. r=nbp
|
2013-11-02 14:29:44 -07:00 |
|
Benjamin Bouvier
|
e59ab012ea
|
Bug 913282: IsFloat32Representable function in mfbt; r=Waldo
--HG--
extra : rebase_source : 0d4d6f02b880c37d29e3e41e9d105365d9f941b0
|
2013-10-22 14:55:35 +02:00 |
|
Benjamin Bouvier
|
5dc4bbbc7b
|
Bug 913282: More Float32 operators: Abs; p=dougc,bbouvier; r=jonco,sstangl
dougc for the ARM parts, bbouvier for the rest.
|
2013-10-22 14:53:12 +02:00 |
|
Dan Gohman
|
77a1580baf
|
Bug 924637 - Document a somewhat counterintuitive case in ExponentComponent, and add test coverage for it. r=waldo
|
2013-10-09 06:41:42 -07:00 |
|
Benjamin Bouvier
|
d4da9a9d1a
|
Bug 913282: Add mfbt Float32 asserts and constants; r=Waldo
|
2013-09-20 12:08:49 -07:00 |
|
Dan Gohman
|
afa221f7a9
|
Bug 918350 - Change UnspecifiedNaN's bit pattern to be the all-ones NaN. r=waldo
|
2013-09-19 18:47:55 -07:00 |
|
Ehsan Akhgari
|
085494b95d
|
Bug 895322 - Part 1: Replace the usages of MOZ_STATIC_ASSERT with C++11 static_assert; r=Waldo
This patch was mostly generated by running the following scripts on the codebase, with some
manual changes made afterwards:
# static_assert.sh
#!/bin/bash
# Command to convert an NSPR integer type to the equivalent standard integer type
function convert() {
echo "Converting $1 to $2..."
find . ! -wholename "*nsprpub*" \
! -wholename "*security/nss*" \
! -wholename "*/.hg*" \
! -wholename "obj-ff-dbg*" \
! -name nsXPCOMCID.h \
! -name prtypes.h \
-type f \
\( -iname "*.cpp" \
-o -iname "*.h" \
-o -iname "*.cc" \
-o -iname "*.mm" \) | \
xargs -n 1 `dirname $0`/assert_replacer.py #sed -i -e "s/\b$1\b/$2/g"
}
convert MOZ_STATIC_ASSERT static_assert
hg rev --no-backup mfbt/Assertions.h \
media/webrtc/signaling/src/sipcc/core/includes/ccapi.h \
modules/libmar/src/mar_private.h \
modules/libmar/src/mar.h
# assert_replacer.py
#!/usr/bin/python
import sys
import re
pattern = re.compile(r"\bMOZ_STATIC_ASSERT\b")
def replaceInPlace(fname):
print fname
f = open(fname, "rw+")
lines = f.readlines()
for i in range(0, len(lines)):
while True:
index = re.search(pattern, lines[i])
if index != None:
index = index.start()
lines[i] = lines[i][0:index] + "static_assert" + lines[i][index+len("MOZ_STATIC_ASSERT"):]
for j in range(i + 1, len(lines)):
if lines[j].find(" ", index) == index:
lines[j] = lines[j][0:index] + lines[j][index+4:]
else:
break
else:
break
f.seek(0, 0)
f.truncate()
f.write("".join(lines))
f.close()
argc = len(sys.argv)
for i in range(1, argc):
replaceInPlace(sys.argv[i])
--HG--
extra : rebase_source : 4b4a4047d82f2c205b9fad8d56dfc3f1afc0b045
|
2013-07-18 13:59:53 -04:00 |
|
Ehsan Akhgari
|
3717325909
|
Bug 872127 - Part 2: Replace mozilla/StandardInteger.h with stdint.h; r=Waldo,ted
|
2013-07-30 10:25:31 -04:00 |
|
Ms2ger
|
f4ac238f7a
|
Bug 896341 - Update include guards and modelines in MFBT; r=Waldo
|
2013-07-24 09:41:39 +02:00 |
|
Jeff Walden
|
ce23667c3b
|
Bug 896842 - Implement mozilla::DoublesAreIdentical. r=luke
|
2013-06-18 15:35:03 -07:00 |
|
Jeff Walden
|
99f84749f1
|
Bug 798179 - Rewrite ToIntWidth to more simply act upon the actual bits of the IEEE-754 representation. r=froydnj
--HG--
extra : rebase_source : fb2da4e55b258b6b62c1c9449447fccff8c2012d
|
2013-06-07 13:22:45 -07:00 |
|
Nathan Froyd
|
dbba9baf39
|
Bug 858131 - rewrite FloatingPoint.h to be C++-only instead of C-compatible C++; r+original-author=Waldo
|
2013-05-01 16:55:13 -04:00 |
|
Jeff Walden
|
2997d7619b
|
Remove some extraneous includes and a function, all added in bug 714260. They were initially necessary when that patch was written, but they became vestigial during rebasing prior to landing, and this disuse wasn't noticed til now. r=lumpy
|
2012-04-19 16:36:31 -07:00 |
|
Jeff Walden
|
827586c908
|
Bug 714260 - Implement FloatingPoint.h to consolidate all IEEE-754 floating point operations in a single location. r=dmandelin for the js bits, r=Ms2ger for mfbt and the core bits
|
2012-01-23 03:43:16 -08:00 |
|