Home
last modified time | relevance | path

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

12345678910>>...47

/third_party/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 …]
/third_party/flatbuffers/tests/my-game/example/
Dmonster.js19 this.bb = null;
22 __init(i, bb) { argument
24 this.bb = bb;
27 static getRootAsMonster(bb, obj) { argument
28 return (obj || new Monster()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
30 static getSizePrefixedRootAsMonster(bb, obj) { argument
31 bb.setPosition(bb.position() + flatbuffers.SIZE_PREFIX_LENGTH);
32 return (obj || new Monster()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
34 static bufferHasIdentifier(bb) { argument
35 return bb.__has_identifier('MONS');
[all …]
Dtype-aliases.js5 this.bb = null;
8 __init(i, bb) { argument
10 this.bb = bb;
13 static getRootAsTypeAliases(bb, obj) { argument
14 return (obj || new TypeAliases()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
16 static getSizePrefixedRootAsTypeAliases(bb, obj) { argument
17 bb.setPosition(bb.position() + flatbuffers.SIZE_PREFIX_LENGTH);
18 return (obj || new TypeAliases()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
21 const offset = this.bb.__offset(this.bb_pos, 4);
22 return offset ? this.bb.readInt8(this.bb_pos + offset) : 0;
[all …]
Dmonster.ts24 bb: flatbuffers.ByteBuffer|null = null; property in Monster
26 __init(i:number, bb:flatbuffers.ByteBuffer):Monster {
28 this.bb = bb;
32 static getRootAsMonster(bb:flatbuffers.ByteBuffer, obj?:Monster):Monster {
33 return (obj || new Monster()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
36 static getSizePrefixedRootAsMonster(bb:flatbuffers.ByteBuffer, obj?:Monster):Monster {
37 bb.setPosition(bb.position() + flatbuffers.SIZE_PREFIX_LENGTH);
38 return (obj || new Monster()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
41 static bufferHasIdentifier(bb:flatbuffers.ByteBuffer):boolean {
42 return bb.__has_identifier('MONS');
[all …]
Dtype-aliases.ts8 bb: flatbuffers.ByteBuffer|null = null; property in TypeAliases
10 __init(i:number, bb:flatbuffers.ByteBuffer):TypeAliases {
12 this.bb = bb;
16 static getRootAsTypeAliases(bb:flatbuffers.ByteBuffer, obj?:TypeAliases):TypeAliases {
17 return (obj || new TypeAliases()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
20 static getSizePrefixedRootAsTypeAliases(bb:flatbuffers.ByteBuffer, obj?:TypeAliases):TypeAliases {
21 bb.setPosition(bb.position() + flatbuffers.SIZE_PREFIX_LENGTH);
22 return (obj || new TypeAliases()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
26 const offset = this.bb!.__offset(this.bb_pos, 4);
27 return offset ? this.bb!.readInt8(this.bb_pos + offset) : 0;
[all …]
Dstat.js5 this.bb = null;
8 __init(i, bb) { argument
10 this.bb = bb;
13 static getRootAsStat(bb, obj) { argument
14 return (obj || new Stat()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
16 static getSizePrefixedRootAsStat(bb, obj) { argument
17 bb.setPosition(bb.position() + flatbuffers.SIZE_PREFIX_LENGTH);
18 return (obj || new Stat()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
21 const offset = this.bb.__offset(this.bb_pos, 4);
22 return offset ? this.bb.__string(this.bb_pos + offset, optionalEncoding) : null;
[all …]
Dreferrable.js5 this.bb = null;
8 __init(i, bb) { argument
10 this.bb = bb;
13 static getRootAsReferrable(bb, obj) { argument
14 return (obj || new Referrable()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
16 static getSizePrefixedRootAsReferrable(bb, obj) { argument
17 bb.setPosition(bb.position() + flatbuffers.SIZE_PREFIX_LENGTH);
18 return (obj || new Referrable()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
21 const offset = this.bb.__offset(this.bb_pos, 4);
22 return offset ? this.bb.readUint64(this.bb_pos + offset) : this.bb.createLong(0, 0);
[all …]
Dstat.ts8 bb: flatbuffers.ByteBuffer|null = null; property in Stat
10 __init(i:number, bb:flatbuffers.ByteBuffer):Stat {
12 this.bb = bb;
16 static getRootAsStat(bb:flatbuffers.ByteBuffer, obj?:Stat):Stat {
17 return (obj || new Stat()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
20 static getSizePrefixedRootAsStat(bb:flatbuffers.ByteBuffer, obj?:Stat):Stat {
21 bb.setPosition(bb.position() + flatbuffers.SIZE_PREFIX_LENGTH);
22 return (obj || new Stat()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
28 const offset = this.bb!.__offset(this.bb_pos, 4);
29 return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
[all …]
Dtest-simple-table-with-enum.js6 this.bb = null;
9 __init(i, bb) { argument
11 this.bb = bb;
14 static getRootAsTestSimpleTableWithEnum(bb, obj) { argument
15 …return (obj || new TestSimpleTableWithEnum()).__init(bb.readInt32(bb.position()) + bb.position(),
17 static getSizePrefixedRootAsTestSimpleTableWithEnum(bb, obj) { argument
18 bb.setPosition(bb.position() + flatbuffers.SIZE_PREFIX_LENGTH);
19 …return (obj || new TestSimpleTableWithEnum()).__init(bb.readInt32(bb.position()) + bb.position(),
22 const offset = this.bb.__offset(this.bb_pos, 4);
23 return offset ? this.bb.readUint8(this.bb_pos + offset) : Color.Green;
[all …]
/third_party/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()
53 int bitbuf_skip(struct bitbuf *bb, int bits) in bitbuf_skip() argument
55 int pos = bb->bitpos + bits + (bits<0), len; in bitbuf_skip()
57 while (pos >= (len = bb->len<<3)) { in bitbuf_skip()
59 if (1 > (bb->len = read(bb->fd, bb->buf, bb->max))) { in bitbuf_skip()
60 if (!bb->len && !bits) break; in bitbuf_skip()
64 bb->bitpos = pos; in bitbuf_skip()
[all …]
/third_party/ltp/tools/sparse/sparse-src/
Dflow.c39 if (!insn->bb) in remove_phisources()
52 if (phisrc->bb != par) in remove_phisources()
58 phisrc->bb = NULL; in remove_phisources()
70 static int remove_other_phisources(struct basic_block *bb, struct multijmp_list *list, struct basic… in remove_other_phisources() argument
80 changed |= remove_phisources(bb, jmp->target); in remove_other_phisources()
90 static int rewrite_branch(struct basic_block *bb, in rewrite_branch() argument
95 if (*ptr != old || new == old || !bb->ep) in rewrite_branch()
102 replace_bb_in_list(&bb->children, old, new, 1); in rewrite_branch()
103 remove_bb_from_list(&old->parents, bb, 1); in rewrite_branch()
104 add_bb(&new->parents, bb); in rewrite_branch()
[all …]
Dliveness.c25 if (!def || !def->bb) in phi_defines()
27 defines(def->bb, target); in phi_defines()
31 static void asm_liveness(struct basic_block *bb, struct instruction *insn, in asm_liveness() argument
38 use(bb, entry->pseudo); in asm_liveness()
43 use(bb, entry->pseudo); in asm_liveness()
45 def(bb, entry->pseudo); in asm_liveness()
49 static void track_instruction_usage(struct basic_block *bb, struct instruction *insn, in track_instruction_usage() argument
55 #define USES(x) use(bb, insn->x) in track_instruction_usage()
56 #define DEFINES(x) def(bb, insn->x) in track_instruction_usage()
121 use(bb, pseudo); in track_instruction_usage()
[all …]
Dflowgraph.c23 static void label_postorder(struct basic_block *bb, struct cfg_info *info) in label_postorder() argument
27 if (bb->generation == info->gen) in label_postorder()
30 bb->generation = info->gen; in label_postorder()
31 FOR_EACH_PTR_REVERSE(bb->children, child) { in label_postorder()
35 bb->postorder_nr = info->nr++; in label_postorder()
36 add_bb(&info->list, bb); in label_postorder()
41 struct basic_block *bb; in reverse_bbs() local
42 FOR_EACH_PTR_REVERSE(src, bb) { in reverse_bbs()
43 add_bb(dst, bb); in reverse_bbs()
44 } END_FOR_EACH_PTR_REVERSE(bb); in reverse_bbs()
[all …]
/third_party/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 …]
/third_party/flatbuffers/tests/optional_scalars/
Dscalar-stuff.js6 this.bb = null;
9 __init(i, bb) { argument
11 this.bb = bb;
14 static getRootAsScalarStuff(bb, obj) { argument
15 return (obj || new ScalarStuff()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
17 static getSizePrefixedRootAsScalarStuff(bb, obj) { argument
18 bb.setPosition(bb.position() + flatbuffers.SIZE_PREFIX_LENGTH);
19 return (obj || new ScalarStuff()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
21 static bufferHasIdentifier(bb) { argument
22 return bb.__has_identifier('NULL');
[all …]
Dscalar-stuff.ts9 bb: flatbuffers.ByteBuffer|null = null; property in ScalarStuff
11 __init(i:number, bb:flatbuffers.ByteBuffer):ScalarStuff {
13 this.bb = bb;
17 static getRootAsScalarStuff(bb:flatbuffers.ByteBuffer, obj?:ScalarStuff):ScalarStuff {
18 return (obj || new ScalarStuff()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
21 static getSizePrefixedRootAsScalarStuff(bb:flatbuffers.ByteBuffer, obj?:ScalarStuff):ScalarStuff {
22 bb.setPosition(bb.position() + flatbuffers.SIZE_PREFIX_LENGTH);
23 return (obj || new ScalarStuff()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
26 static bufferHasIdentifier(bb:flatbuffers.ByteBuffer):boolean {
27 return bb.__has_identifier('NULL');
[all …]
/third_party/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 …]
/third_party/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 …]
/third_party/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 …]
/third_party/flatbuffers/tests/union_vector/
Dmovie.js6 this.bb = null;
9 __init(i, bb) { argument
11 this.bb = bb;
14 static getRootAsMovie(bb, obj) { argument
15 return (obj || new Movie()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
17 static getSizePrefixedRootAsMovie(bb, obj) { argument
18 bb.setPosition(bb.position() + flatbuffers.SIZE_PREFIX_LENGTH);
19 return (obj || new Movie()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
21 static bufferHasIdentifier(bb) { argument
22 return bb.__has_identifier('MOVI');
[all …]
Dattacker.js5 this.bb = null;
8 __init(i, bb) { argument
10 this.bb = bb;
13 static getRootAsAttacker(bb, obj) { argument
14 return (obj || new Attacker()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
16 static getSizePrefixedRootAsAttacker(bb, obj) { argument
17 bb.setPosition(bb.position() + flatbuffers.SIZE_PREFIX_LENGTH);
18 return (obj || new Attacker()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
21 const offset = this.bb.__offset(this.bb_pos, 4);
22 return offset ? this.bb.readInt32(this.bb_pos + offset) : 0;
[all …]
/third_party/flatbuffers/tests/namespace_test/namespace-a/namespace-b/
Dtable-in-nested-n-s.js5 this.bb = null;
8 __init(i, bb) { argument
10 this.bb = bb;
13 static getRootAsTableInNestedNS(bb, obj) { argument
14 … return (obj || new TableInNestedNS()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
16 static getSizePrefixedRootAsTableInNestedNS(bb, obj) { argument
17 bb.setPosition(bb.position() + flatbuffers.SIZE_PREFIX_LENGTH);
18 … return (obj || new TableInNestedNS()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
21 const offset = this.bb.__offset(this.bb_pos, 4);
22 return offset ? this.bb.readInt32(this.bb_pos + offset) : 0;
[all …]
/third_party/flatbuffers/tests/namespace_test/namespace-c/
Dtable-in-c.js7 this.bb = null;
10 __init(i, bb) { argument
12 this.bb = bb;
15 static getRootAsTableInC(bb, obj) { argument
16 return (obj || new TableInC()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
18 static getSizePrefixedRootAsTableInC(bb, obj) { argument
19 bb.setPosition(bb.position() + flatbuffers.SIZE_PREFIX_LENGTH);
20 return (obj || new TableInC()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
23 const offset = this.bb.__offset(this.bb_pos, 4);
24 …rn offset ? (obj || new TableInFirstNS()).__init(this.bb.__indirect(this.bb_pos + offset), this.bb
[all …]
/third_party/flatbuffers/tests/namespace_test/namespace-a/
Dtable-in-first-n-s.js9 this.bb = null;
12 __init(i, bb) { argument
14 this.bb = bb;
17 static getRootAsTableInFirstNS(bb, obj) { argument
18 … return (obj || new TableInFirstNS()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
20 static getSizePrefixedRootAsTableInFirstNS(bb, obj) { argument
21 bb.setPosition(bb.position() + flatbuffers.SIZE_PREFIX_LENGTH);
22 … return (obj || new TableInFirstNS()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
25 const offset = this.bb.__offset(this.bb_pos, 4);
26 …n offset ? (obj || new TableInNestedNS()).__init(this.bb.__indirect(this.bb_pos + offset), this.bb
[all …]

12345678910>>...47