Reviewers: Benedikt Meurer,

Description:
Removed dead ceiling function.

Please review this at https://codereview.chromium.org/88133002/

SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge

Affected files (+0, -12 lines):
  src/platform-posix.cc
  src/platform-win32.cc
  src/platform.h


Index: src/platform-posix.cc
diff --git a/src/platform-posix.cc b/src/platform-posix.cc
index 923cd8700ed9a062c8ed8ad7a505da253ae084dd..879dcc81484196905fa82a9860e9e4c03b264bc2 100644
--- a/src/platform-posix.cc
+++ b/src/platform-posix.cc
@@ -288,12 +288,6 @@ void OS::DebugBreak() {
// ----------------------------------------------------------------------------
 // Math functions

-double ceiling(double x) {
-  // Correct buggy 'ceil' on some systems (i.e. FreeBSD, OS X 10.5)
-  return (-1.0 < x && x < 0.0) ? -0.0 : ceil(x);
-}
-
-
 double modulo(double x, double y) {
   return fmod(x, y);
 }
Index: src/platform-win32.cc
diff --git a/src/platform-win32.cc b/src/platform-win32.cc
index 35411bfdad089b5c278652d9567f851a543be1ff..ea11806cb4122cf2c79d80543178c6de43f7c39d 100644
--- a/src/platform-win32.cc
+++ b/src/platform-win32.cc
@@ -133,11 +133,6 @@ intptr_t OS::MaxVirtualMemory() {
 }


-double ceiling(double x) {
-  return ceil(x);
-}
-
-
 #if V8_TARGET_ARCH_IA32
 static void MemMoveWrapper(void* dest, const void* src, size_t size) {
   memmove(dest, src, size);
Index: src/platform.h
diff --git a/src/platform.h b/src/platform.h
index 8e524aeaf06f356c9a8f79de2daf6aedee023a9f..3bd87a98326f0c984447341be8355b5f95477d9a 100644
--- a/src/platform.h
+++ b/src/platform.h
@@ -93,7 +93,6 @@ inline int lrint(double flt) {
 namespace v8 {
 namespace internal {

-double ceiling(double x);
 double modulo(double x, double y);

 // Custom implementation of math functions.


--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to