/external/clang/test/Sema/ |
usual-float.c | 7 const float PI = 3.142; 10 float ang = (float) tindex * (-dir*2.0f*PI/n);
|
/external/llvm/include/llvm/ |
PassAnalysisSupport.h | 129 // Find pass that is implementing PI. 130 Pass *findImplPass(AnalysisID PI) { 133 if (AnalysisImpls[i].first == PI) { 141 // Find pass that is implementing PI. Initialize pass for Function F. 142 Pass *findImplPass(Pass *P, AnalysisID PI, Function &F); 144 void addAnalysisImplsPair(AnalysisID PI, Pass *P) { 145 if (findImplPass(PI) == P) 147 std::pair<AnalysisID, Pass*> pir = std::make_pair(PI,P); 181 const void *PI = &AnalysisType::ID; 183 Pass *ResultPass = Resolver->getAnalysisIfAvailable(PI, true) [all...] |
PassRegistry.h | 56 void registerPass(const PassInfo &PI, bool ShouldFree = false); 60 void unregisterPass(const PassInfo &PI);
|
PassSupport.h | 56 PassInfo(const char *name, const char *arg, const void *pi, 58 : PassName(name), PassArgument(arg), PassID(pi), 64 PassInfo(const char *name, const void *pi) 65 : PassName(name), PassArgument(""), PassID(pi), 150 PassInfo *PI = new PassInfo(name, arg, & passName ::ID, \ 152 Registry.registerPass(*PI, true); \ 153 return PI; \ 168 PassInfo *PI = new PassInfo(name, arg, & passName ::ID, \ 170 Registry.registerPass(*PI, true); \ 171 return PI; \ [all...] |
/frameworks/base/core/java/android/gesture/ |
Instance.java | 30 0, (float) (Math.PI / 4), (float) (Math.PI / 2), (float) (Math.PI * 3 / 4), 31 (float) Math.PI, -0, (float) (-Math.PI / 4), (float) (-Math.PI / 2), 32 (float) (-Math.PI * 3 / 4), (float) -Math.PI
|
/external/webkit/Source/JavaScriptCore/tests/mozilla/ecma/Math/ |
15.8.2.5.js | 54 array[item++] = new TestCase( SECTION, "Math.atan2(1, 0)", Math.PI/2, Math.atan2(1,0) ); 55 array[item++] = new TestCase( SECTION, "Math.atan2(1,-0)", Math.PI/2, Math.atan2(1,-0) ); 58 array[item++] = new TestCase( SECTION, "Math.atan2(0, -0)", Math.PI, Math.atan2(0,-0) ); 59 array[item++] = new TestCase( SECTION, "Math.atan2(0, -1)", Math.PI, Math.atan2(0, -1) ); 65 array[item++] = new TestCase( SECTION, "Math.atan2(-0, -0)", -Math.PI, Math.atan2(-0, -0) ); 66 array[item++] = new TestCase( SECTION, "Math.atan2(-0, -1)", -Math.PI, Math.atan2(-0, -1) ); 67 array[item++] = new TestCase( SECTION, "Math.atan2(-1, 0)", -Math.PI/2, Math.atan2(-1, 0) ); 68 array[item++] = new TestCase( SECTION, "Math.atan2(-1, -0)", -Math.PI/2, Math.atan2(-1, -0) ); 70 array[item++] = new TestCase( SECTION, "Math.atan2(1,-Infinity)", Math.PI, Math.atan2(1, Number.NEGATIVE_INFINITY) ); 75 array[item++] = new TestCase( SECTION, "Math.atan2(-1,-Infinity)", -Math.PI, Math.atan2(-1,Number.NEGATIVE_INFINITY) ) [all...] |
15.8.2.2.js | 27 range is from +0 to +PI. special cases: 53 array[item++] = new TestCase( SECTION, "Math.acos(null)", Math.PI/2, Math.acos(null) ); 57 array[item++] = new TestCase( SECTION, "Math.acos('0')", Math.PI/2, Math.acos('0') ); 59 array[item++] = new TestCase( SECTION, "Math.acos('-1')", Math.PI, Math.acos('-1') ); 64 array[item++] = new TestCase( SECTION, "Math.acos(-1)", Math.PI, Math.acos(-1) ); 65 array[item++] = new TestCase( SECTION, "Math.acos(0)", Math.PI/2, Math.acos(0) ); 66 array[item++] = new TestCase( SECTION, "Math.acos(-0)", Math.PI/2, Math.acos(-0) ); 67 array[item++] = new TestCase( SECTION, "Math.acos(Math.SQRT1_2)", Math.PI/4, Math.acos(Math.SQRT1_2)); 68 array[item++] = new TestCase( SECTION, "Math.acos(-Math.SQRT1_2)", Math.PI/4*3, Math.acos(-Math.SQRT1_2)); 69 array[item++] = new TestCase( SECTION, "Math.acos(0.9999619230642)", Math.PI/360, Math.acos(0.9999619230642)) [all...] |
15.8.2.3.js | 27 range is from -PI/2 to +PI/2. special cases: 58 array[item++] = new TestCase( SECTION, "Math.asin('1')", Math.PI/2, Math.asin("1") ); 59 array[item++] = new TestCase( SECTION, "Math.asin('-1')", -Math.PI/2, Math.asin("-1") ); 60 array[item++] = new TestCase( SECTION, "Math.asin(Math.SQRT1_2+'')", Math.PI/4, Math.asin(Math.SQRT1_2+'') ); 61 array[item++] = new TestCase( SECTION, "Math.asin(-Math.SQRT1_2+'')", -Math.PI/4, Math.asin(-Math.SQRT1_2+'') ); 70 array[item++] = new TestCase( SECTION, "Math.asin(1)", Math.PI/2, Math.asin(1) ); 71 array[item++] = new TestCase( SECTION, "Math.asin(-1)", -Math.PI/2, Math.asin(-1) ); 72 array[item++] = new TestCase( SECTION, "Math.asin(Math.SQRT1_2))", Math.PI/4, Math.asin(Math.SQRT1_2) ); 73 array[item++] = new TestCase( SECTION, "Math.asin(-Math.SQRT1_2))", -Math.PI/4, Math.asin(-Math.SQRT1_2)) [all...] |
15.8.2.4.js | 27 range is from -PI/2 to +PI/2. special cases: 31 - if x == +Infinity, the result is approximately +PI/2 32 - if x == -Infinity, the result is approximately -PI/2 62 array[item++] = new TestCase( SECTION, "Math.atan('1')", Math.PI/4, Math.atan('1') ); 63 array[item++] = new TestCase( SECTION, "Math.atan('-1')", -Math.PI/4, Math.atan('-1') ); 64 array[item++] = new TestCase( SECTION, "Math.atan('Infinity)", Math.PI/2, Math.atan('Infinity') ); 65 array[item++] = new TestCase( SECTION, "Math.atan('-Infinity)", -Math.PI/2, Math.atan('-Infinity') ); 70 array[item++] = new TestCase( SECTION, "Math.atan(Infinity)", Math.PI/2, Math.atan(Number.POSITIVE_INFINITY) ); 71 array[item++] = new TestCase( SECTION, "Math.atan(-Infinity)", -Math.PI/2, Math.atan(Number.NEGATIVE_INFINITY) ) [all...] |
15.8.2.7.js | 69 array[item++] = new TestCase( SECTION, "Math.cos(Math.PI*2)", 1, Math.cos(Math.PI*2) ); 70 array[item++] = new TestCase( SECTION, "Math.cos(Math.PI/4)", Math.SQRT2/2, Math.cos(Math.PI/4) ); 71 array[item++] = new TestCase( SECTION, "Math.cos(Math.PI/2)", 0, Math.cos(Math.PI/2) ); 72 array[item++] = new TestCase( SECTION, "Math.cos(3*Math.PI/4)", -Math.SQRT2/2, Math.cos(3*Math.PI/4) ); 73 array[item++] = new TestCase( SECTION, "Math.cos(Math.PI)", -1, Math.cos(Math.PI) ); [all...] |
15.8.2.18.js | 63 array[item++] = new TestCase( SECTION, "Math.tan(Math.PI/4)", 1, Math.tan(Math.PI/4)); 64 array[item++] = new TestCase( SECTION, "Math.tan(3*Math.PI/4)", -1, Math.tan(3*Math.PI/4)); 65 array[item++] = new TestCase( SECTION, "Math.tan(Math.PI)", -0, Math.tan(Math.PI)); 66 array[item++] = new TestCase( SECTION, "Math.tan(5*Math.PI/4)", 1, Math.tan(5*Math.PI/4)); 67 array[item++] = new TestCase( SECTION, "Math.tan(7*Math.PI/4)", -1, Math.tan(7*Math.PI/4)) [all...] |
/external/proguard/src/proguard/gui/splash/ |
SineTiming.java | 51 return 0.5 + 0.5 * Math.sin(2.0 * Math.PI * (time + phase) / period);
|
/frameworks/base/core/java/android/view/animation/ |
AccelerateDecelerateInterpolator.java | 36 return (float)(Math.cos((input + 1) * Math.PI) / 2.0f) + 0.5f;
|
/external/llvm/lib/Transforms/Scalar/ |
TailDuplication.cpp | 120 pred_iterator PI = pred_begin(Dest), PE = pred_end(Dest); 121 ++PI; 122 if (PI == PE) return false; // Exactly one predecessor! 153 for (; PI != PE; ++PI) 202 pred_iterator PI = pred_begin(SrcBlock), PE = pred_end(SrcBlock); 203 if (PI == PE || ++PI != PE) return 0; 209 PI = pred_begin(DstBlock); PE = pred_end(DstBlock); 211 BasicBlock *P = *PI; [all...] |
BasicBlockPlacement.cpp | 56 /// PI - The profile information that is guiding us. 58 ProfileInfo *PI; 88 PI = &getAnalysis<ProfileInfo>(); 134 double MaxExecutionCount = PI->getExecutionCount(*SI); 140 double Count = PI->getExecutionCount(*SI);
|
/external/llvm/include/llvm/Analysis/ |
BlockFrequencyImpl.h | 170 PI = GraphTraits< Inverse<BlockT *> >::child_begin(BB), 173 if (PI == PE) 176 BlockT *Pred = *PI; 178 ++PI; 179 if (PI != PE) 207 PI = GraphTraits< Inverse<BlockT *> >::child_begin(BB), 209 PI != PE; ++PI) { 210 BlockT *Pred = *PI; 249 PI = GraphTraits< Inverse<BlockT *> >::child_begin(Head) [all...] |
LibCallAliasAnalysis.h | 60 virtual void *getAdjustedAnalysisPointer(const void *PI) { 61 if (PI == &AliasAnalysis::ID)
|
/packages/apps/VideoEditor/src/com/android/videoeditor/widgets/ |
ZoomControl.java | 33 private static final double MAX_ANGLE = Math.PI / 3; 215 if ((alpha >= -(Math.PI / 2)) && (alpha <= -MAX_ANGLE)) { 219 if ((alpha >= MAX_ANGLE) && (alpha <= (Math.PI / 2))) { 239 beta = ((mMaxProgress - mProgress) * mInterval) + Math.PI + MAX_ANGLE; 243 if (beta >= 0 && beta <= Math.PI / 2) { 247 } else if (beta > Math.PI / 2 && beta < (Math.PI / 2) + MAX_ANGLE) { 248 alpha = beta - Math.PI; 251 } else if (beta <= 2 * Math.PI && beta > (3 * Math.PI) / 2) [all...] |
/external/icu4c/i18n/ |
astro.cpp | 22 #if defined (PI) 23 #undef PI 202 const double CalendarAstronomer::PI = 3.14159265358979323846; 204 #define CalendarAstronomer_PI2 (CalendarAstronomer::PI*2.0) 205 #define RAD_HOUR ( 12 / CalendarAstronomer::PI ) // radians -> hours 206 #define DEG_RAD ( CalendarAstronomer::PI / 180 ) // degrees -> radians 207 #define RAD_DEG ( 180 / CalendarAstronomer::PI ) // radians -> degrees 218 * Normalize an angle so that it's in the range 0 - 2pi. 219 * For positive angles this is just (angle % 2pi), but the Java 223 return normalize(angle, CalendarAstronomer::PI * 2.0) [all...] |
/external/webkit/PerformanceTests/SunSpider/tests/sunspider-0.9/ |
3d-morph.js | 31 var PI2nx = Math.PI * 8/nx 33 var f30 = -(50 * sin(f*Math.PI*2))
|
/external/webkit/PerformanceTests/SunSpider/tests/sunspider-0.9.1/ |
3d-morph.js | 31 var PI2nx = Math.PI * 8/nx 33 var f30 = -(50 * sin(f*Math.PI*2))
|
/external/llvm/lib/VMCore/ |
BasicBlock.cpp | 178 pred_iterator PI = pred_begin(this), E = pred_end(this); 179 if (PI == E) return 0; // No preds. 180 BasicBlock *ThePred = *PI; 181 ++PI; 182 return (PI == E) ? ThePred : 0 /*multiple preds*/; 191 pred_iterator PI = pred_begin(this), E = pred_end(this); 192 if (PI == E) return 0; // No preds. 193 BasicBlock *PredBB = *PI; 194 ++PI; 195 for (;PI != E; ++PI) [all...] |
PassRegistry.cpp | 104 void PassRegistry::registerPass(const PassInfo &PI, bool ShouldFree) { 108 Impl->PassInfoMap.insert(std::make_pair(PI.getTypeInfo(),&PI)).second; 111 Impl->PassInfoStringMap[PI.getPassArgument()] = &PI; 116 (*I)->passRegistered(&PI); 118 if (ShouldFree) Impl->ToFree.push_back(&PI); 121 void PassRegistry::unregisterPass(const PassInfo &PI) { 125 Impl->PassInfoMap.find(PI.getTypeInfo()); 130 Impl->PassInfoStringMap.erase(PI.getPassArgument()) [all...] |
/external/llvm/lib/CodeGen/ |
GCMetadata.cpp | 165 for (GCFunctionInfo::iterator PI = FD->begin(), 166 PE = FD->end(); PI != PE; ++PI) { 168 OS << "\t" << PI->Label->getName() << ": " 169 << DescKind(PI->Kind) << ", live = {"; 171 for (GCFunctionInfo::live_iterator RI = FD->live_begin(PI), 172 RE = FD->live_end(PI);;) {
|
/external/llvm/lib/Analysis/ |
ProfileVerifierPass.cpp | 46 ProfileInfoT<FType, BType> *PI; 96 double BBWeight = PI->getExecutionCount(BB); 104 typename ProfileInfoT<FType, BType>::Edge E = PI->getEdge(*bbi,BB); 105 double EdgeWeight = PI->getEdgeWeight(E); 119 typename ProfileInfoT<FType, BType>::Edge E = PI->getEdge(BB,*bbi); 120 double EdgeWeight = PI->getEdgeWeight(E); 201 double EdgeWeight = PI->getEdgeWeight(E); 250 DI.inWeight += ReadOrAssert(PI->getEdge(0,BB)); 255 DI.inWeight += ReadOrAssert(PI->getEdge(*bpi,BB)); 266 double w = PI->getEdgeWeight(PI->getEdge(BB,0)) [all...] |