Home
last modified time | relevance | path

Searched refs:sort (Results 1 - 25 of 1196) sorted by relevance

12345678910>>...48

/third_party/jerryscript/tests/jerry/
H A Darray-prototype-sort.js16 array.sort();
29 array.sort();
45 array.sort(f);
54 array.sort();
66 arr.sort(obj);
73 var obj = { sort : Array.prototype.sort}
77 obj.sort();
85 var obj = { sort : Array.prototype.sort, lengt
[all...]
H A Dregression-test-issue-3523.js16 sort: Array.prototype.sort,
19 assert(obj.sort() === obj);
/third_party/jerryscript/tests/jerry/es2015/
H A DtypedArray-sort.js18 assert(a.sort().toString() === '1,2,3,4,4,5');
23 assert(b.subarray(2, 4).sort().toString() === '3,4');
28 assert(c.sort().toString() === '');
32 assert(d.sort().toString() === '-Infinity,1,2,3,Infinity');
36 assert(e.sort().toString() === '-1,0,0,1');
40 assert(f.sort().toString() === '-Infinity,-1,0,1,Infinity,NaN,NaN');
49 assert(h.subarray(0, 2).sort().toString() === '0,255');
50 assert(h.subarray(2, 4).sort().toString() === '0,255');
52 assert(g.sort().toString() === '4278255360');
58 i.sort({});
[all...]
/third_party/python/Lib/test/
H A Dtest_sort.py18 raw.sort(key=cmp_to_key(compare))
20 raw.sort()
103 s.sort(key=cmp_to_key(lambda a, b: int(random.random() * 3) - 1))
110 self.assertRaises(RuntimeError, s.sort, key=bad_key)
118 s.sort()
123 check("exception during sort left some permutation", x, s)
127 augmented.sort() # forced stable because ties broken by index
128 x = [e for e, i in augmented] # a stable sort of s
136 # bug 453523 -- list.sort() crasher.
138 # Mutations during a list sort shoul
[all...]
/third_party/selinux/libsepol/cil/src/
H A Dcil_post.c344 /* sort ipv4 before ipv6 */ in cil_post_nodecon_compare()
725 struct cil_sort *sort = db->netifcon; in __cil_post_db_array_helper() local
726 uint32_t count = sort->count; in __cil_post_db_array_helper()
727 uint32_t i = sort->index; in __cil_post_db_array_helper()
728 if (sort->array == NULL) { in __cil_post_db_array_helper()
729 sort->array = cil_malloc(sizeof(*sort->array)*count); in __cil_post_db_array_helper()
731 sort->array[i] = node->data; in __cil_post_db_array_helper()
732 sort->index++; in __cil_post_db_array_helper()
736 struct cil_sort *sort in __cil_post_db_array_helper() local
747 struct cil_sort *sort = db->fsuse; __cil_post_db_array_helper() local
758 struct cil_sort *sort = db->genfscon; __cil_post_db_array_helper() local
769 struct cil_sort *sort = db->filecon; __cil_post_db_array_helper() local
780 struct cil_sort *sort = db->nodecon; __cil_post_db_array_helper() local
791 struct cil_sort *sort = db->ibpkeycon; __cil_post_db_array_helper() local
802 struct cil_sort *sort = db->portcon; __cil_post_db_array_helper() local
813 struct cil_sort *sort = db->pirqcon; __cil_post_db_array_helper() local
824 struct cil_sort *sort = db->iomemcon; __cil_post_db_array_helper() local
835 struct cil_sort *sort = db->ioportcon; __cil_post_db_array_helper() local
846 struct cil_sort *sort = db->pcidevicecon; __cil_post_db_array_helper() local
857 struct cil_sort *sort = db->devicetreecon; __cil_post_db_array_helper() local
2268 __cil_post_process_context_rules(struct cil_sort *sort, int (*compar)(const void *, const void *), int (*concompar)(const void *, const void *), struct cil_db *db, enum cil_flavor flavor, const char *flavor_str) __cil_post_process_context_rules() argument
[all...]
/third_party/skia/docs/examples/
H A DRect_makeSorted.cpp9 SkRect sort = rect.makeSorted(); in REG_FIDDLE() local
10 SkDebugf("sorted: %g, %g, %g, %g\n", sort.fLeft, sort.fTop, sort.fRight, sort.fBottom); in REG_FIDDLE()
H A DIRect_makeSorted.cpp9 SkIRect sort = rect.makeSorted(); in REG_FIDDLE() local
10 SkDebugf("sorted: %d, %d, %d, %d\n", sort.fLeft, sort.fTop, sort.fRight, sort.fBottom); in REG_FIDDLE()
/third_party/skia/third_party/externals/icu/scripts/
H A Dupdate.sh72 find source/i18n -maxdepth 1 ! -type d | egrep '\.(c|cpp|h)$' |sort | \
74 ls source/i18n/unicode/*h | sort | sed 's/^\(.*\)$/ "\1",/' > i18n_hdr.list
76 find source/common -maxdepth 1 ! -type d | egrep '\.(c|cpp|h)$' |sort | \
78 ls source/common/unicode/*h | sort | \
101 ls source/i18n/unicode/*h | sort | \
103 ls source/common/unicode/*h | sort | \
108 sort | sed "s/^\(.*\)$/ '\1',/" > i18n_src.list
110 sort | sed "s/^\(.*\)$/ '\1',/" > common_src.list
/third_party/toybox/porting/liteos_a/toys/posix/
H A Dls.c39 -x columns (horizontal sort) -ll long with nanoseconds (--full-time)
238 // Horizontal sort is easy in next_column()
244 // vertical sort in next_column()
299 struct dirtree *dt, **sort; in listfiles() local
333 // Copy linked list to array and sort it. Directories go in array because in listfiles()
336 for (sort = 0;;sort = xmalloc(dtlen*sizeof(void *))) { in listfiles()
338 if (sort) sort[dtlen] = dt; in listfiles()
339 if (sort || !dtle in listfiles()
536 listfiles(openat(dirfd, sort[ul]->name, 0), sort[ul]); listfiles() local
[all...]
/third_party/toybox/toys/posix/
H A Dls.c40 -x columns (horizontal sort) -ll long with nanoseconds (--full-time)
248 // Horizontal sort is easy in next_column()
254 // vertical sort in next_column()
309 struct dirtree *dt, **sort; in listfiles() local
344 // Copy linked list to array and sort it. Directories go in array because in listfiles()
347 for (sort = 0;;sort = xmalloc(dtlen*sizeof(void *))) { in listfiles()
349 if (sort) sort[dtlen] = dt; in listfiles()
350 if (sort || !dtle in listfiles()
548 listfiles(openat(dirfd, sort[ul]->name, 0), sort[ul]); listfiles() local
[all...]
/third_party/ffmpeg/libavcodec/
H A Dvorbis.c110 list[0].sort = 0; in ff_vorbis_ready_floor1_list()
111 list[1].sort = 1; in ff_vorbis_ready_floor1_list()
116 list[i].sort = i; in ff_vorbis_ready_floor1_list()
136 if (list[list[i].sort].x > list[list[j].sort].x) { in ff_vorbis_ready_floor1_list()
137 int tmp = list[i].sort; in ff_vorbis_ready_floor1_list()
138 list[i].sort = list[j].sort; in ff_vorbis_ready_floor1_list()
139 list[j].sort = tmp; in ff_vorbis_ready_floor1_list()
204 int pos = list[i].sort; in ff_vorbis_floor1_render_list()
[all...]
/third_party/python/Tools/c-analyzer/cpython/
H A D_capi.py414 def _get_sortkey(sort, _groupby, _columns):
415 if sort is True or sort is None:
429 elif isinstance(sort, str):
430 sortfields = sort.replace(',', ' ').strip().split()
431 elif callable(sort):
432 return sort
485 sort=True,
544 if sort:
545 sortkey = _get_sortkey(sort, groupb
[all...]
/third_party/protobuf/python/compatibility_tests/v2.5.0/tests/google/protobuf/internal/
H A Dmessage_test.py319 message.repeated_int32.sort()
327 message.repeated_float.sort()
335 message.repeated_string.sort()
343 message.repeated_bytes.sort()
355 message.repeated_int32.sort(lambda x,y: cmp(abs(x), abs(y)))
363 message.repeated_string.sort(lambda x,y: cmp(len(x), len(y)))
369 """Check passing a custom comparator to sort a repeated composite field."""
378 message.repeated_nested_message.sort(lambda x,y: cmp(x.bb, y.bb))
387 """Check sorting a repeated composite field using list.sort() arguments."""
398 message.repeated_nested_message.sort(ke
[all...]
/third_party/mesa3d/src/amd/registers/
H A Dmakeregheader.py191 lines.sort(key=lambda line: (line.address, line.name))
204 lines.sort(key=lambda line: (line.address, line.name))
236 lines.sort(key=lambda line: (line.address, line.name))
264 def print(self, filp, sort='address'):
268 if sort == 'address':
269 self.register_lines.sort(key=lambda line: (line.address, line.name))
271 assert sort == 'name'
272 self.register_lines.sort(key=lambda line: (line.name, line.address))
274 # Collect and sort field lines by address
279 if sort
[all...]
/third_party/ffmpeg/ffbuild/
H A Dcommon.mak171 OBJS := $(sort $(OBJS:%=$(SUBDIR)%))
172 SLIBOBJS := $(sort $(SLIBOBJS:%=$(SUBDIR)%))
173 SHLIBOBJS := $(sort $(SHLIBOBJS:%=$(SUBDIR)%))
174 STLIBOBJS := $(sort $(STLIBOBJS:%=$(SUBDIR)%))
206 $(OBJS): | $(sort $(dir $(OBJS)))
207 $(HOBJS): | $(sort $(dir $(HOBJS)))
208 $(HOSTOBJS): | $(sort $(dir $(HOSTOBJS)))
209 $(SLIBOBJS): | $(sort $(dir $(SLIBOBJS)))
210 $(SHLIBOBJS): | $(sort $(dir $(SHLIBOBJS)))
211 $(STLIBOBJS): | $(sort
[all...]
/third_party/python/Lib/
H A DcProfile.py16 def run(statement, filename=None, sort=-1):
17 return _pyprofile._Utils(Profile).run(statement, filename, sort)
19 def runctx(statement, globals, locals, filename=None, sort=-1):
21 filename, sort)
41 def print_stats(self, sort=-1):
43 pstats.Stats(self).strip_dirs().sort_stats(sort).print_stats()
137 usage = "cProfile.py [-o output_file_path] [-s sort] [-m module | scriptfile] [arg] ..."
142 parser.add_option('-s', '--sort', dest="sort",
180 runctx(code, globs, None, options.outfile, options.sort)
[all...]
H A Dprofile.py51 def run(self, statement, filename, sort):
58 self._show(prof, filename, sort)
60 def runctx(self, statement, globals, locals, filename, sort):
67 self._show(prof, filename, sort)
69 def _show(self, prof, filename, sort):
73 prof.print_stats(sort)
81 def run(statement, filename=None, sort=-1):
92 return _Utils(Profile).run(statement, filename, sort)
94 def runctx(statement, globals, locals, filename=None, sort=-1):
100 return _Utils(Profile).runctx(statement, globals, locals, filename, sort)
[all...]
H A Dfilecmp.py141 self.left_list.sort()
142 self.right_list.sort()
210 self.left_only.sort()
213 self.right_only.sort()
216 self.same_files.sort()
219 self.diff_files.sort()
222 self.funny_files.sort()
225 self.common_dirs.sort()
228 self.common_funny.sort()
/third_party/icu/icu4c/source/tools/genren/
H A DMakefile92 sorts: urename.sort urename.old.sort
94 @echo "Try 'diff --side-by-side urename.old.sort urename.sort'"
96 urename.sort: urename.h
97 sort urename.h > $@
99 urename.old.sort: $(top_srcdir)/common/unicode/urename.h
100 sort $(top_srcdir)/common/unicode/urename.h > $@
/third_party/skia/third_party/externals/icu/source/tools/genren/
H A DMakefile92 sorts: urename.sort urename.old.sort
94 @echo "Try 'diff --side-by-side urename.old.sort urename.sort'"
96 urename.sort: urename.h
97 sort urename.h > $@
99 urename.old.sort: $(top_srcdir)/common/unicode/urename.h
100 sort $(top_srcdir)/common/unicode/urename.h > $@
/third_party/littlefs/scripts/
H A Dstructs.py299 sort=None,
326 # sort again, now with diff info, note that python's sort is stable
327 names.sort()
329 names.sort(key=lambda n: tuple(
335 if sort:
336 for k, reverse in reversed(sort):
337 names.sort(
471 sort=None,
498 # sort, not
[all...]
/third_party/skia/experimental/tskit/go/gen_types/
H A Dgen_types.go13 "sort"
154 sort.Strings(privateModuleFunctions)
155 sort.Strings(publicModuleFunctions)
156 sort.Slice(wasmObjects, func(i, j int) bool {
159 sort.Slice(valueObjects, func(i, j int) bool {
162 sort.Strings(constants)
193 sort.Strings(obj.constructors)
202 sort.Strings(obj.privateMethods)
203 sort.Strings(obj.publicMethods)
218 sort
[all...]
/third_party/selinux/libsepol/src/
H A DMakefile20 OBJS= $(patsubst %.c,%.o,$(sort $(wildcard *.c)))
21 LOBJS= $(patsubst %.c,%.lo,$(sort $(wildcard *.c)))
27 OBJS += $(sort $(patsubst %.c,%.o,$(sort $(wildcard $(CILDIR)/src/*.c)) $(CIL_GENERATED)))
28 LOBJS += $(sort $(patsubst %.c,%.lo,$(sort $(wildcard $(CILDIR)/src/*.c)) $(CIL_GENERATED)))
/third_party/ltp/include/mk/
H A Denv_post.mk51 MAKE_TARGETS ?= $(notdir $(patsubst %.c,%,$(sort $(wildcard $(abs_srcdir)/*.c))))
83 $(abspath $(addprefix $(DESTDIR)/$(INSTALL_DIR)/,$(sort $(dir $(INSTALL_TARGETS) $(MAKE_TARGETS))))):
93 CHECK_TARGETS ?= $(addprefix check-,$(notdir $(patsubst %.c,%,$(sort $(wildcard $(abs_srcdir)/*.c)))))
95 CHECK_HEADER_TARGETS ?= $(addprefix check-,$(notdir $(sort $(wildcard $(abs_srcdir)/*.h))))
99 SHELL_CHECK_TARGETS ?= $(addprefix check-,$(notdir $(sort $(wildcard $(abs_srcdir)/*.sh))))
/third_party/typescript/tests/baselines/reference/
H A Dicomparable.js6 declare function sort<U extends IComparable<any>>(items: U[]): U[];
13 var x = sort(sc);
17 var x = sort(sc);

Completed in 31 milliseconds

12345678910>>...48