Home
last modified time | relevance | path

Searched refs:mu (Results 1 – 25 of 182) sorted by relevance

12345678

/external/clang/test/SemaCXX/
Dwarn-thread-safety-negative.cpp50 Mutex mu; member in SimpleTest::Bar
51 int a GUARDED_BY(mu);
54 void baz() EXCLUSIVE_LOCKS_REQUIRED(!mu) { in baz()
55 mu.Lock(); in baz()
57 mu.Unlock(); in baz()
63 Mutex mu; member in SimpleTest::Foo
64 int a GUARDED_BY(mu);
68 mu.Lock(); // expected-warning {{acquiring mutex 'mu' requires negative capability '!mu'}} in foo()
71 mu.Unlock(); in foo()
78 void baz() EXCLUSIVE_LOCKS_REQUIRED(!mu) { in baz()
[all …]
Dwarn-thread-safety-analysis.cpp48 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 MutexWrapper
152 int x __attribute__((guarded_by(mu)));
153 void MyLock() __attribute__((exclusive_lock_function(mu)));
159 sls_mw.mu.Lock(); in sls_fun_0()
161 sls_mw.mu.Unlock(); in sls_fun_0()
[all …]
Dwarn-thread-safety-verbose.cpp45 Mutex mu; member in 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);
69 mu.ReaderLock(); in test5()
71 mu.Unlock(); in test5()
75 mu.ReaderLock(); in test6()
77 mu.Unlock(); in test6()
81 mu.Lock(); in test7()
[all …]
Dwarn-thread-safety-parsing.cpp45 Mutex mu; member in MuWrapper
47 return mu; in getMu()
50 return μ in getMuPointer()
344 int gb_var_arg_1 GUARDED_BY(muWrapper.mu);
345 int gb_var_arg_2 GUARDED_BY(muDoubleWrapper.muWrapper->mu);
415 int * pgb_var_arg_1 PT_GUARDED_BY(muWrapper.mu);
416 int * pgb_var_arg_2 PT_GUARDED_BY(muDoubleWrapper.muWrapper->mu);
476 Mutex aa_var_arg_1 ACQUIRED_AFTER(muWrapper.mu);
477 Mutex aa_var_arg_2 ACQUIRED_AFTER(muDoubleWrapper.muWrapper->mu);
539 Mutex ab_var_arg_1 ACQUIRED_BEFORE(muWrapper.mu);
[all …]
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/math/ec/
DTnaf.java82 public static BigInteger norm(final byte mu, ZTauElement lambda) in norm() argument
95 if (mu == 1) in norm()
99 else if (mu == -1) in norm()
123 public static SimpleBigDecimal norm(final byte mu, SimpleBigDecimal u, in norm() argument
137 if (mu == 1) in norm()
141 else if (mu == -1) in norm()
167 SimpleBigDecimal lambda1, byte mu) in round() argument
176 if (!((mu == 1) || (mu == -1))) in round()
189 if (mu == 1) in round()
205 if (mu == 1) in round()
[all …]
DWTauNafMultiplier.java34 byte mu = Tnaf.getMu(a); in multiplyPositive()
37 ZTauElement rho = Tnaf.partModReduction(k, m, a, s, mu, (byte)10); in multiplyPositive()
39 return multiplyWTnaf(p, rho, curve.getPreCompInfo(p, PRECOMP_NAME), a, mu); in multiplyPositive()
53 PreCompInfo preCompInfo, byte a, byte mu) in multiplyWTnaf() argument
57 BigInteger tw = Tnaf.getTw(mu, Tnaf.WIDTH); in multiplyWTnaf()
59 byte[]u = Tnaf.tauAdicWNaf(mu, lambda, Tnaf.WIDTH, in multiplyWTnaf()
/external/clang/docs/
DThreadSafetyAnalysis.rst20 *guarded by* the mutex ``mu``, then the analysis will issue a warning whenever
21 a piece of code reads or writes to ``foo`` without first locking ``mu``.
35 Mutex mu;
36 int balance GUARDED_BY(mu);
39 balance += amount; // WARNING! Cannot write balance without locking mu.
42 void withdrawImpl(int amount) REQUIRES(mu) {
43 balance -= amount; // OK. Caller must have locked mu.
48 mu.Lock();
49 withdrawImpl(amount); // OK. We've locked mu.
50 } // WARNING! Failed to unlock mu.
[all …]
/external/iproute2/netem/
Dstats.c24 double mu=0.0, sigma=0.0, sumsquare=0.0, sum=0.0, top=0.0, rho=0.0; in stats() local
43 mu = sum/(double)n; in stats()
44 sigma = sqrt((sumsquare - (double)n*mu*mu)/(double)(n-1)); in stats()
47 top += ((double)x[i]-mu)*((double)x[i-1]-mu); in stats()
48 sigma2 += ((double)x[i-1] - mu)*((double)x[i-1] - mu); in stats()
53 printf("mu = %12.6f\n", mu); in stats()
Dmaketable.c51 arraystats(double *x, int limit, double *mu, double *sigma, double *rho) in arraystats() argument
62 *mu = sum/(double)n; in arraystats()
63 *sigma = sqrt((sumsquare - (double)n*(*mu)*(*mu))/(double)(n-1)); in arraystats()
66 top += ((double)x[i]- *mu)*((double)x[i-1]- *mu); in arraystats()
67 sigma2 += ((double)x[i-1] - *mu)*((double)x[i-1] - *mu); in arraystats()
93 makedist(double *x, int limit, double mu, double sigma) in makedist() argument
107 input = (x[i]-mu)/sigma; in makedist()
200 double mu, sigma, rho; in main() local
219 arraystats(x, limit, &mu, &sigma, &rho); in main()
222 limit, mu, sigma, rho); in main()
[all …]
/external/apache-commons-math/src/main/java/org/apache/commons/math/random/
DValueServer.java76 private double mu = 0.0; field in ValueServer
122 case CONSTANT_MODE: return mu; in getNext()
195 mu = empiricalDistribution.getSampleStats().getMean(); in computeDistribution()
278 return mu; in getMu()
284 public void setMu(double mu) { in setMu() argument
285 this.mu = mu; in setMu()
363 return randomData.nextUniform(0, 2 * mu); in getNextUniform()
372 return randomData.nextExponential(mu); in getNextExponential()
382 return randomData.nextGaussian(mu, sigma); in getNextGaussian()
/external/clang/test/Sema/
Dwarn-thread-safety-analysis.c35 void mutex_exclusive_lock(struct Mutex *mu) EXCLUSIVE_LOCK_FUNCTION(mu);
36 void mutex_shared_lock(struct Mutex *mu) SHARED_LOCK_FUNCTION(mu);
37 void mutex_unlock(struct Mutex *mu) UNLOCK_FUNCTION(mu);
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)));
/external/apache-commons-math/src/main/java/org/apache/commons/math/stat/inference/
DTestUtils.java226 public static double t(double mu, double[] observed) in t() argument
228 return tTest.t(mu, observed); in t()
234 public static double t(double mu, StatisticalSummary sampleStats) in t() argument
236 return tTest.t(mu, sampleStats); in t()
259 public static boolean tTest(double mu, double[] sample, double alpha) in tTest() argument
261 return tTest.tTest(mu, sample, alpha); in tTest()
267 public static double tTest(double mu, double[] sample) in tTest() argument
269 return tTest.tTest(mu, sample); in tTest()
275 public static boolean tTest(double mu, StatisticalSummary sampleStats, in tTest() argument
278 return tTest. tTest(mu, sampleStats, alpha); in tTest()
[all …]
DTTestImpl.java188 public double t(double mu, double[] observed) in t() argument
191 return t(StatUtils.mean(observed), mu, StatUtils.variance(observed), in t()
211 public double t(double mu, StatisticalSummary sampleStats) in t() argument
214 return t(sampleStats.getMean(), mu, sampleStats.getVariance(), in t()
409 public double tTest(double mu, double[] sample) in tTest() argument
412 return tTest( StatUtils.mean(sample), mu, StatUtils.variance(sample), in tTest()
451 public boolean tTest(double mu, double[] sample, double alpha) in tTest() argument
454 return tTest(mu, sample) < alpha; in tTest()
485 public double tTest(double mu, StatisticalSummary sampleStats) in tTest() argument
488 return tTest(sampleStats.getMean(), mu, sampleStats.getVariance(), in tTest()
[all …]
DTTest.java157 double t(double mu, double[] observed) in t() argument
175 double t(double mu, StatisticalSummary sampleStats) in t() argument
342 double tTest(double mu, double[] sample) in tTest() argument
379 boolean tTest(double mu, double[] sample, double alpha) in tTest() argument
409 double tTest(double mu, StatisticalSummary sampleStats) in tTest() argument
448 double mu, in tTest() argument
/external/clang/test/PCH/
Dthread-safety-attrs.cpp45 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 MutexWrapper
109 int x __attribute__((guarded_by(mu)));
110 void MyLock() __attribute__((exclusive_lock_function(mu)));
118 sls_mw.mu.Lock(); in sls_fun_0()
120 sls_mw.mu.Unlock(); in sls_fun_0()
207 sls_mw.mu.Unlock(); in sls_fun_good_8()
/external/valgrind/helgrind/tests/
Dtc06_two_races.c10 pthread_mutex_t mu = PTHREAD_MUTEX_INITIALIZER; variable
15 pthread_mutex_lock( &mu ); in child_fn()
17 pthread_mutex_unlock( &mu ); in child_fn()
32 pthread_mutex_lock( &mu ); in main()
34 pthread_mutex_unlock( &mu ); in main()
Dtc05_simple_race.c11 pthread_mutex_t mu = PTHREAD_MUTEX_INITIALIZER; variable
16 pthread_mutex_lock( &mu ); in child_fn()
18 pthread_mutex_unlock( &mu ); in child_fn()
34 pthread_mutex_lock( &mu ); in main()
36 pthread_mutex_unlock( &mu ); in main()
/external/apache-commons-math/src/main/java/org/apache/commons/math/distribution/
DSaddlePointExpansion.java145 static double getDeviancePart(double x, double mu) { in getDeviancePart() argument
147 if (FastMath.abs(x - mu) < 0.1 * (x + mu)) { in getDeviancePart()
148 double d = x - mu; in getDeviancePart()
149 double v = d / (x + mu); in getDeviancePart()
163 ret = x * FastMath.log(x / mu) + mu - x; in getDeviancePart()
/external/valgrind/memcheck/tests/
Dreach_thread_register.c14 pthread_mutex_t mu = PTHREAD_MUTEX_INITIALIZER; variable
23 pthread_mutex_lock(&mu); in helper()
33 pthread_mutex_unlock(&mu); in helper()
35 pthread_mutex_lock(&mu); in helper()
37 pthread_mutex_unlock(&mu); in helper()
/external/apache-commons-math/src/main/java/org/apache/commons/math/ode/nonstiff/
DGraggBulirschStoerStepInterpolator.java238 public void computeCoefficients(final int mu, final double h) { in computeCoefficients() argument
240 if ((polynoms == null) || (polynoms.length <= (mu + 4))) { in computeCoefficients()
241 resetTables(mu + 4); in computeCoefficients()
244 currentDegree = mu + 4; in computeCoefficients()
259 if (mu < 0) { in computeCoefficients()
267 if (mu > 0) { in computeCoefficients()
271 if (mu > 1) { in computeCoefficients()
275 if (mu > 2) { in computeCoefficients()
279 for (int j = 4; j <= mu; ++j) { in computeCoefficients()
/external/regex-re2/util/
Dmutex.h151 explicit MutexLock(Mutex *mu) : mu_(mu) { mu_->Lock(); } in MutexLock() argument
163 explicit ReaderMutexLock(Mutex *mu) : mu_(mu) { mu_->ReaderLock(); } in ReaderMutexLock() argument
174 explicit WriterMutexLock(Mutex *mu) : mu_(mu) { mu_->WriterLock(); } in WriterMutexLock() argument
/external/apache-commons-math/src/main/java/org/apache/commons/math/analysis/interpolation/
DSplineInterpolator.java88 double mu[] = new double[n]; in interpolate() local
90 mu[0] = 0d; in interpolate()
94 g = 2d * (x[i+1] - x[i - 1]) - h[i - 1] * mu[i -1]; in interpolate()
95 mu[i] = h[i] / g; in interpolate()
109 c[j] = z[j] - mu[j] * c[j + 1]; in interpolate()
/external/libchrome/base/third_party/dynamic_annotations/
Ddynamic_annotations.h174 #define ANNOTATE_PURE_HAPPENS_BEFORE_MUTEX(mu) \ argument
176 mu)
181 #define ANNOTATE_NOT_HAPPENS_BEFORE_MUTEX(mu) \ argument
182 DYNAMIC_ANNOTATIONS_NAME(AnnotateMutexIsNotPHB)(__FILE__, __LINE__, mu)
185 #define ANNOTATE_MUTEX_IS_USED_AS_CONDVAR(mu) \ argument
187 mu)
408 #define ANNOTATE_PURE_HAPPENS_BEFORE_MUTEX(mu) /* empty */ argument
409 #define ANNOTATE_MUTEX_IS_USED_AS_CONDVAR(mu) /* empty */ argument
505 const volatile void *mu) DYNAMIC_ANNOTATIONS_ATTRIBUTE_WEAK;
508 const volatile void *mu) DYNAMIC_ANNOTATIONS_ATTRIBUTE_WEAK;
/external/opencv/cvaux/src/
Dcvhmm1d.cpp246 all_states[i].mu = pointers; pointers += num_mix[i] * obs_size;
273 icvFree( &(hmm->u.state->mu) );
716 float* mu = state[l].mu + m*vect_size;
721 double t = (vect[k] - mu[k])*inv_var[k];
923 state[e_state].mu, info->obs_size);
929 state[e_state].mu + m * info->obs_size,
1047 memset( (void*)first_state[i].mu, 0, first_state[i].num_mix * vect_len *
1066 CvVect32f mean = first_state[state].mu + mixture * vect_len;
1085 CvVect32f mu = state->mu + m * vect_len;
1092 icvScaleVector_32f( mu, mu, vect_len, inv_gamma);
[all …]
/external/protobuf/src/google/protobuf/stubs/
Dmutex.h84 explicit MutexLock(Mutex *mu) : mu_(mu) { this->mu_->Lock(); } in MutexLock() argument
98 explicit MutexLockMaybe(Mutex *mu) : in MutexLockMaybe() argument
99 mu_(mu) { if (this->mu_ != NULL) { this->mu_->Lock(); } } in MutexLockMaybe()

12345678