Home
last modified time | relevance | path

Searched refs:bb (Results 1 – 25 of 2232) sorted by relevance

12345678910>>...90

/external/pigweed/pw_bytes/
Dbyte_builder_test.cc33 ByteBuilder bb(ByteSpan{}); in TEST() local
35 EXPECT_TRUE(bb.empty()); in TEST()
36 EXPECT_EQ(0u, bb.size()); in TEST()
37 EXPECT_EQ(0u, bb.max_size()); in TEST()
42 ByteBuilder bb(buffer); in TEST() local
44 EXPECT_TRUE(bb.empty()); in TEST()
45 EXPECT_EQ(0u, bb.size()); in TEST()
46 EXPECT_EQ(3u, bb.max_size()); in TEST()
51 ByteBuilder bb(buffer); in TEST() local
53 EXPECT_TRUE(bb.empty()); in TEST()
[all …]
/external/e2fsprogs/lib/ext2fs/
Dbadblocks.c36 ext2_u32_list bb; in make_u32_list() local
39 retval = ext2fs_get_mem(sizeof(struct ext2_struct_u32_list), &bb); in make_u32_list()
42 memset(bb, 0, sizeof(struct ext2_struct_u32_list)); in make_u32_list()
43 bb->magic = EXT2_ET_MAGIC_BADBLOCKS_LIST; in make_u32_list()
44 bb->size = size ? size : 10; in make_u32_list()
45 bb->num = num; in make_u32_list()
46 retval = ext2fs_get_array(bb->size, sizeof(blk_t), &bb->list); in make_u32_list()
48 ext2fs_free_mem(&bb); in make_u32_list()
52 memcpy(bb->list, list, bb->size * sizeof(blk_t)); in make_u32_list()
54 memset(bb->list, 0, bb->size * sizeof(blk_t)); in make_u32_list()
[all …]
/external/flatbuffers/tests/
Dmonster_test_generated.ts73 bb: flatbuffers.ByteBuffer|null = null; property in MyGame.InParentNamespace
81 __init(i:number, bb:flatbuffers.ByteBuffer):InParentNamespace {
83 this.bb = bb;
92 static getRootAsInParentNamespace(bb:flatbuffers.ByteBuffer, obj?:InParentNamespace):InParentNamesp…
93 return (obj || new InParentNamespace()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
101 static getSizePrefixedRootAsInParentNamespace(bb:flatbuffers.ByteBuffer, obj?:InParentNamespace):In…
102 bb.setPosition(bb.position() + flatbuffers.SIZE_PREFIX_LENGTH);
103 return (obj || new InParentNamespace()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
133 bb: flatbuffers.ByteBuffer|null = null; property in MyGame.Example2.Monster
141 __init(i:number, bb:flatbuffers.ByteBuffer):Monster {
[all …]
Dmonster_test_generated.js154 this.bb = null;
167 MyGame.InParentNamespace.prototype.__init = function(i, bb) { argument
169 this.bb = bb;
178 MyGame.InParentNamespace.getRootAsInParentNamespace = function(bb, obj) { argument
179 …return (obj || new MyGame.InParentNamespace).__init(bb.readInt32(bb.position()) + bb.position(), b…
187 MyGame.InParentNamespace.getSizePrefixedRootAsInParentNamespace = function(bb, obj) { argument
188 bb.setPosition(bb.position() + flatbuffers.SIZE_PREFIX_LENGTH);
189 …return (obj || new MyGame.InParentNamespace).__init(bb.readInt32(bb.position()) + bb.position(), b…
224 this.bb = null;
237 MyGame.Example2.Monster.prototype.__init = function(i, bb) { argument
[all …]
/external/flatbuffers/tests/namespace_test/
Dnamespace_test2_generated.js28 this.bb = null;
41 NamespaceA.TableInFirstNS.prototype.__init = function(i, bb) { argument
43 this.bb = bb;
52 NamespaceA.TableInFirstNS.getRootAsTableInFirstNS = function(bb, obj) { argument
53 …return (obj || new NamespaceA.TableInFirstNS).__init(bb.readInt32(bb.position()) + bb.position(),
61 NamespaceA.TableInFirstNS.getSizePrefixedRootAsTableInFirstNS = function(bb, obj) { argument
62 bb.setPosition(bb.position() + flatbuffers.SIZE_PREFIX_LENGTH);
63 …return (obj || new NamespaceA.TableInFirstNS).__init(bb.readInt32(bb.position()) + bb.position(),
71 var offset = this.bb.__offset(this.bb_pos, 4);
72 …ew NamespaceA.NamespaceB.TableInNestedNS).__init(this.bb.__indirect(this.bb_pos + offset), this.bb
[all …]
Dnamespace_test2_generated.ts9 bb: flatbuffers.ByteBuffer|null = null; property in NamespaceA.TableInFirstNS
17 __init(i:number, bb:flatbuffers.ByteBuffer):TableInFirstNS {
19 this.bb = bb;
28 static getRootAsTableInFirstNS(bb:flatbuffers.ByteBuffer, obj?:TableInFirstNS):TableInFirstNS {
29 return (obj || new TableInFirstNS()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
37 static getSizePrefixedRootAsTableInFirstNS(bb:flatbuffers.ByteBuffer, obj?:TableInFirstNS):TableInF…
38 bb.setPosition(bb.position() + flatbuffers.SIZE_PREFIX_LENGTH);
39 return (obj || new TableInFirstNS()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
47 var offset = this.bb!.__offset(this.bb_pos, 4);
48 ….NamespaceA.NamespaceB.TableInNestedNS()).__init(this.bb!.__indirect(this.bb_pos + offset), this.b…
[all …]
Dnamespace_test1_generated.ts18 bb: flatbuffers.ByteBuffer|null = null; property in NamespaceA.NamespaceB.TableInNestedNS
26 __init(i:number, bb:flatbuffers.ByteBuffer):TableInNestedNS {
28 this.bb = bb;
37 static getRootAsTableInNestedNS(bb:flatbuffers.ByteBuffer, obj?:TableInNestedNS):TableInNestedNS {
38 return (obj || new TableInNestedNS()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
46 static getSizePrefixedRootAsTableInNestedNS(bb:flatbuffers.ByteBuffer, obj?:TableInNestedNS):TableI…
47 bb.setPosition(bb.position() + flatbuffers.SIZE_PREFIX_LENGTH);
48 return (obj || new TableInNestedNS()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
55 var offset = this.bb!.__offset(this.bb_pos, 4);
56 return offset ? this.bb!.readInt32(this.bb_pos + offset) : 0;
[all …]
Dnamespace_test1_generated.js40 this.bb = null;
53 NamespaceA.NamespaceB.TableInNestedNS.prototype.__init = function(i, bb) { argument
55 this.bb = bb;
64 NamespaceA.NamespaceB.TableInNestedNS.getRootAsTableInNestedNS = function(bb, obj) { argument
65 …|| new NamespaceA.NamespaceB.TableInNestedNS).__init(bb.readInt32(bb.position()) + bb.position(),
73 NamespaceA.NamespaceB.TableInNestedNS.getSizePrefixedRootAsTableInNestedNS = function(bb, obj) { argument
74 bb.setPosition(bb.position() + flatbuffers.SIZE_PREFIX_LENGTH);
75 …|| new NamespaceA.NamespaceB.TableInNestedNS).__init(bb.readInt32(bb.position()) + bb.position(),
82 var offset = this.bb.__offset(this.bb_pos, 4);
83 return offset ? this.bb.readInt32(this.bb_pos + offset) : 0;
[all …]
/external/toybox/lib/
Ddeflate.c42 struct bitbuf *bb = xzalloc(sizeof(struct bitbuf)+size); in bitbuf_init() local
44 bb->max = size; in bitbuf_init()
45 bb->fd = fd; in bitbuf_init()
47 return bb; in bitbuf_init()
52 static void bitbuf_skip(struct bitbuf *bb, int bits) in bitbuf_skip() argument
54 int pos = bb->bitpos + bits, len = bb->len << 3; in bitbuf_skip()
58 len = (bb->len = read(bb->fd, bb->buf, bb->max)) << 3; in bitbuf_skip()
59 if (bb->len < 1) perror_exit("inflate EOF"); in bitbuf_skip()
61 bb->bitpos = pos; in bitbuf_skip()
65 static inline int bitbuf_bit(struct bitbuf *bb) in bitbuf_bit() argument
[all …]
/external/flatbuffers/tests/union_vector/
Dunion_vector_generated.js36 this.bb = null;
49 Attacker.prototype.__init = function(i, bb) { argument
51 this.bb = bb;
60 Attacker.getRootAsAttacker = function(bb, obj) { argument
61 return (obj || new Attacker).__init(bb.readInt32(bb.position()) + bb.position(), bb);
69 Attacker.getSizePrefixedRootAsAttacker = function(bb, obj) { argument
70 bb.setPosition(bb.position() + flatbuffers.SIZE_PREFIX_LENGTH);
71 return (obj || new Attacker).__init(bb.readInt32(bb.position()) + bb.position(), bb);
78 var offset = this.bb.__offset(this.bb_pos, 4);
79 return offset ? this.bb.readInt32(this.bb_pos + offset) : 0;
[all …]
Dunion_vector_generated.ts20 bb: flatbuffers.ByteBuffer|null = null; property in Attacker
28 __init(i:number, bb:flatbuffers.ByteBuffer):Attacker {
30 this.bb = bb;
39 static getRootAsAttacker(bb:flatbuffers.ByteBuffer, obj?:Attacker):Attacker {
40 return (obj || new Attacker()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
48 static getSizePrefixedRootAsAttacker(bb:flatbuffers.ByteBuffer, obj?:Attacker):Attacker {
49 bb.setPosition(bb.position() + flatbuffers.SIZE_PREFIX_LENGTH);
50 return (obj || new Attacker()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
57 var offset = this.bb!.__offset(this.bb_pos, 4);
58 return offset ? this.bb!.readInt32(this.bb_pos + offset) : 0;
[all …]
/external/flatbuffers/java/com/google/flatbuffers/
DTable.java32 protected ByteBuffer bb; field in Table
44 public ByteBuffer getByteBuffer() { return bb; } in getByteBuffer()
53 return vtable_offset < vtable_size ? bb.getShort(vtable_start + vtable_offset) : 0; in __offset()
56 protected static int __offset(int vtable_offset, int offset, ByteBuffer bb) { in __offset() argument
57 int vtable = bb.capacity() - offset; in __offset()
58 return bb.getShort(vtable + vtable_offset - bb.getInt(vtable)) + vtable; in __offset()
68 return offset + bb.getInt(offset); in __indirect()
78 protected static int __indirect(int offset, ByteBuffer bb) { in __indirect() argument
79 return offset + bb.getInt(offset); in __indirect()
94 return __string(offset, bb, utf8); in __string()
[all …]
DFlexBuffers.java154 private static int indirect(ReadBuf bb, int offset, int byteWidth) { in indirect() argument
156 return (int) (offset - readUInt(bb, offset, byteWidth)); in indirect()
227 private ReadBuf bb; field in FlexBuffers.Reference
233 Reference(ReadBuf bb, int end, int parentWidth, int packedType) { in Reference() argument
234 this(bb, end, parentWidth, (1 << (packedType & 3)), packedType >> 2); in Reference()
237 Reference(ReadBuf bb, int end, int parentWidth, int byteWidth, int type) { in Reference() argument
238 this.bb = bb; in Reference()
368 return readInt(bb, end, parentWidth); in asInt()
371 … case FBT_INDIRECT_INT: return readInt(bb, indirect(bb, end, parentWidth), byteWidth); in asInt()
372 case FBT_UINT: return (int) readUInt(bb, end, parentWidth); in asInt()
[all …]
/external/bpftool/src/
Dcfg.c50 #define bb_prev(bb) list_prev_entry(bb, l) argument
51 #define bb_next(bb) list_next_entry(bb, l) argument
91 struct bb_node *new_bb, *bb; in func_append_bb() local
93 list_for_each_entry(bb, &func->bbs, l) { in func_append_bb()
94 if (bb->head == insn) in func_append_bb()
95 return bb; in func_append_bb()
96 else if (bb->head > insn) in func_append_bb()
100 bb = bb_prev(bb); in func_append_bb()
109 list_add(&new_bb->l, &bb->l); in func_append_bb()
116 struct bb_node *bb; in func_insert_dummy_bb() local
[all …]
/external/llvm/test/CodeGen/WebAssembly/
Dswitch.ll42 i32 0, label %sw.bb
43 i32 1, label %sw.bb
44 i32 2, label %sw.bb
45 i32 3, label %sw.bb
46 i32 4, label %sw.bb
47 i32 5, label %sw.bb
48 i32 6, label %sw.bb
49 i32 7, label %sw.bb.1
50 i32 8, label %sw.bb.1
51 i32 9, label %sw.bb.1
[all …]
/external/mp4parser/isoparser/src/main/java/com/coremedia/iso/
DIsoTypeWriter.java22 public static void writeUInt64(ByteBuffer bb, long u) { in writeUInt64() argument
23 bb.putLong(u); in writeUInt64()
26 public static void writeUInt32(ByteBuffer bb, long u) { in writeUInt32() argument
27 bb.putInt((int) u); in writeUInt32()
31 public static void writeUInt32BE(ByteBuffer bb, long u) { in writeUInt32BE() argument
33 writeUInt16BE(bb, (int) u & 0xFFFF); in writeUInt32BE()
34 writeUInt16BE(bb, (int) ((u >> 16) & 0xFFFF)); in writeUInt32BE()
39 public static void writeUInt24(ByteBuffer bb, int i) { in writeUInt24() argument
41 writeUInt16(bb, i >> 8); in writeUInt24()
42 writeUInt8(bb, i); in writeUInt24()
[all …]
/external/mesa3d/src/gallium/frontends/hgl/
Dbitmap_wrapper.cpp46 BBitmap *bb = new BBitmap(BRect(0, 0, width, height), colorSpace); in create_bitmap() local
47 if (bb) in create_bitmap()
48 return (Bitmap*)bb; in create_bitmap()
56 BBitmap *bb = (BBitmap*)bitmap; in get_bitmap_size() local
57 if (bb && width && height) { in get_bitmap_size()
58 uint32 w = bb->Bounds().IntegerWidth() + 1; in get_bitmap_size()
59 uint32 h = bb->Bounds().IntegerHeight() + 1; in get_bitmap_size()
69 BBitmap *bb = (BBitmap*)bitmap; in get_bitmap_color_space() local
70 if (bb) in get_bitmap_color_space()
71 return bb->ColorSpace(); in get_bitmap_color_space()
[all …]
/external/flatbuffers/net/FlatBuffers/
DTable.cs29 public ByteBuffer bb { get; private set; } property
31 public ByteBuffer ByteBuffer { get { return bb; } }
36 bb = _bb; in Table()
44 int vtable = bb_pos - bb.GetInt(bb_pos); in __offset()
45 return vtableOffset < bb.GetShort(vtable) ? (int)bb.GetShort(vtable + vtableOffset) : 0; in __offset()
48 public static int __offset(int vtableOffset, int offset, ByteBuffer bb) in __offset()
50 int vtable = bb.Length - offset; in __offset()
51 return (int)bb.GetShort(vtable + vtableOffset - bb.GetInt(vtable)) + vtable; in __offset()
57 return offset + bb.GetInt(offset); in __indirect()
60 public static int __indirect(int offset, ByteBuffer bb) in __indirect()
[all …]
/external/llvm/test/Transforms/GVN/
D2011-04-27-phioperands.ll9 br label %"<bb 5>"
12 br i1 undef, label %"<bb 3>.i30.i", label %doemit.exit51.i
14 "<bb 3>.i30.i":
18 br label %"<bb 53>.i"
21 br i1 undef, label %"<bb 3>.i55.i", label %doemit.exit76.i
23 "<bb 3>.i55.i":
27 br label %"<bb 53>.i"
31 br label %"<bb 53>.i"
34 br label %"<bb 53>.i"
37 br i1 undef, label %"<bb 53>.i", label %"<bb 35>.i"
[all …]
/external/erofs-utils/lib/
Dcache.c82 static void erofs_bupdate_mapped(struct erofs_buffer_block *bb) in erofs_bupdate_mapped() argument
86 if (bb->blkaddr == NULL_ADDR) in erofs_bupdate_mapped()
89 bkt = mapped_buckets[bb->type] + bb->buffers.off % EROFS_BLKSIZ; in erofs_bupdate_mapped()
90 list_del(&bb->mapped_list); in erofs_bupdate_mapped()
91 list_add_tail(&bb->mapped_list, bkt); in erofs_bupdate_mapped()
95 static int __erofs_battach(struct erofs_buffer_block *bb, in __erofs_battach() argument
102 const erofs_off_t alignedoffset = roundup(bb->buffers.off, alignsize); in __erofs_battach()
103 const int oob = cmpsgn(roundup((bb->buffers.off - 1) % EROFS_BLKSIZ + 1, in __erofs_battach()
111 if (oob && list_next_entry(bb, list)->blkaddr != NULL_ADDR) in __erofs_battach()
114 blkaddr = bb->blkaddr; in __erofs_battach()
[all …]
/external/llvm/test/CodeGen/ARM/
D2009-06-15-RegScavengerAssert.ll9 br i1 undef, label %bb, label %bb1
11 bb: ; preds = %entry
26 br i1 undef, label %memory_CalculateRealBlockSize1374.exit.i, label %bb.i.i9
28 bb.i.i9: ; preds = %bb6.i8
31 memory_CalculateRealBlockSize1374.exit.i: ; preds = %bb.i.i9, %bb6.i8
32 %0 = phi i32 [ undef, %bb.i.i9 ], [ undef, %bb6.i8 ] ; <i32> [#uses=2]
40 br label %bb.i.i
42 bb.i.i: ; preds = %bb.i.i, %memory_Init.exit
43 br i1 undef, label %symbol_Init.exit, label %bb.i.i
45 symbol_Init.exit: ; preds = %bb.i.i
[all …]
/external/rust/crates/grpcio-sys/grpc/src/core/lib/surface/
Dbyte_buffer.cc38 grpc_byte_buffer* bb = in grpc_raw_compressed_byte_buffer_create() local
40 bb->type = GRPC_BB_RAW; in grpc_raw_compressed_byte_buffer_create()
41 bb->data.raw.compression = compression; in grpc_raw_compressed_byte_buffer_create()
42 grpc_slice_buffer_init(&bb->data.raw.slice_buffer); in grpc_raw_compressed_byte_buffer_create()
45 grpc_slice_buffer_add(&bb->data.raw.slice_buffer, slices[i]); in grpc_raw_compressed_byte_buffer_create()
47 return bb; in grpc_raw_compressed_byte_buffer_create()
52 grpc_byte_buffer* bb = in grpc_raw_byte_buffer_from_reader() local
55 bb->type = GRPC_BB_RAW; in grpc_raw_byte_buffer_from_reader()
56 bb->data.raw.compression = GRPC_COMPRESS_NONE; in grpc_raw_byte_buffer_from_reader()
57 grpc_slice_buffer_init(&bb->data.raw.slice_buffer); in grpc_raw_byte_buffer_from_reader()
[all …]
/external/grpc-grpc/src/core/lib/surface/
Dbyte_buffer.cc38 grpc_byte_buffer* bb = in grpc_raw_compressed_byte_buffer_create() local
40 bb->type = GRPC_BB_RAW; in grpc_raw_compressed_byte_buffer_create()
41 bb->data.raw.compression = compression; in grpc_raw_compressed_byte_buffer_create()
42 grpc_slice_buffer_init(&bb->data.raw.slice_buffer); in grpc_raw_compressed_byte_buffer_create()
45 grpc_slice_buffer_add(&bb->data.raw.slice_buffer, slices[i]); in grpc_raw_compressed_byte_buffer_create()
47 return bb; in grpc_raw_compressed_byte_buffer_create()
52 grpc_byte_buffer* bb = in grpc_raw_byte_buffer_from_reader() local
55 bb->type = GRPC_BB_RAW; in grpc_raw_byte_buffer_from_reader()
56 bb->data.raw.compression = GRPC_COMPRESS_NONE; in grpc_raw_byte_buffer_from_reader()
57 grpc_slice_buffer_init(&bb->data.raw.slice_buffer); in grpc_raw_byte_buffer_from_reader()
[all …]
/external/llvm/test/CodeGen/MIR/X86/
Djump-table-info.mir64 # CHECK-NEXT: blocks: [ '%bb.3.lbl1', '%bb.4.lbl2', '%bb.5.lbl3', '%bb.6.lbl4' ]
70 blocks: [ '%bb.3.lbl1', '%bb.4.lbl2', '%bb.5.lbl3', '%bb.6.lbl4' ]
72 bb.0.entry:
73 successors: %bb.2.def, %bb.1.entry
77 JA_1 %bb.2.def, implicit %eflags
79 bb.1.entry:
80 successors: %bb.3.lbl1, %bb.4.lbl2, %bb.5.lbl3, %bb.6.lbl4
87 bb.2.def:
91 bb.3.lbl1:
95 bb.4.lbl2:
[all …]
/external/llvm/test/CodeGen/X86/
Dupdate-terminator.mir2 # Check the conditional jump in bb.1 is changed to unconditional after block placement swaps bb.2 a…
29 # CHECK: bb.1:
30 # CHECK: JMP_1 %bb.2
31 # CHECK: bb.3:
32 # CHECK: bb.2:
35 bb.0 (%ir-block.0):
36 successors: %bb.1(50), %bb.3(50)
38 JNE_1 %bb.1, implicit %eflags
39 JMP_1 %bb.3
40 bb.1:
[all …]

12345678910>>...90