Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(68)

Side by Side Diff: src/platform-posix.cc

Issue 88133002: Removed dead ceiling function. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/platform.h ('k') | src/platform-win32.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after
281 asm("int $3"); 281 asm("int $3");
282 #else 282 #else
283 #error Unsupported host architecture. 283 #error Unsupported host architecture.
284 #endif 284 #endif
285 } 285 }
286 286
287 287
288 // ---------------------------------------------------------------------------- 288 // ----------------------------------------------------------------------------
289 // Math functions 289 // Math functions
290 290
291 double ceiling(double x) {
292 // Correct buggy 'ceil' on some systems (i.e. FreeBSD, OS X 10.5)
293 return (-1.0 < x && x < 0.0) ? -0.0 : ceil(x);
294 }
295
296
297 double modulo(double x, double y) { 291 double modulo(double x, double y) {
298 return fmod(x, y); 292 return fmod(x, y);
299 } 293 }
300 294
301 295
302 #define UNARY_MATH_FUNCTION(name, generator) \ 296 #define UNARY_MATH_FUNCTION(name, generator) \
303 static UnaryMathFunction fast_##name##_function = NULL; \ 297 static UnaryMathFunction fast_##name##_function = NULL; \
304 void init_fast_##name##_function() { \ 298 void init_fast_##name##_function() { \
305 fast_##name##_function = generator; \ 299 fast_##name##_function = generator; \
306 } \ 300 } \
(...skipping 467 matching lines...) Expand 10 before | Expand all | Expand 10 after
774 768
775 void Thread::SetThreadLocal(LocalStorageKey key, void* value) { 769 void Thread::SetThreadLocal(LocalStorageKey key, void* value) {
776 pthread_key_t pthread_key = LocalKeyToPthreadKey(key); 770 pthread_key_t pthread_key = LocalKeyToPthreadKey(key);
777 int result = pthread_setspecific(pthread_key, value); 771 int result = pthread_setspecific(pthread_key, value);
778 ASSERT_EQ(0, result); 772 ASSERT_EQ(0, result);
779 USE(result); 773 USE(result);
780 } 774 }
781 775
782 776
783 } } // namespace v8::internal 777 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/platform.h ('k') | src/platform-win32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698