/external/python/cpython2/Lib/test/ |
D | test_slice.py | 14 self.assertRaises(TypeError, slice) 15 self.assertRaises(TypeError, slice, 1, 2, 3, 4) 18 self.assertEqual(repr(slice(1, 2, 3)), "slice(1, 2, 3)") 22 self.assertRaises(TypeError, hash, slice(5)) 24 slice(5).__hash__() 27 s1 = slice(1, 2, 3) 28 s2 = slice(1, 2, 3) 29 s3 = slice(1, 2, 4) 41 s1 = slice(BadCmp()) 42 s2 = slice(BadCmp()) [all …]
|
/external/v8/src/interpreter/ |
D | constant-array-builder.cc | 110 ConstantArraySlice* slice = idx_slice_[--i]; in size() local 111 if (slice->size() > 0) { in size() 112 return slice->start_index() + slice->size(); in size() 120 for (ConstantArraySlice* slice : idx_slice_) { in IndexToSlice() 121 if (index <= slice->max_index()) { in IndexToSlice() 122 return slice; in IndexToSlice() 131 const ConstantArraySlice* slice = IndexToSlice(index); in At() local 132 DCHECK_LT(index, slice->capacity()); in At() 133 if (index < slice->start_index() + slice->size()) { in At() 134 const Entry& entry = slice->At(index); in At() [all …]
|
/external/mesa3d/src/mesa/drivers/dri/i915/ |
D | intel_mipmap_tree.c | 398 free((*mt)->level[i].slice); in intel_miptree_release() 497 assert(mt->level[level].slice == NULL); in intel_miptree_set_level_info() 499 mt->level[level].slice = calloc(d, sizeof(*mt->level[0].slice)); in intel_miptree_set_level_info() 500 mt->level[level].slice[0].x_offset = mt->level[level].level_x; in intel_miptree_set_level_info() 501 mt->level[level].slice[0].y_offset = mt->level[level].level_y; in intel_miptree_set_level_info() 515 mt->level[level].slice[img].x_offset = mt->level[level].level_x + x; in intel_miptree_set_image_offset() 516 mt->level[level].slice[img].y_offset = mt->level[level].level_y + y; in intel_miptree_set_image_offset() 520 mt->level[level].slice[img].x_offset, in intel_miptree_set_image_offset() 521 mt->level[level].slice[img].y_offset); in intel_miptree_set_image_offset() 526 GLuint level, GLuint slice, in intel_miptree_get_image_offset() argument [all …]
|
D | intel_tex_copy.c | 51 GLint dstx, GLint dsty, GLint slice, in intel_copy_texsubimage() argument 71 intelImage->base.Base.Face + slice, in intel_copy_texsubimage() 84 GLint xoffset, GLint yoffset, GLint slice, in intelCopyTexSubImage() argument 94 xoffset, yoffset, slice, in intelCopyTexSubImage() 102 xoffset, yoffset, slice, in intelCopyTexSubImage()
|
/external/eigen/unsupported/test/ |
D | cxx11_tensor_morphing.cpp | 102 slice1 = tensor.slice(indices, sizes); in test_simple_slice() 108 slice2 = tensor.slice(indices2, sizes2); in test_simple_slice() 125 TensorRef<Tensor<const float, 1> > slice_ref(m.slice(offsets, m.dimensions())); in test_const_slice() 149 …tensor3 = tensor1.slice(indices1, sizes1).contract(tensor2.slice(indices2, sizes2), contract_along… in test_slice_in_expr() 160 …Tensor<float, 1, DataLayout> tensor6 = tensor4.reshape(DSizes<ptrdiff_t, 1>(7*7)).exp().slice(DSiz… in test_slice_in_expr() 183 result.slice(first_slice, sizes12) = tensor1; in test_slice_as_lvalue() 185 result.slice(second_slice, sizes12).device(Eigen::DefaultDevice()) = tensor2; in test_slice_as_lvalue() 189 result.slice(third_slice, sizes3) = tensor3; in test_slice_as_lvalue() 193 result.slice(fourth_slice, sizes4) = tensor4; in test_slice_as_lvalue() 216 result.slice(fifth_slice, sizes5) = tensor5.slice(fifth_slice, sizes5); in test_slice_as_lvalue() [all …]
|
D | cxx11_tensor_ref.cpp | 98 TensorRef<Tensor<float, 5>> slice = tensor.slice(indices, sizes); in test_slice() local 99 VERIFY_IS_EQUAL(slice(0,0,0,0,0), tensor(1,2,3,4,5)); in test_slice() 103 slice = tensor.slice(indices2, sizes2); in test_slice() 107 VERIFY_IS_EQUAL(slice(0,0,i,j,k), tensor(1,1,3+i,4+j,5+k)); in test_slice() 114 slice = tensor.slice(indices3, sizes3); in test_slice() 115 VERIFY_IS_EQUAL(slice.data(), tensor.data()); in test_slice() 190 TensorRef<Tensor<float, 4>> slice = tensor.chip(7, 4); in test_coeff_ref() local 191 slice.coeffRef(0, 0, 0, 0) = 1.0f; in test_coeff_ref() 192 slice.coeffRef(1, 0, 0, 0) += 2.0f; in test_coeff_ref()
|
D | cxx11_tensor_reverse.cpp | 132 result.slice(dst_slice_start, dst_slice_dim).reverse(dim_rev) = in test_expr_reverse() 133 tensor.slice(src_slice_start, src_slice_dim); in test_expr_reverse() 135 result.slice(dst_slice_start, dst_slice_dim) = in test_expr_reverse() 136 tensor.slice(src_slice_start, src_slice_dim).reverse(dim_rev); in test_expr_reverse() 161 result.slice(dst_slice_start, dst_slice_dim).reverse(dim_rev) = in test_expr_reverse() 162 tensor.slice(dst_slice_start, dst_slice_dim); in test_expr_reverse() 164 result.slice(dst_slice_start, dst_slice_dim) = in test_expr_reverse() 165 tensor.reverse(dim_rev).slice(dst_slice_start, dst_slice_dim); in test_expr_reverse()
|
/external/protobuf/java/core/src/main/java/com/google/protobuf/ |
D | NioByteString.java | 56 this.buffer = buffer.slice().order(ByteOrder.nativeOrder()); in NioByteString() 66 return ByteString.copyFrom(buffer.slice()); in writeReplace() 97 ByteBuffer slice = slice(beginIndex, endIndex); in substring() local 98 return new NioByteString(slice); in substring() 109 ByteBuffer slice = buffer.slice(); in copyToInternal() local 110 slice.position(sourceOffset); in copyToInternal() 111 slice.get(target, targetOffset, numberToCopy); in copyToInternal() 116 target.put(buffer.slice()); in copyTo() 139 ByteBufferWriter.write(slice(sourceOffset, sourceOffset + numberToWrite), out); in writeToInternal() 144 output.writeLazy(buffer.slice()); in writeTo() [all …]
|
/external/mesa3d/src/gallium/drivers/ilo/ |
D | ilo_resource.h | 146 unsigned level, unsigned slice) in ilo_texture_get_slice() argument 149 assert(slice < ((tex->base.target == PIPE_TEXTURE_3D) ? in ilo_texture_get_slice() 152 return &tex->slices[level][slice]; in ilo_texture_get_slice() 162 struct ilo_texture_slice *slice = in ilo_texture_set_slice_flags() local 165 while (slice <= last) { in ilo_texture_set_slice_flags() 166 slice->flags = (slice->flags & ~mask) | (value & mask); in ilo_texture_set_slice_flags() 167 slice++; in ilo_texture_set_slice_flags() 178 struct ilo_texture_slice *slice = in ilo_texture_set_slice_clear_value() local 181 while (slice <= last) { in ilo_texture_set_slice_clear_value() 182 slice->clear_value = clear_value; in ilo_texture_set_slice_clear_value() [all …]
|
D | ilo_transfer.c | 346 unsigned level, unsigned slice, in tex_get_box_origin() argument 352 ilo_image_get_slice_pos(&tex->image, level, box->z + slice, &x, &y); in tex_get_box_origin() 577 int slice; in tex_staging_sys_zs_read() local 618 for (slice = 0; slice < box->depth; slice++) { in tex_staging_sys_zs_read() 623 tex_get_box_origin(tex, xfer->base.level, slice, in tex_staging_sys_zs_read() 625 tex_get_box_origin(s8_tex, xfer->base.level, slice, in tex_staging_sys_zs_read() 628 dst = xfer->staging.sys + xfer->base.layer_stride * slice; in tex_staging_sys_zs_read() 659 for (slice = 0; slice < box->depth; slice++) { in tex_staging_sys_zs_read() 664 tex_get_box_origin(tex, xfer->base.level, slice, in tex_staging_sys_zs_read() 667 dst = xfer->staging.sys + xfer->base.layer_stride * slice; in tex_staging_sys_zs_read() [all …]
|
/external/fio/profiles/ |
D | act.c | 299 struct act_slice *slice; in act_io_u_lat() local 313 slice = &apd->slices[apd->cur_slice]; in act_io_u_lat() 314 slice->total_ios++; in act_io_u_lat() 318 slice->lat_buckets[i]++; in act_io_u_lat() 328 perm = (1000.0 * slice->lat_buckets[i]) / slice->total_ios; in act_io_u_lat() 349 static int show_slice(struct act_slice *slice, unsigned int slice_num) in show_slice() argument 358 if (slice->total_ios) in show_slice() 359 perc = 100.0 * (double) slice->lat_buckets[i] / (double) slice->total_ios; in show_slice() 367 if (slice->total_ios) in show_slice() 368 perc = 100.0 * (double) slice->lat_buckets[i] / (double) slice->total_ios; in show_slice() [all …]
|
/external/flatbuffers/include/flatbuffers/ |
D | grpc.h | 37 auto slice = gpr_slice_from_copied_buffer( in Serialize() local 39 *buffer = grpc_raw_byte_buffer_create(&slice, 1); in Serialize() 55 gpr_slice slice; in Deserialize() local 56 while (grpc_byte_buffer_reader_next(&reader, &slice)) { in Deserialize() 57 memcpy(current, GPR_SLICE_START_PTR(slice), GPR_SLICE_LENGTH(slice)); in Deserialize() 58 current += GPR_SLICE_LENGTH(slice); in Deserialize() 59 gpr_slice_unref(slice); in Deserialize()
|
/external/python/cpython2/Doc/c-api/ |
D | slice.rst | 13 The type object for slice objects. This is the same as ``slice`` and 19 Return true if *ob* is a slice object; *ob* must not be *NULL*. 24 Return a new slice object with the given values. The *start*, *stop*, and 25 *step* parameters are used as the values of the slice object attributes of 31 .. c:function:: int PySlice_GetIndices(PySliceObject *slice, Py_ssize_t length, Py_ssize_t *start, … 33 Retrieve the start, stop and step indices from the slice object *slice*, 41 You probably do not want to use this function. If you want to use slice 52 .. c:function:: int PySlice_GetIndicesEx(PySliceObject *slice, Py_ssize_t length, Py_ssize_t *start… 55 stop, and step indices from the slice object *slice* assuming a sequence of 56 length *length*, and store the length of the slice in *slicelength*. Out
|
/external/mesa3d/src/gallium/drivers/freedreno/ |
D | freedreno_resource.c | 287 struct fd_resource_slice *slice, in fd_resource_layer_offset() argument 293 return layer * slice->size0; in fd_resource_layer_offset() 300 struct fd_resource_slice *slice = fd_resource_slice(rsc, trans->base.level); in fd_resource_flush_z32s8() local 304 float *depth = fd_bo_map(rsc->bo) + slice->offset + in fd_resource_flush_z32s8() 305 fd_resource_layer_offset(rsc, slice, trans->base.box.z) + in fd_resource_flush_z32s8() 306 (trans->base.box.y + box->y) * slice->pitch * 4 + (trans->base.box.x + box->x) * 4; in fd_resource_flush_z32s8() 313 depth, slice->pitch * 4, in fd_resource_flush_z32s8() 327 struct fd_resource_slice *slice = fd_resource_slice(rsc, trans->base.level); in fd_resource_flush_rgtc() local 330 uint8_t *data = fd_bo_map(rsc->bo) + slice->offset + in fd_resource_flush_rgtc() 331 fd_resource_layer_offset(rsc, slice, trans->base.box.z) + in fd_resource_flush_rgtc() [all …]
|
/external/mesa3d/src/mesa/drivers/dri/i965/ |
D | intel_mipmap_tree.c | 989 free((*mt)->level[i].slice); in intel_miptree_release() 1109 assert(mt->level[level].slice == NULL); in intel_miptree_set_level_info() 1111 mt->level[level].slice = calloc(d, sizeof(*mt->level[0].slice)); in intel_miptree_set_level_info() 1112 mt->level[level].slice[0].x_offset = mt->level[level].level_x; in intel_miptree_set_level_info() 1113 mt->level[level].slice[0].y_offset = mt->level[level].level_y; in intel_miptree_set_level_info() 1127 mt->level[level].slice[img].x_offset = mt->level[level].level_x + x; in intel_miptree_set_image_offset() 1128 mt->level[level].slice[img].y_offset = mt->level[level].level_y + y; in intel_miptree_set_image_offset() 1132 mt->level[level].slice[img].x_offset, in intel_miptree_set_image_offset() 1133 mt->level[level].slice[img].y_offset); in intel_miptree_set_image_offset() 1138 GLuint level, GLuint slice, in intel_miptree_get_image_offset() argument [all …]
|
D | intel_tex_copy.c | 49 GLint dstx, GLint dsty, GLint slice, in intel_copy_texsubimage() argument 83 int dst_slice = slice + intelImage->base.Base.Face + in intel_copy_texsubimage() 105 GLint xoffset, GLint yoffset, GLint slice, in intelCopyTexSubImage() argument 113 if (brw_blorp_copytexsubimage(brw, rb, texImage, slice, x, y, in intelCopyTexSubImage() 120 xoffset, yoffset, slice, in intelCopyTexSubImage() 128 xoffset, yoffset, slice, in intelCopyTexSubImage()
|
/external/icu/icu4c/source/data/lang/ |
D | sk.txt | 661 no{"Radiť číslice jednotlivo"} 690 npinyin{"Číslice"} 713 arab{"arabsko-indické číslice"} 714 arabext{"rozšírené arabsko-indické číslice"} 715 armn{"arménske číslice"} 716 armnlow{"malé arménske číslice"} 717 beng{"bengálske číslice"} 718 deva{"číslice dévanágarí"} 719 ethi{"etiópske číslice"} 721 fullwide{"číslice s celou šírkou"} [all …]
|
D | cs.txt | 855 no{"Řadit číslice jednotlivě"} 856 yes{"Řadit číslice numericky"} 909 arab{"Arabsko-indické číslice"} 910 arabext{"Rozšířené arabsko-indické číslice"} 911 armn{"Arménské číslice"} 912 armnlow{"Malé arménské číslice"} 913 bali{"Balijské číslice"} 914 beng{"Bengálské číslice"} 915 deva{"Číslice písma dévanágarí"} 916 ethi{"Etiopské číslice"} [all …]
|
/external/swiftshader/third_party/LLVM/include/llvm/Support/ |
D | GCOV.h | 46 StringRef Magic = Buffer->getBuffer().slice(0, 12); in readGCOVFormat() 64 StringRef Tag = Buffer->getBuffer().slice(Cursor, Cursor+4); in readFunctionTag() 77 StringRef Tag = Buffer->getBuffer().slice(Cursor, Cursor+4); in readBlockTag() 90 StringRef Tag = Buffer->getBuffer().slice(Cursor, Cursor+4); in readEdgeTag() 103 StringRef Tag = Buffer->getBuffer().slice(Cursor, Cursor+4); in readLineTag() 116 StringRef Tag = Buffer->getBuffer().slice(Cursor, Cursor+4); in readArcTag() 128 StringRef Str = Buffer->getBuffer().slice(Cursor, Cursor+4); in readInt() 144 StringRef Str = Buffer->getBuffer().slice(Cursor, Cursor+Len); in readString()
|
/external/swiftshader/third_party/subzero/unittest/ |
D | IceELFSectionTest.cpp | 52 EXPECT_EQ(Strtab.getSectionData().slice(pop_index, pop_index + pop_size), in CheckStringTablePermLayout() 54 EXPECT_EQ(Strtab.getSectionData().slice(lollipop_index, in CheckStringTablePermLayout() 57 EXPECT_EQ(Strtab.getSectionData().slice(pops_index, pops_index + pops_size), in CheckStringTablePermLayout() 60 Strtab.getSectionData().slice(unpop_index, unpop_index + unpop_size), in CheckStringTablePermLayout() 62 EXPECT_EQ(Strtab.getSectionData().slice(popular_index, in CheckStringTablePermLayout() 66 Strtab.getSectionData().slice(strtab_index, strtab_index + strtab_size), in CheckStringTablePermLayout() 68 EXPECT_EQ(Strtab.getSectionData().slice(shstrtab_index, in CheckStringTablePermLayout() 72 Strtab.getSectionData().slice(symtab_index, symtab_index + symtab_size), in CheckStringTablePermLayout()
|
/external/mesa3d/src/gallium/drivers/vc4/ |
D | vc4_resource.c | 79 struct vc4_resource_slice *slice; in vc4_resource_transfer_unmap() local 82 slice = &rsc->slices[0]; in vc4_resource_transfer_unmap() 85 slice = &rsc->slices[ptrans->level]; in vc4_resource_transfer_unmap() 89 vc4_store_tiled_image(rsc->bo->map + slice->offset + in vc4_resource_transfer_unmap() 91 slice->stride, in vc4_resource_transfer_unmap() 93 slice->tiling, rsc->cpp, in vc4_resource_transfer_unmap() 275 struct vc4_resource_slice *slice = &rsc->slices[level]; in vc4_resource_transfer_map() local 344 buf + slice->offset + in vc4_resource_transfer_map() 346 slice->stride, in vc4_resource_transfer_map() 347 slice->tiling, rsc->cpp, in vc4_resource_transfer_map() [all …]
|
/external/python/cpython2/Lib/ctypes/test/ |
D | test_slicing.py | 53 self.assertRaises(TypeError, setitem, a, slice(0, 5), "abcde") 56 self.assertRaises(TypeError, setitem, a, slice(0, 5), 60 self.assertRaises(TypeError, setitem, a, slice(0, 5), 64 self.assertRaises(ValueError, setitem, a, slice(0, 5), range(32)) 82 res, slice(None, None, None)) 84 res, slice(0, None, None)) 86 res, slice(None, 5, -1)) 88 res, slice(-5, None, None)) 93 res, slice(0, 5), u"abcde") 153 res, slice(0, 5), u"abcde")
|
/external/libcxx/test/std/numerics/numarray/template.slice.array/slice.arr.assign/ |
D | slice_array.pass.cpp | 26 v1[std::slice(1, 5, 3)] = v2[std::slice(2, 5, 2)]; in main() 49 std::slice_array<int> s1 = v1[std::slice(1, 1, 1)]; in main() 50 std::slice_array<int> s2 = v1[std::slice(0, 1, 1)]; in main()
|
/external/llvm/include/llvm/Support/ |
D | GCOV.h | 60 StringRef File = Buffer->getBuffer().slice(0, 4); in readGCNOFormat() 71 StringRef File = Buffer->getBuffer().slice(0, 4); in readGCDAFormat() 82 StringRef VersionStr = Buffer->getBuffer().slice(Cursor, Cursor + 4); in readGCOVVersion() 105 StringRef Tag = Buffer->getBuffer().slice(Cursor, Cursor + 4); in readFunctionTag() 117 StringRef Tag = Buffer->getBuffer().slice(Cursor, Cursor + 4); in readBlockTag() 129 StringRef Tag = Buffer->getBuffer().slice(Cursor, Cursor + 4); in readEdgeTag() 141 StringRef Tag = Buffer->getBuffer().slice(Cursor, Cursor + 4); in readLineTag() 153 StringRef Tag = Buffer->getBuffer().slice(Cursor, Cursor + 4); in readArcTag() 165 StringRef Tag = Buffer->getBuffer().slice(Cursor, Cursor + 4); in readObjectTag() 177 StringRef Tag = Buffer->getBuffer().slice(Cursor, Cursor + 4); in readProgramTag() [all …]
|
/external/protobuf/python/google/protobuf/pyext/ |
D | repeated_scalar_container.cc | 290 static PyObject* Subscript(RepeatedScalarContainer* self, PyObject* slice) { in Subscript() argument 298 if (PyInt_Check(slice)) { in Subscript() 299 from = to = PyInt_AsLong(slice); in Subscript() 302 if (PyLong_Check(slice)) { in Subscript() 303 from = to = PyLong_AsLong(slice); in Subscript() 304 } else if (PySlice_Check(slice)) { in Subscript() 307 if (PySlice_GetIndicesEx(slice, in Subscript() 309 if (PySlice_GetIndicesEx(reinterpret_cast<PySliceObject*>(slice), in Subscript() 435 PyObject* slice, in AssSubscript() argument 450 if (PyInt_Check(slice)) { in AssSubscript() [all …]
|