OLD | NEW |
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 78 matching lines...) Loading... |
89 #endif // _MSC_VER < 1800 | 89 #endif // _MSC_VER < 1800 |
90 | 90 |
91 #endif // V8_CC_MSVC | 91 #endif // V8_CC_MSVC |
92 | 92 |
93 namespace v8 { | 93 namespace v8 { |
94 namespace internal { | 94 namespace internal { |
95 | 95 |
96 double modulo(double x, double y); | 96 double modulo(double x, double y); |
97 | 97 |
98 // Custom implementation of math functions. | 98 // Custom implementation of math functions. |
99 double fast_log(double input); | |
100 double fast_exp(double input); | 99 double fast_exp(double input); |
101 double fast_sqrt(double input); | 100 double fast_sqrt(double input); |
102 // The custom exp implementation needs 16KB of lookup data; initialize it | 101 // The custom exp implementation needs 16KB of lookup data; initialize it |
103 // on demand. | 102 // on demand. |
104 void lazily_initialize_fast_exp(); | 103 void lazily_initialize_fast_exp(); |
105 | 104 |
106 // ---------------------------------------------------------------------------- | 105 // ---------------------------------------------------------------------------- |
107 // Fast TLS support | 106 // Fast TLS support |
108 | 107 |
109 #ifndef V8_NO_FAST_TLS | 108 #ifndef V8_NO_FAST_TLS |
(...skipping 498 matching lines...) Loading... |
608 char name_[kMaxThreadNameLength]; | 607 char name_[kMaxThreadNameLength]; |
609 int stack_size_; | 608 int stack_size_; |
610 Semaphore* start_semaphore_; | 609 Semaphore* start_semaphore_; |
611 | 610 |
612 DISALLOW_COPY_AND_ASSIGN(Thread); | 611 DISALLOW_COPY_AND_ASSIGN(Thread); |
613 }; | 612 }; |
614 | 613 |
615 } } // namespace v8::internal | 614 } } // namespace v8::internal |
616 | 615 |
617 #endif // V8_PLATFORM_H_ | 616 #endif // V8_PLATFORM_H_ |
OLD | NEW |