/external/valgrind/helgrind/tests/ |
H A D | tc05_simple_race.c | 11 pthread_mutex_t mu = PTHREAD_MUTEX_INITIALIZER; variable 16 pthread_mutex_lock( &mu ); 18 pthread_mutex_unlock( &mu ); 34 pthread_mutex_lock( &mu ); 36 pthread_mutex_unlock( &mu );
|
H A D | tc06_two_races.c | 10 pthread_mutex_t mu = PTHREAD_MUTEX_INITIALIZER; variable 15 pthread_mutex_lock( &mu ); 17 pthread_mutex_unlock( &mu ); 32 pthread_mutex_lock( &mu ); 34 pthread_mutex_unlock( &mu );
|
/external/clang/test/SemaCXX/ |
H A D | warn-thread-safety-negative.cpp | 50 Mutex mu; member in class:SimpleTest::Bar 51 int a GUARDED_BY(mu); 54 void baz() EXCLUSIVE_LOCKS_REQUIRED(!mu) { 55 mu.Lock(); 57 mu.Unlock(); 63 Mutex mu; member in class:SimpleTest::Foo 64 int a GUARDED_BY(mu); 68 mu.Lock(); // expected-warning {{acquiring mutex 'mu' requires negative capability '!mu'}} [all...] |
H A D | warn-thread-safety-verbose.cpp | 45 Mutex mu; member in class:Test 46 int a GUARDED_BY(mu); // expected-note3 {{Guarded_by declared here.}} 48 void foo1() EXCLUSIVE_LOCKS_REQUIRED(mu); 49 void foo2() SHARED_LOCKS_REQUIRED(mu); 50 void foo3() LOCKS_EXCLUDED(mu); 53 a = 0; // expected-warning {{writing variable 'a' requires holding mutex 'mu' exclusively}} 57 int b = a; // expected-warning {{reading variable 'a' requires holding mutex 'mu'}} 61 foo1(); // expected-warning {{calling function 'foo1' requires holding mutex 'mu' exclusively}} 65 foo2(); // expected-warning {{calling function 'foo2' requires holding mutex 'mu'}} 69 mu [all...] |
H A D | warn-thread-safety-parsing.cpp | 45 Mutex mu; member in class:MuWrapper 47 return mu; 50 return μ 344 int gb_var_arg_1 GUARDED_BY(muWrapper.mu); 345 int gb_var_arg_2 GUARDED_BY(muDoubleWrapper.muWrapper->mu); 357 int gb_var_arg_bad_2 GUARDED_BY("mu"); // \ 415 int * pgb_var_arg_1 PT_GUARDED_BY(muWrapper.mu); 416 int * pgb_var_arg_2 PT_GUARDED_BY(muDoubleWrapper.muWrapper->mu); 428 int * pgb_var_arg_bad_2 PT_GUARDED_BY("mu"); // \ 476 Mutex aa_var_arg_1 ACQUIRED_AFTER(muWrapper.mu); 1282 Mutex mu; member in class:FooLate 1348 Mutex mu; member in class:NestedClassLateDecl::Foo::Bar 1461 mutable Mutex mu; member in class:StaticScopeTest::Foo [all...] |
H A D | warn-thread-safety-analysis.cpp | 48 MutexLock(Mutex *mu) EXCLUSIVE_LOCK_FUNCTION(mu); 49 MutexLock(Mutex *mu, bool adopt) EXCLUSIVE_LOCKS_REQUIRED(mu); 55 ReaderMutexLock(Mutex *mu) SHARED_LOCK_FUNCTION(mu); 56 ReaderMutexLock(Mutex *mu, bool adopt) SHARED_LOCKS_REQUIRED(mu); 62 ReleasableMutexLock(Mutex *mu) EXCLUSIVE_LOCK_FUNCTION(mu); 151 Mutex mu; member in class:MutexWrapper 557 Mutex mu; member in class:LateFoo 566 Mutex mu; member in class:LateBar 600 Mutex mu; local 896 Mutex mu; member in namespace:thread_annot_lock_22 908 int res GUARDED_BY(mu) = 5; member in namespace:thread_annot_lock_22 1089 Mutex mu; member in namespace:thread_annot_lock_66_modified 1176 Mutex mu; member in class:thread_annot_lock_30_modified::Bar 1314 Mutex mu; member in namespace:thread_annot_lock_21 1327 int res GUARDED_BY(mu) = 5; member in namespace:thread_annot_lock_21 1495 Mutex mu; member in namespace:thread_annot_lock_67_modified 1524 Mutex mu; member in class:substitution_test::MyData 1709 Mutex mu; member in struct:TryLockTest::TestTryLock 2379 Mutex mu; member in class:TrylockJoinPoint::Foo 4140 Mutex mu; member in class:LogicalConditionalTryLock::Foo 4466 struct MuCell { Mutex* mu; }; member in struct:AttributeExpressionCornerCases::MapTest::MuCell 4489 SmartPtr<Mutex> mu; member in class:AttributeExpressionCornerCases::PreciseSmartPtr 4503 SmartPtr<Mutex> mu; member in class:AttributeExpressionCornerCases::SmartRedeclare 4565 Mutex mu; member in class:NegativeRequirements::Bar 4578 Mutex mu; member in class:NegativeRequirements::Foo 4673 Mutex mu; member in class:AssertSharedExclusive::Foo 4693 Mutex mu; member in class:RangeBasedForAndReferences::Foo 4778 Mutex mu; member in class:PassByRefTest::Bar 5066 Mutex mu; member in class:ScopedAdoptTest::Foo 5124 Mutex mu; member in class:TestReferenceNoThreadSafetyAnalysis::Bar [all...] |
/external/iproute2/netem/ |
H A D | stats.c | 24 double mu=0.0, sigma=0.0, sumsquare=0.0, sum=0.0, top=0.0, rho=0.0; local 43 mu = sum/(double)n; 44 sigma = sqrt((sumsquare - (double)n*mu*mu)/(double)(n-1)); 47 top += ((double)x[i]-mu)*((double)x[i-1]-mu); 48 sigma2 += ((double)x[i-1] - mu)*((double)x[i-1] - mu); 53 printf("mu = %12.6f\n", mu); [all...] |
H A D | maketable.c | 51 arraystats(double *x, int limit, double *mu, double *sigma, double *rho) argument 62 *mu = sum/(double)n; 63 *sigma = sqrt((sumsquare - (double)n*(*mu)*(*mu))/(double)(n-1)); 66 top += ((double)x[i]- *mu)*((double)x[i-1]- *mu); 67 sigma2 += ((double)x[i-1] - *mu)*((double)x[i-1] - *mu); 93 makedist(double *x, int limit, double mu, double sigma) argument 107 input = (x[i]-mu)/sigm 200 double mu, sigma, rho; local [all...] |
H A D | normal.c | 18 normal(double x, double mu, double sigma) argument 20 return .5 + .5*erf((x-mu)/(sqrt(2.0)*sigma));
|
/external/valgrind/memcheck/tests/ |
H A D | reach_thread_register.c | 14 pthread_mutex_t mu = PTHREAD_MUTEX_INITIALIZER; variable 23 pthread_mutex_lock(&mu); 33 pthread_mutex_unlock(&mu); 35 pthread_mutex_lock(&mu); 37 pthread_mutex_unlock(&mu);
|
/external/regex-re2/util/ |
H A D | atomicops.h | 49 re2::Mutex mu; local 50 re2::MutexLock l(&mu);
|
H A D | mutex.h | 148 // MutexLock(mu) acquires mu when constructed and releases it when destroyed. 151 explicit MutexLock(Mutex *mu) : mu_(mu) { mu_->Lock(); } argument 163 explicit ReaderMutexLock(Mutex *mu) : mu_(mu) { mu_->ReaderLock(); } argument 174 explicit WriterMutexLock(Mutex *mu) : mu_(mu) { mu_->WriterLock(); } argument 183 // Catch bug where variable name is omitted, e.g. MutexLock (&mu);
|
/external/apache-commons-math/src/main/java/org/apache/commons/math/stat/inference/ |
H A D | TTest.java | 52 * <code>mu = 0</code> and the sample array consisting of the (signed) 82 * {@link #tTest(double, double[])} with <code>mu = 0</code> and the sample 152 * @param mu comparison constant 157 double t(double mu, double[] observed) argument 162 * <code>sampleStats</code> to <code>mu</code>. 170 * @param mu comparison constant 175 double t(double mu, StatisticalSummary sampleStats) argument 319 * comparing the mean of the input array with the constant <code>mu</code>. 323 * <code>mu</code> in favor of the two-sided alternative that the mean 324 * is different from <code>mu</cod 342 tTest(double mu, double[] sample) argument 379 tTest(double mu, double[] sample, double alpha) argument 409 tTest(double mu, StatisticalSummary sampleStats) argument 447 tTest( double mu, StatisticalSummary sampleStats, double alpha) argument [all...] |
H A D | TTestImpl.java | 68 * <code>mu = 0</code> and the sample array consisting of the (signed) 106 * {@link #tTest(double, double[])} with <code>mu = 0</code> and the sample 183 * @param mu comparison constant 188 public double t(double mu, double[] observed) argument 191 return t(StatUtils.mean(observed), mu, StatUtils.variance(observed), 198 * <code>sampleStats</code> to <code>mu</code>. 206 * @param mu comparison constant 211 public double t(double mu, StatisticalSummary sampleStats) argument 214 return t(sampleStats.getMean(), mu, sampleStats.getVariance(), 386 * comparing the mean of the input array with the constant <code>mu</cod 409 tTest(double mu, double[] sample) argument 451 tTest(double mu, double[] sample, double alpha) argument 485 tTest(double mu, StatisticalSummary sampleStats) argument 528 tTest( double mu, StatisticalSummary sampleStats, double alpha) argument 913 t(double m, double mu, double v, double n) argument 963 tTest(double m, double mu, double v, double n) argument [all...] |
H A D | TestUtils.java | 226 public static double t(double mu, double[] observed) argument 228 return tTest.t(mu, observed); 234 public static double t(double mu, StatisticalSummary sampleStats) argument 236 return tTest.t(mu, sampleStats); 259 public static boolean tTest(double mu, double[] sample, double alpha) argument 261 return tTest.tTest(mu, sample, alpha); 267 public static double tTest(double mu, double[] sample) argument 269 return tTest.tTest(mu, sample); 275 public static boolean tTest(double mu, StatisticalSummary sampleStats, argument 278 return tTest. tTest(mu, sampleStat 284 tTest(double mu, StatisticalSummary sampleStats) argument [all...] |
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/math/ec/ |
H A D | Tnaf.java | 77 * @param mu The parameter <code>μ</code> of the elliptic curve. 82 public static BigInteger norm(final byte mu, ZTauElement lambda) argument 95 if (mu == 1) 99 else if (mu == -1) 105 throw new IllegalArgumentException("mu must be 1 or -1"); 116 * @param mu The parameter <code>μ</code> of the elliptic curve. 123 public static SimpleBigDecimal norm(final byte mu, SimpleBigDecimal u, argument 137 if (mu 166 round(SimpleBigDecimal lambda0, SimpleBigDecimal lambda1, byte mu) argument 314 tauAdicNaf(byte mu, ZTauElement lambda) argument 447 getLucas(byte mu, int k, boolean doV) argument 502 getTw(byte mu, int w) argument 611 partModReduction(BigInteger k, int m, byte a, BigInteger[] s, byte mu, byte c) argument 735 tauAdicWNaf(byte mu, ZTauElement lambda, byte width, BigInteger pow2w, BigInteger tw, ZTauElement[] alpha) argument [all...] |
H A D | WTauNafMultiplier.java | 34 byte mu = Tnaf.getMu(a); 37 ZTauElement rho = Tnaf.partModReduction(k, m, a, s, mu, (byte)10); 39 return multiplyWTnaf(p, rho, curve.getPreCompInfo(p, PRECOMP_NAME), a, mu); 53 PreCompInfo preCompInfo, byte a, byte mu) 57 BigInteger tw = Tnaf.getTw(mu, Tnaf.WIDTH); 59 byte[]u = Tnaf.tauAdicWNaf(mu, lambda, Tnaf.WIDTH, 52 multiplyWTnaf(ECPoint.AbstractF2m p, ZTauElement lambda, PreCompInfo preCompInfo, byte a, byte mu) argument
|
/external/apache-commons-math/src/main/java/org/apache/commons/math/distribution/ |
H A D | SaddlePointExpansion.java | 142 * @param mu the average. 145 static double getDeviancePart(double x, double mu) { argument 147 if (FastMath.abs(x - mu) < 0.1 * (x + mu)) { 148 double d = x - mu; 149 double v = d / (x + mu); 163 ret = x * FastMath.log(x / mu) + mu - x;
|
/external/apache-commons-math/src/main/java/org/apache/commons/math/random/ |
H A D | ValueServer.java | 38 * mean = <code>mu</code> </li> 40 * with mean = <code>mu</code></li> 42 * mean = <code>mu</code> and 44 * <li> CONSTANT_MODE -- returns <code>mu</code> every time.</li></ul></p> 57 /** Uniform random deviates with mean = μ. */ 60 /** Exponential random deviates with mean = μ. */ 63 /** Gaussian random deviates with mean = μ, std dev = σ. */ 66 /** Always return mu */ 76 private double mu = 0.0; field in class:ValueServer 122 case CONSTANT_MODE: return mu; 284 setMu(double mu) argument [all...] |
H A D | RandomData.java | 180 * @param mu Mean of the distribution 182 * @return random value from Gaussian distribution with mean = mu, 185 double nextGaussian(double mu, double sigma); argument 196 * <li><code>mu >= 0</code> (otherwise an IllegalArgumentException
|
/external/clang/test/Sema/ |
H A D | warn-thread-safety-analysis.c | 35 void mutex_exclusive_lock(struct Mutex *mu) EXCLUSIVE_LOCK_FUNCTION(mu); variable 36 void mutex_shared_lock(struct Mutex *mu) SHARED_LOCK_FUNCTION(mu); variable 37 void mutex_unlock(struct Mutex *mu) UNLOCK_FUNCTION(mu); variable 38 void mutex_shared_unlock(struct Mutex *mu) __attribute__((release_shared_capability(mu))); 39 void mutex_exclusive_unlock(struct Mutex *mu) __attribute__((release_capability(mu))); [all...] |
/external/clang/test/PCH/ |
H A D | thread-safety-attrs.cpp | 45 MutexLock(Mutex *mu) __attribute__((exclusive_lock_function(mu))); 51 ReaderMutexLock(Mutex *mu) __attribute__((exclusive_lock_function(mu))); 57 ReleasableMutexLock(Mutex *mu) EXCLUSIVE_LOCK_FUNCTION(mu); 108 Mutex mu; member in class:MutexWrapper 109 int x __attribute__((guarded_by(mu))); 110 void MyLock() __attribute__((exclusive_lock_function(mu))); 118 sls_mw.mu [all...] |
/external/apache-commons-math/src/main/java/org/apache/commons/math/analysis/interpolation/ |
H A D | SplineInterpolator.java | 88 double mu[] = new double[n]; 90 mu[0] = 0d; 94 g = 2d * (x[i+1] - x[i - 1]) - h[i - 1] * mu[i -1]; 95 mu[i] = h[i] / g; 109 c[j] = z[j] - mu[j] * c[j + 1];
|
/external/ceres-solver/internal/ceres/ |
H A D | mutex.h | 282 // CeresMutexLock(mu) acquires mu when constructed and releases it 286 explicit CeresMutexLock(Mutex *mu) : mu_(mu) { mu_->Lock(); } argument 298 explicit CeresReaderMutexLock(Mutex *mu) : mu_(mu) { mu_->ReaderLock(); } argument 309 explicit CeresWriterMutexLock(Mutex *mu) : mu_(mu) { mu_->WriterLock(); } argument 318 // Catch bug where variable name is omitted, e.g. MutexLock (&mu);
|
/external/apache-commons-math/src/main/java/org/apache/commons/math/ode/nonstiff/ |
H A D | GraggBulirschStoerStepInterpolator.java | 235 * @param mu degree of the interpolation polynomial 238 public void computeCoefficients(final int mu, final double h) { argument 240 if ((polynoms == null) || (polynoms.length <= (mu + 4))) { 241 resetTables(mu + 4); 244 currentDegree = mu + 4; 259 if (mu < 0) { 267 if (mu > 0) { 271 if (mu > 1) { 275 if (mu > 2) { 279 for (int j = 4; j <= mu; [all...] |