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

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

Issue 148593004: A64: Synchronize with r18084. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/a64
Patch Set: Created 6 years, 10 months 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-freebsd.cc ('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 272 matching lines...) Expand 10 before | Expand all | Expand 10 after
283 asm("int $3"); 283 asm("int $3");
284 #else 284 #else
285 #error Unsupported host architecture. 285 #error Unsupported host architecture.
286 #endif 286 #endif
287 } 287 }
288 288
289 289
290 // ---------------------------------------------------------------------------- 290 // ----------------------------------------------------------------------------
291 // Math functions 291 // Math functions
292 292
293 double ceiling(double x) {
294 // Correct buggy 'ceil' on some systems (i.e. FreeBSD, OS X 10.5)
295 return (-1.0 < x && x < 0.0) ? -0.0 : ceil(x);
296 }
297
298
299 double modulo(double x, double y) { 293 double modulo(double x, double y) {
300 return fmod(x, y); 294 return fmod(x, y);
301 } 295 }
302 296
303 297
304 #define UNARY_MATH_FUNCTION(name, generator) \ 298 #define UNARY_MATH_FUNCTION(name, generator) \
305 static UnaryMathFunction fast_##name##_function = NULL; \ 299 static UnaryMathFunction fast_##name##_function = NULL; \
306 void init_fast_##name##_function() { \ 300 void init_fast_##name##_function() { \
307 fast_##name##_function = generator; \ 301 fast_##name##_function = generator; \
308 } \ 302 } \
(...skipping 467 matching lines...) Expand 10 before | Expand all | Expand 10 after
776 770
777 void Thread::SetThreadLocal(LocalStorageKey key, void* value) { 771 void Thread::SetThreadLocal(LocalStorageKey key, void* value) {
778 pthread_key_t pthread_key = LocalKeyToPthreadKey(key); 772 pthread_key_t pthread_key = LocalKeyToPthreadKey(key);
779 int result = pthread_setspecific(pthread_key, value); 773 int result = pthread_setspecific(pthread_key, value);
780 ASSERT_EQ(0, result); 774 ASSERT_EQ(0, result);
781 USE(result); 775 USE(result);
782 } 776 }
783 777
784 778
785 } } // namespace v8::internal 779 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/platform-freebsd.cc ('k') | src/platform-win32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698