[SCM] WebKit Debian packaging branch, webkit-1.1, updated. upstream/1.1.22-985-g3c00f00
kenneth at webkit.org
kenneth at webkit.org
Wed Mar 17 18:42:32 UTC 2010
The following commit has been merged in the webkit-1.1 branch:
commit a5a6c1a3cea336a8b66585d6aa3810925bbda06e
Author: kenneth at webkit.org <kenneth at webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date: Mon Mar 15 21:21:10 2010 +0000
Add a long long version of abs() for MSVC.
Reviewed by Adam Roben.
* wtf/MathExtras.h:
(abs):
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@56015 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/JavaScriptCore/ChangeLog b/JavaScriptCore/ChangeLog
index 5425838..4a67344 100644
--- a/JavaScriptCore/ChangeLog
+++ b/JavaScriptCore/ChangeLog
@@ -1,3 +1,12 @@
+2010-03-04 Kenneth Rohde Christiansen <kenneth at webkit.org>
+
+ Reviewed by Adam Roben.
+
+ Add a long long version of abs() for MSVC.
+
+ * wtf/MathExtras.h:
+ (abs):
+
2010-03-15 Gabor Loki <loki at webkit.org>
Reviewed by Gavin Barraclough.
diff --git a/JavaScriptCore/wtf/MathExtras.h b/JavaScriptCore/wtf/MathExtras.h
index 8666724..a0c7466 100644
--- a/JavaScriptCore/wtf/MathExtras.h
+++ b/JavaScriptCore/wtf/MathExtras.h
@@ -123,6 +123,8 @@ inline double trunc(double num) { return num > 0 ? floor(num) : ceil(num); }
#if COMPILER(MSVC)
+inline long long abs(long long num) { return _abs64(num); }
+
inline bool isinf(double num) { return !_finite(num) && !_isnan(num); }
inline bool isnan(double num) { return !!_isnan(num); }
inline bool signbit(double num) { return _copysign(1.0, num) < 0; }
--
WebKit Debian packaging
More information about the Pkg-webkit-commits
mailing list