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

Side by Side Diff: src/platform.h

Issue 11418149: Faster implementation of Math.exp() (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: fix Win build Created 8 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/ia32/lithium-ia32.cc ('k') | src/platform-posix.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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 #else 112 #else
113 typedef intptr_t AtomicWord; 113 typedef intptr_t AtomicWord;
114 #endif 114 #endif
115 115
116 class Semaphore; 116 class Semaphore;
117 class Mutex; 117 class Mutex;
118 118
119 double ceiling(double x); 119 double ceiling(double x);
120 double modulo(double x, double y); 120 double modulo(double x, double y);
121 121
122 // Custom implementation of sin, cos, tan and log. 122 // Custom implementation of math functions.
123 double fast_sin(double input); 123 double fast_sin(double input);
124 double fast_cos(double input); 124 double fast_cos(double input);
125 double fast_tan(double input); 125 double fast_tan(double input);
126 double fast_log(double input); 126 double fast_log(double input);
127 double fast_exp(double input);
127 double fast_sqrt(double input); 128 double fast_sqrt(double input);
129 // The custom exp implementation needs 16KB of lookup data; initialize it
130 // on demand.
131 void lazily_initialize_fast_exp();
128 132
129 // Forward declarations. 133 // Forward declarations.
130 class Socket; 134 class Socket;
131 135
132 // ---------------------------------------------------------------------------- 136 // ----------------------------------------------------------------------------
133 // OS 137 // OS
134 // 138 //
135 // This class has static methods for the different platform specific 139 // This class has static methods for the different platform specific
136 // functions. Add methods here to cope with differences between the 140 // functions. Add methods here to cope with differences between the
137 // supported platforms. 141 // supported platforms.
(...skipping 673 matching lines...) Expand 10 before | Expand all | Expand 10 after
811 Atomic32 has_processing_thread_; 815 Atomic32 has_processing_thread_;
812 PlatformData* data_; // Platform specific data. 816 PlatformData* data_; // Platform specific data.
813 int samples_taken_; // Counts stack samples taken. 817 int samples_taken_; // Counts stack samples taken.
814 DISALLOW_IMPLICIT_CONSTRUCTORS(Sampler); 818 DISALLOW_IMPLICIT_CONSTRUCTORS(Sampler);
815 }; 819 };
816 820
817 821
818 } } // namespace v8::internal 822 } } // namespace v8::internal
819 823
820 #endif // V8_PLATFORM_H_ 824 #endif // V8_PLATFORM_H_
OLDNEW
« no previous file with comments | « src/ia32/lithium-ia32.cc ('k') | src/platform-posix.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698