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...) Expand 10 before | Expand all | Expand 10 after 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_sin(double input); | |
100 double fast_cos(double input); | |
101 double fast_tan(double input); | |
102 double fast_log(double input); | 99 double fast_log(double input); |
103 double fast_exp(double input); | 100 double fast_exp(double input); |
104 double fast_sqrt(double input); | 101 double fast_sqrt(double input); |
105 // The custom exp implementation needs 16KB of lookup data; initialize it | 102 // The custom exp implementation needs 16KB of lookup data; initialize it |
106 // on demand. | 103 // on demand. |
107 void lazily_initialize_fast_exp(); | 104 void lazily_initialize_fast_exp(); |
108 | 105 |
109 // ---------------------------------------------------------------------------- | 106 // ---------------------------------------------------------------------------- |
110 // Fast TLS support | 107 // Fast TLS support |
111 | 108 |
(...skipping 479 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
591 char name_[kMaxThreadNameLength]; | 588 char name_[kMaxThreadNameLength]; |
592 int stack_size_; | 589 int stack_size_; |
593 Semaphore* start_semaphore_; | 590 Semaphore* start_semaphore_; |
594 | 591 |
595 DISALLOW_COPY_AND_ASSIGN(Thread); | 592 DISALLOW_COPY_AND_ASSIGN(Thread); |
596 }; | 593 }; |
597 | 594 |
598 } } // namespace v8::internal | 595 } } // namespace v8::internal |
599 | 596 |
600 #endif // V8_PLATFORM_H_ | 597 #endif // V8_PLATFORM_H_ |
OLD | NEW |