Home
last modified time | relevance | path

Searched refs:desired (Results 1 – 25 of 1249) sorted by relevance

12345678910>>...50

/third_party/flutter/glfw/src/
Dcontext.c157 const _GLFWfbconfig* _glfwChooseFBConfig(const _GLFWfbconfig* desired, in _glfwChooseFBConfig() argument
172 if (desired->stereo > 0 && current->stereo == 0) in _glfwChooseFBConfig()
178 if (desired->doublebuffer != current->doublebuffer) in _glfwChooseFBConfig()
188 if (desired->alphaBits > 0 && current->alphaBits == 0) in _glfwChooseFBConfig()
191 if (desired->depthBits > 0 && current->depthBits == 0) in _glfwChooseFBConfig()
194 if (desired->stencilBits > 0 && current->stencilBits == 0) in _glfwChooseFBConfig()
197 if (desired->auxBuffers > 0 && in _glfwChooseFBConfig()
198 current->auxBuffers < desired->auxBuffers) in _glfwChooseFBConfig()
200 missing += desired->auxBuffers - current->auxBuffers; in _glfwChooseFBConfig()
203 if (desired->samples > 0 && current->samples == 0) in _glfwChooseFBConfig()
[all …]
/third_party/flutter/skia/third_party/externals/sdl/test/
Dtestautomation_audio.c144 SDL_AudioSpec desired; in audio_initOpenCloseQuitAudio() local
169 SDL_memset(&desired, 0, sizeof(desired)); in audio_initOpenCloseQuitAudio()
173 desired.freq = 22050; in audio_initOpenCloseQuitAudio()
174 desired.format = AUDIO_S16SYS; in audio_initOpenCloseQuitAudio()
175 desired.channels = 2; in audio_initOpenCloseQuitAudio()
176 desired.samples = 4096; in audio_initOpenCloseQuitAudio()
177 desired.callback = _audio_testCallback; in audio_initOpenCloseQuitAudio()
178 desired.userdata = NULL; in audio_initOpenCloseQuitAudio()
182 desired.freq = 48000; in audio_initOpenCloseQuitAudio()
183 desired.format = AUDIO_F32SYS; in audio_initOpenCloseQuitAudio()
[all …]
Dtesttimer.c43 int i, desired; in main() local
57 desired = 0; in main()
59 desired = atoi(argv[1]); in main()
61 if (desired == 0) { in main()
62 desired = DEFAULT_RESOLUTION; in main()
64 t1 = SDL_AddTimer(desired, ticktock, NULL); in main()
76 desired, (double) (10 * 1000) / ticks); in main()
/third_party/ffmpeg/compat/atomics/gcc/
Dstdatomic.h86 #define atomic_store(object, desired) \ argument
88 *(object) = (desired); \
92 #define atomic_store_explicit(object, desired, order) \ argument
93 atomic_store(object, desired)
101 #define atomic_exchange(object, desired) \ argument
107 while (!__sync_bool_compare_and_swap(_obj, _old, (desired))); \
111 #define atomic_exchange_explicit(object, desired, order) \ argument
112 atomic_exchange(object, desired)
114 #define atomic_compare_exchange_strong(object, expected, desired) \ argument
118 *_exp = __sync_val_compare_and_swap((object), _old, (desired)); \
[all …]
/third_party/ffmpeg/compat/atomics/dummy/
Dstdatomic.h85 #define atomic_store(object, desired) \ argument
87 *(object) = (desired); \
90 #define atomic_store_explicit(object, desired, order) \ argument
91 atomic_store(object, desired)
99 static inline intptr_t atomic_exchange(intptr_t *object, intptr_t desired) in atomic_exchange() argument
102 *object = desired; in atomic_exchange()
106 #define atomic_exchange_explicit(object, desired, order) \ argument
107 atomic_exchange(object, desired)
110 intptr_t desired) in atomic_compare_exchange_strong() argument
114 *object = desired; in atomic_compare_exchange_strong()
[all …]
/third_party/ffmpeg/compat/atomics/suncc/
Dstdatomic.h83 static inline void atomic_store(intptr_t *object, intptr_t desired) in atomic_store() argument
85 *object = desired; in atomic_store()
89 #define atomic_store_explicit(object, desired, order) \ argument
90 atomic_store(object, desired)
101 #define atomic_exchange(object, desired) \ argument
102 atomic_swap_ptr(object, desired)
104 #define atomic_exchange_explicit(object, desired, order) \ argument
105 atomic_exchange(object, desired)
108 intptr_t desired) in atomic_compare_exchange_strong() argument
111 *expected = (intptr_t)atomic_cas_ptr(object, (void *)old, (void *)desired); in atomic_compare_exchange_strong()
[all …]
/third_party/ffmpeg/compat/atomics/pthread/
Dstdatomic.h91 static inline void atomic_store(intptr_t *object, intptr_t desired) in atomic_store() argument
94 *object = desired; in atomic_store()
98 #define atomic_store_explicit(object, desired, order) \ argument
99 atomic_store(object, desired)
113 static inline intptr_t atomic_exchange(intptr_t *object, intptr_t desired) in atomic_exchange() argument
118 *object = desired; in atomic_exchange()
123 #define atomic_exchange_explicit(object, desired, order) \ argument
124 atomic_exchange(object, desired)
127 intptr_t desired) in atomic_compare_exchange_strong() argument
133 *object = desired; in atomic_compare_exchange_strong()
[all …]
/third_party/ffmpeg/compat/atomics/win32/
Dstdatomic.h83 #define atomic_store(object, desired) \ argument
85 *(object) = (desired); \
89 #define atomic_store_explicit(object, desired, order) \ argument
90 atomic_store(object, desired)
98 #define atomic_exchange(object, desired) \ argument
99 InterlockedExchangePointer(object, desired);
101 #define atomic_exchange_explicit(object, desired, order) \ argument
102 atomic_exchange(object, desired)
105 intptr_t desired) in atomic_compare_exchange_strong() argument
109 (PVOID *)object, (PVOID)desired, (PVOID)old); in atomic_compare_exchange_strong()
[all …]
/third_party/boost/boost/atomic/detail/
Datomic_ref_impl.hpp187 …BOOST_FORCEINLINE bool compare_exchange_strong(value_type& expected, value_arg_type desired, memor… in compare_exchange_strong() argument
193 …return compare_exchange_strong_impl(expected, desired, success_order, failure_order, use_bitwise_c… in compare_exchange_strong()
196 …BOOST_FORCEINLINE bool compare_exchange_strong(value_type& expected, value_arg_type desired, memor… in compare_exchange_strong() argument
198 …return compare_exchange_strong(expected, desired, order, atomics::detail::deduce_failure_order(ord… in compare_exchange_strong()
201 …BOOST_FORCEINLINE bool compare_exchange_weak(value_type& expected, value_arg_type desired, memory_… in compare_exchange_weak() argument
207 …return compare_exchange_weak_impl(expected, desired, success_order, failure_order, use_bitwise_cas… in compare_exchange_weak()
210 …BOOST_FORCEINLINE bool compare_exchange_weak(value_type& expected, value_arg_type desired, memory_… in compare_exchange_weak() argument
212 …return compare_exchange_weak(expected, desired, order, atomics::detail::deduce_failure_order(order… in compare_exchange_weak()
226 …E bool compare_exchange_strong_impl(value_type& expected, value_arg_type desired, memory_order suc… in compare_exchange_strong_impl() argument
229 …storage_type& >(expected), atomics::detail::bitwise_cast< storage_type >(desired), success_order, … in compare_exchange_strong_impl()
[all …]
Datomic_impl.hpp221 …BOOST_FORCEINLINE bool compare_exchange_strong(value_type& expected, value_arg_type desired, memor… in compare_exchange_strong() argument
227 …return compare_exchange_strong_impl(expected, desired, success_order, failure_order, use_bitwise_c… in compare_exchange_strong()
230 …BOOST_FORCEINLINE bool compare_exchange_strong(value_type& expected, value_arg_type desired, memor… in compare_exchange_strong() argument
232 …return compare_exchange_strong(expected, desired, order, atomics::detail::deduce_failure_order(ord… in compare_exchange_strong()
235 …BOOST_FORCEINLINE bool compare_exchange_weak(value_type& expected, value_arg_type desired, memory_… in compare_exchange_weak() argument
241 …return compare_exchange_weak_impl(expected, desired, success_order, failure_order, use_bitwise_cas… in compare_exchange_weak()
244 …BOOST_FORCEINLINE bool compare_exchange_weak(value_type& expected, value_arg_type desired, memory_… in compare_exchange_weak() argument
246 …return compare_exchange_weak(expected, desired, order, atomics::detail::deduce_failure_order(order… in compare_exchange_weak()
261 …E bool compare_exchange_strong_impl(value_type& expected, value_arg_type desired, memory_order suc… in compare_exchange_strong_impl() argument
264 …storage_type& >(expected), atomics::detail::bitwise_cast< storage_type >(desired), success_order, … in compare_exchange_strong_impl()
[all …]
Dops_gcc_x86_dcas.hpp202 …storage_type volatile& storage, storage_type& expected, storage_type desired, memory_order, memory… in compare_exchange_strong()
208 expected = __sync_val_compare_and_swap(&storage, old_expected, desired); in compare_exchange_strong()
222 : "S" ((uint32_t)desired), "c" ((uint32_t)(desired >> 32)), [dest] "D" (&storage) in compare_exchange_strong()
233 : "S" ((uint32_t)desired), "c" ((uint32_t)(desired >> 32)), [dest] "D" (&storage) in compare_exchange_strong()
249 : "b" ((uint32_t)desired), "c" ((uint32_t)(desired >> 32)) in compare_exchange_strong()
258 : "b" ((uint32_t)desired), "c" ((uint32_t)(desired >> 32)) in compare_exchange_strong()
269 …storage_type volatile& storage, storage_type& expected, storage_type desired, memory_order success… in compare_exchange_weak()
271 return compare_exchange_strong(storage, expected, desired, success_order, failure_order); in compare_exchange_weak()
454 …storage_type volatile& storage, storage_type& expected, storage_type desired, memory_order, memory… in compare_exchange_strong()
460 expected = __sync_val_compare_and_swap(&storage, old_expected, desired); in compare_exchange_strong()
[all …]
Datomic_template.hpp229 …BOOST_FORCEINLINE bool compare_exchange_strong(value_type& expected, value_arg_type desired, memor… in compare_exchange_strong() argument
235 …return compare_exchange_strong_impl(expected, desired, success_order, failure_order, value_matches… in compare_exchange_strong()
238 …BOOST_FORCEINLINE bool compare_exchange_strong(value_type& expected, value_arg_type desired, memor… in compare_exchange_strong() argument
240 …return compare_exchange_strong(expected, desired, order, atomics::detail::deduce_failure_order(ord… in compare_exchange_strong()
243 …BOOST_FORCEINLINE bool compare_exchange_weak(value_type& expected, value_arg_type desired, memory_… in compare_exchange_weak() argument
249 …return compare_exchange_weak_impl(expected, desired, success_order, failure_order, value_matches_s… in compare_exchange_weak()
252 …BOOST_FORCEINLINE bool compare_exchange_weak(value_type& expected, value_arg_type desired, memory_… in compare_exchange_weak() argument
254 …return compare_exchange_weak(expected, desired, order, atomics::detail::deduce_failure_order(order… in compare_exchange_weak()
261 …E bool compare_exchange_strong_impl(value_type& expected, value_arg_type desired, memory_order suc… in compare_exchange_strong_impl() argument
264 …storage_type& >(expected), atomics::detail::bitwise_cast< storage_type >(desired), success_order, … in compare_exchange_strong_impl()
[all …]
Dcore_arch_ops_gcc_x86.hpp97 …storage_type volatile& storage, storage_type& expected, storage_type desired, memory_order success… in compare_exchange_weak()
99 … return Derived::compare_exchange_strong(storage, expected, desired, success_order, failure_order); in compare_exchange_weak()
146 …storage_type volatile& storage, storage_type& expected, storage_type desired, memory_order, memory… in compare_exchange_strong()
155 : "q" (desired) in compare_exchange_strong()
164 : "q" (desired) in compare_exchange_strong()
243 …storage_type volatile& storage, storage_type& expected, storage_type desired, memory_order, memory… in compare_exchange_strong()
252 : "q" (desired) in compare_exchange_strong()
261 : "q" (desired) in compare_exchange_strong()
339 …storage_type volatile& storage, storage_type& expected, storage_type desired, memory_order, memory… in compare_exchange_strong()
348 : "r" (desired) in compare_exchange_strong()
[all …]
Dops_gcc_sparc.hpp89 …storage_type volatile& storage, storage_type& expected, storage_type desired, memory_order success… in compare_exchange_strong()
96 : "+r" (desired) in compare_exchange_strong()
100 const bool success = (desired == previous); in compare_exchange_strong()
105 expected = desired; in compare_exchange_strong()
110 …storage_type volatile& storage, storage_type& expected, storage_type desired, memory_order success… in compare_exchange_weak()
112 return compare_exchange_strong(storage, expected, desired, success_order, failure_order); in compare_exchange_weak()
173 …storage_type volatile& storage, storage_type& expected, storage_type desired, memory_order success… in compare_exchange_strong()
180 : "+r" (desired) in compare_exchange_strong()
184 const bool success = (desired == previous); in compare_exchange_strong()
189 expected = desired; in compare_exchange_strong()
[all …]
Dcore_arch_ops_gcc_sparc.hpp91 …storage_type volatile& storage, storage_type& expected, storage_type desired, memory_order success… in compare_exchange_strong()
98 : "+r" (desired) in compare_exchange_strong()
102 const bool success = (desired == previous); in compare_exchange_strong()
107 expected = desired; in compare_exchange_strong()
112 …storage_type volatile& storage, storage_type& expected, storage_type desired, memory_order success… in compare_exchange_weak()
114 return compare_exchange_strong(storage, expected, desired, success_order, failure_order); in compare_exchange_weak()
176 …storage_type volatile& storage, storage_type& expected, storage_type desired, memory_order success… in compare_exchange_strong()
183 : "+r" (desired) in compare_exchange_strong()
187 const bool success = (desired == previous); in compare_exchange_strong()
192 expected = desired; in compare_exchange_strong()
[all …]
/third_party/icu/icu4c/source/common/
Dlocdistance.cpp110 const LSR &desired, in getBestIndexAndDistance() argument
118 int32_t desLangDistance = trieNext(iter, desired.language, false); in getBestIndexAndDistance()
144 if (uprv_strcmp(desired.language, supported.language) == 0) { in getBestIndexAndDistance()
174 if (uprv_strcmp(desired.script, supported.script) == 0) { in getBestIndexAndDistance()
181 desired.script, supported.script); in getBestIndexAndDistance()
190 if (uprv_strcmp(desired.region, supported.region) == 0) { in getBestIndexAndDistance()
207 partitionsForRegion(desired), in getBestIndexAndDistance()
215 shiftedDistance |= (desired.flags ^ supported.flags); in getBestIndexAndDistance()
219 isMatch(supported, desired, shiftedThreshold, favorSubtag)) { in getBestIndexAndDistance()
232 isMatch(supported, desired, shiftedThreshold, favorSubtag)) { in getBestIndexAndDistance()
[all …]
/third_party/node/deps/icu-small/source/common/
Dlocdistance.cpp110 const LSR &desired, in getBestIndexAndDistance() argument
118 int32_t desLangDistance = trieNext(iter, desired.language, false); in getBestIndexAndDistance()
144 if (uprv_strcmp(desired.language, supported.language) == 0) { in getBestIndexAndDistance()
174 if (uprv_strcmp(desired.script, supported.script) == 0) { in getBestIndexAndDistance()
181 desired.script, supported.script); in getBestIndexAndDistance()
190 if (uprv_strcmp(desired.region, supported.region) == 0) { in getBestIndexAndDistance()
207 partitionsForRegion(desired), in getBestIndexAndDistance()
215 shiftedDistance |= (desired.flags ^ supported.flags); in getBestIndexAndDistance()
219 isMatch(supported, desired, shiftedThreshold, favorSubtag)) { in getBestIndexAndDistance()
232 isMatch(supported, desired, shiftedThreshold, favorSubtag)) { in getBestIndexAndDistance()
[all …]
/third_party/skia/third_party/externals/icu/source/common/
Dlocdistance.cpp110 const LSR &desired, in getBestIndexAndDistance() argument
118 int32_t desLangDistance = trieNext(iter, desired.language, false); in getBestIndexAndDistance()
144 if (uprv_strcmp(desired.language, supported.language) == 0) { in getBestIndexAndDistance()
174 if (uprv_strcmp(desired.script, supported.script) == 0) { in getBestIndexAndDistance()
181 desired.script, supported.script); in getBestIndexAndDistance()
190 if (uprv_strcmp(desired.region, supported.region) == 0) { in getBestIndexAndDistance()
207 partitionsForRegion(desired), in getBestIndexAndDistance()
215 shiftedDistance |= (desired.flags ^ supported.flags); in getBestIndexAndDistance()
219 isMatch(supported, desired, shiftedThreshold, favorSubtag)) { in getBestIndexAndDistance()
232 isMatch(supported, desired, shiftedThreshold, favorSubtag)) { in getBestIndexAndDistance()
[all …]
/third_party/boost/libs/fiber/examples/
Dadapt_nonblocking.cpp25 int read( std::string & data, std::size_t desired);
64 int NonblockingAPI::read( std::string & data, std::size_t desired) { in read() argument
89 std::size_t size( ( std::min)( desired, chunksize_) ); in read()
104 int read_chunk( NonblockingAPI & api, std::string & data, std::size_t desired) { in read_chunk() argument
106 while ( EWOULDBLOCK == ( error = api.read( data, desired) ) ) { in read_chunk()
118 int read_desired( NonblockingAPI & api, std::string & data, std::size_t desired) { in read_desired() argument
123 while ( data.length() < desired && in read_desired()
124 ( error = read_chunk( api, chunk, desired - data.length() ) ) == 0) { in read_desired()
157 std::string read( NonblockingAPI & api, std::size_t desired) { in read() argument
159 int ec( read_desired( api, data, desired) ); in read()
[all …]
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/util/
DLocaleMatcherTest.java157 Locale desired = new Locale("en", "US"); // distinct object from Locale.US in testBasics() local
158 result = matcher.getBestLocaleResult(desired); in testBasics()
160 assertTrue("exactly desired en-US object", desired == result.getDesiredLocale()); in testBasics()
337 ULocale desired = new ULocale("ar-SA-u-nu-latn"); in testResolvedLocale() local
338 LocaleMatcher.Result result = matcher.getBestMatchResult(desired); in testResolvedLocale()
491 private void showDistance(LocaleMatcher matcher, String desired, String supported) { in showDistance() argument
492 ULocale desired2 = new ULocale(desired); in showDistance()
495 logln(desired + " to " + supported + " :\t" + distance); in showDistance()
632 LocalePriorityList desired = LocalePriorityList.add("fr-CH, de-CH, it").build(); in testDemotion() local
636 assertEquals("no demotion", new ULocale("de-CH"), noDemotion.getBestMatch(desired)); in testDemotion()
[all …]
/third_party/icu/tools/cldr/cldr-to-icu/src/main/java/org/unicode/icu/tool/cldrtoicu/localedistance/
DLocaleDistanceMapper.java231 private final LsrSpec desired; field in LocaleDistanceMapper.LanguageMatchRule
236 public LanguageMatchRule(LsrSpec desired, LsrSpec supported, int distance, boolean oneway) { in LanguageMatchRule() argument
237 this.desired = checkNotNull(desired); in LanguageMatchRule()
244 checkArgument(desired.size() == supported.size(), in LanguageMatchRule()
245 "mismatched rule specifications in: %s, %s", desired, supported); in LanguageMatchRule() local
246 checkArgument(isAny(desired.language) == isAny(supported.language), in LanguageMatchRule()
247 "wildcard mismatch for languages in: %s, %s", desired, supported); in LanguageMatchRule() local
248 checkArgument(isAny(desired.script) == isAny(supported.script), in LanguageMatchRule()
249 "wildcard mismatch for scripts in: %s, %s", desired, supported); in LanguageMatchRule() local
250 checkArgument(isAny(desired.regionVariable) == isAny(supported.regionVariable), in LanguageMatchRule()
[all …]
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/tool/locale/
DLocaleDistanceBuilder.java111 final List<String> desired; field in LocaleDistanceBuilder.Rule
116 Rule(List<String> desired, List<String> supported, int distance, boolean oneway) { in Rule() argument
117 this.desired = desired; in Rule()
202 private int getDistance(String desired, String supported, in getDistance() argument
205 Map<String, DistanceTable> sub2 = subtables.get(desired); in getDistance()
225 int result = starEquals && star && desired.equals(supported) ? 0 : value.nodeDistance; in getDistance()
242 DistanceTable addSubtable(String desired, String supported, int distance) { in addSubtable() argument
243 Map<String, DistanceTable> sub2 = subtables.get(desired); in addSubtable()
245 subtables.put(desired, sub2 = new TreeMap<>()); in addSubtable()
260 private DistanceTable getNode(String desired, String supported) { in getNode() argument
[all …]
/third_party/icu/icu4j/tools/misc/src/com/ibm/icu/dev/tool/locale/
DLocaleDistanceBuilder.java111 final List<String> desired; field in LocaleDistanceBuilder.Rule
116 Rule(List<String> desired, List<String> supported, int distance, boolean oneway) { in Rule() argument
117 this.desired = desired; in Rule()
202 private int getDistance(String desired, String supported, in getDistance() argument
205 Map<String, DistanceTable> sub2 = subtables.get(desired); in getDistance()
225 int result = starEquals && star && desired.equals(supported) ? 0 : value.nodeDistance; in getDistance()
242 DistanceTable addSubtable(String desired, String supported, int distance) { in addSubtable() argument
243 Map<String, DistanceTable> sub2 = subtables.get(desired); in addSubtable()
245 subtables.put(desired, sub2 = new TreeMap<>()); in addSubtable()
260 private DistanceTable getNode(String desired, String supported) { in getNode() argument
[all …]
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/
DLocaleMatcherTest.java154 Locale desired = new Locale("en", "US"); // distinct object from Locale.US in testBasics() local
155 result = matcher.getBestLocaleResult(desired); in testBasics()
157 assertTrue("exactly desired en-US object", desired == result.getDesiredLocale()); in testBasics()
358 ULocale desired = new ULocale("ar-SA-u-nu-latn"); in testResolvedLocale() local
359 LocaleMatcher.Result result = matcher.getBestMatchResult(desired); in testResolvedLocale()
510 private void showDistance(LocaleMatcher matcher, String desired, String supported) { in showDistance() argument
511 ULocale desired2 = new ULocale(desired); in showDistance()
514 logln(desired + " to " + supported + " :\t" + distance); in showDistance()
651 LocalePriorityList desired = LocalePriorityList.add("fr-CH, de-CH, it").build(); in testDemotion() local
655 assertEquals("no demotion", new ULocale("de-CH"), noDemotion.getBestMatch(desired)); in testDemotion()
[all …]
DLocaleDistanceTest.java38 final ULocale desired; field in LocaleDistanceTest.Arguments
44 …this.desired = new ULocale.Builder().setLanguageTag(args.get(0)).build(); // use more complicated … in Arguments()
82 final ULocale desired = test.desired; in testTiming() local
88 final ULocale desiredMax = ULocale.addLikelySubtags(desired); in testTiming()
103 … int dist1 = localeDistance.testOnlyDistance(desired, supported, 1000, FavorSubtag.LANGUAGE); in testTiming()
104 … int dist2 = localeDistance.testOnlyDistance(supported, desired, 1000, FavorSubtag.LANGUAGE); in testTiming()
147 String desiredTag = args.desired.toLanguageTag(); in handle()
150 …edToDesiredActual = localeDistance.testOnlyDistance(args.supported, args.desired, threshold, favor… in handle()
153 …int desiredToSupportedActual = localeDistance.testOnlyDistance(args.desired, args.supported, thres… in handle()

12345678910>>...50