/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/util/ |
D | Pack.java | 5 public static int bigEndianToInt(byte[] bs, int off) in bigEndianToInt() argument 7 int n = bs[ off] << 24; in bigEndianToInt() 8 n |= (bs[++off] & 0xff) << 16; in bigEndianToInt() 9 n |= (bs[++off] & 0xff) << 8; in bigEndianToInt() 10 n |= (bs[++off] & 0xff); in bigEndianToInt() 14 public static void bigEndianToInt(byte[] bs, int off, int[] ns) in bigEndianToInt() argument 18 ns[i] = bigEndianToInt(bs, off); in bigEndianToInt() 19 off += 4; in bigEndianToInt() 30 public static void intToBigEndian(int n, byte[] bs, int off) in intToBigEndian() argument 32 bs[ off] = (byte)(n >>> 24); in intToBigEndian() [all …]
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/util/ |
D | Pack.java | 8 public static int bigEndianToInt(byte[] bs, int off) in bigEndianToInt() argument 10 int n = bs[ off] << 24; in bigEndianToInt() 11 n |= (bs[++off] & 0xff) << 16; in bigEndianToInt() 12 n |= (bs[++off] & 0xff) << 8; in bigEndianToInt() 13 n |= (bs[++off] & 0xff); in bigEndianToInt() 17 public static void bigEndianToInt(byte[] bs, int off, int[] ns) in bigEndianToInt() argument 21 ns[i] = bigEndianToInt(bs, off); in bigEndianToInt() 22 off += 4; in bigEndianToInt() 33 public static void intToBigEndian(int n, byte[] bs, int off) in intToBigEndian() argument 35 bs[ off] = (byte)(n >>> 24); in intToBigEndian() [all …]
|
/external/dexmaker/src/dx/java/com/android/dx/util/ |
D | ByteArray.java | 125 public int getByte(int off) { in getByte() argument 126 checkOffsets(off, off + 1); in getByte() 127 return getByte0(off); in getByte() 136 public int getShort(int off) { in getShort() argument 137 checkOffsets(off, off + 2); in getShort() 138 return (getByte0(off) << 8) | getUnsignedByte0(off + 1); in getShort() 147 public int getInt(int off) { in getInt() argument 148 checkOffsets(off, off + 4); in getInt() 149 return (getByte0(off) << 24) | in getInt() 150 (getUnsignedByte0(off + 1) << 16) | in getInt() [all …]
|
/external/compiler-rt/test/tsan/ |
D | unaligned_race.cc | 48 template<int off, int off2> 50 p += off; in access3() 64 template<int off> 68 access3<off, 0>(main, sz1, rw, obj); in access2() 70 access3<off, 1>(main, sz1, rw, obj); in access2() 72 access3<off, 2>(main, sz1, rw, obj); in access2() 74 access3<off, 3>(main, sz1, rw, obj); in access2() 76 access3<off, 4>(main, sz1, rw, obj); in access2() 78 access3<off, 5>(main, sz1, rw, obj); in access2() 80 access3<off, 6>(main, sz1, rw, obj); in access2() [all …]
|
/external/libunwind/src/x86/ |
D | Gos-linux.c | 143 unw_word_t addr = c->sigcontext_addr, fpstate_addr, off; in x86_get_scratch_loc() local 164 case UNW_X86_GS: off = LINUX_SC_GS_OFF; break; in x86_get_scratch_loc() 165 case UNW_X86_FS: off = LINUX_SC_FS_OFF; break; in x86_get_scratch_loc() 166 case UNW_X86_ES: off = LINUX_SC_ES_OFF; break; in x86_get_scratch_loc() 167 case UNW_X86_DS: off = LINUX_SC_DS_OFF; break; in x86_get_scratch_loc() 168 case UNW_X86_EDI: off = LINUX_SC_EDI_OFF; break; in x86_get_scratch_loc() 169 case UNW_X86_ESI: off = LINUX_SC_ESI_OFF; break; in x86_get_scratch_loc() 170 case UNW_X86_EBP: off = LINUX_SC_EBP_OFF; break; in x86_get_scratch_loc() 171 case UNW_X86_ESP: off = LINUX_SC_ESP_OFF; break; in x86_get_scratch_loc() 172 case UNW_X86_EBX: off = LINUX_SC_EBX_OFF; break; in x86_get_scratch_loc() [all …]
|
D | Gos-freebsd.c | 144 unw_word_t addr = c->sigcontext_addr, off, xmm_off; in x86_get_scratch_loc() local 177 off = 0; /* shut gcc warning */ in x86_get_scratch_loc() 180 case UNW_X86_GS: off = FREEBSD_UC_MCONTEXT_GS_OFF; break; in x86_get_scratch_loc() 181 case UNW_X86_FS: off = FREEBSD_UC_MCONTEXT_FS_OFF; break; in x86_get_scratch_loc() 182 case UNW_X86_ES: off = FREEBSD_UC_MCONTEXT_ES_OFF; break; in x86_get_scratch_loc() 183 case UNW_X86_DS: off = FREEBSD_UC_MCONTEXT_SS_OFF; break; in x86_get_scratch_loc() 184 case UNW_X86_EDI: off = FREEBSD_UC_MCONTEXT_EDI_OFF; break; in x86_get_scratch_loc() 185 case UNW_X86_ESI: off = FREEBSD_UC_MCONTEXT_ESI_OFF; break; in x86_get_scratch_loc() 186 case UNW_X86_EBP: off = FREEBSD_UC_MCONTEXT_EBP_OFF; break; in x86_get_scratch_loc() 187 case UNW_X86_ESP: off = FREEBSD_UC_MCONTEXT_ESP_OFF; break; in x86_get_scratch_loc() [all …]
|
/external/apache-http/src/org/apache/http/util/ |
D | ByteArrayBuffer.java | 67 public void append(final byte[] b, int off, int len) { in append() argument 71 if ((off < 0) || (off > b.length) || (len < 0) || in append() 72 ((off + len) < 0) || ((off + len) > b.length)) { in append() 82 System.arraycopy(b, off, this.buffer, this.len, len); in append() 95 public void append(final char[] b, int off, int len) { in append() argument 99 if ((off < 0) || (off > b.length) || (len < 0) || in append() 100 ((off + len) < 0) || ((off + len) > b.length)) { in append() 111 for (int i1 = off, i2 = oldlen; i2 < newlen; i1++, i2++) { in append() 117 public void append(final CharArrayBuffer b, int off, int len) { in append() argument 121 append(b.buffer(), off, len); in append() local
|
D | CharArrayBuffer.java | 69 public void append(final char[] b, int off, int len) { in append() argument 73 if ((off < 0) || (off > b.length) || (len < 0) || in append() 74 ((off + len) < 0) || ((off + len) > b.length)) { in append() 84 System.arraycopy(b, off, this.buffer, this.len, len); in append() 101 public void append(final CharArrayBuffer b, int off, int len) { in append() argument 105 append(b.buffer, off, len); in append() 124 public void append(final byte[] b, int off, int len) { in append() argument 128 if ((off < 0) || (off > b.length) || (len < 0) || in append() 129 ((off + len) < 0) || ((off + len) > b.length)) { in append() 140 for (int i1 = off, i2 = oldlen; i2 < newlen; i1++, i2++) { in append() [all …]
|
/external/boringssl/src/tool/ |
D | pkcs12.cc | 83 size_t off = 0; in DoPKCS12() local 85 n = read(fd, &contents[off], size - off); in DoPKCS12() 87 off += static_cast<size_t>(n); in DoPKCS12() 89 } while ((n > 0 && off < size) || (n == -1 && errno == EINTR)); in DoPKCS12() 91 if (off != size) { in DoPKCS12() 103 off = 0; in DoPKCS12() 105 n = read(0, &password[off], sizeof(password) - 1 - off); in DoPKCS12() 107 off += static_cast<size_t>(n); in DoPKCS12() 109 } while ((n > 0 && memchr(password, '\n', off) == NULL && in DoPKCS12() 110 off < sizeof(password) - 1) || in DoPKCS12() [all …]
|
/external/mockito/cglib-and-asm/src/org/mockito/asm/ |
D | Type.java | 163 private final int off; field in Type 192 private Type(final int sort, final char[] buf, final int off, final int len) in Type() argument 196 this.off = off; in Type() 263 int off = 1; in getArgumentTypes() local 266 char car = buf[off++]; in getArgumentTypes() 270 while (buf[off++] != ';') { in getArgumentTypes() 278 off = 1; in getArgumentTypes() 280 while (buf[off] != ')') { in getArgumentTypes() 281 args[size] = getType(buf, off); in getArgumentTypes() 282 off += args[size].len + (args[size].sort == OBJECT ? 2 : 0); in getArgumentTypes() [all …]
|
/external/iproute2/tc/ |
D | p_ip.c | 38 tkey->off = 12; in parse_ip() 44 tkey->off = 16; in parse_ip() 54 tkey->off = 1; in parse_ip() 60 tkey->off = 0; in parse_ip() 66 tkey->off = 9; in parse_ip() 73 tkey->off = 1; in parse_ip() 80 tkey->off = 6; in parse_ip() 87 tkey->off = 6; in parse_ip() 93 tkey->off = 6; in parse_ip() 99 tkey->off = 6; in parse_ip() [all …]
|
D | f_u32.c | 118 int off, int offmask) in pack_key() argument 126 if (sel->keys[i].off == off && sel->keys[i].offmask == offmask) { in pack_key() 139 if (off % 4) in pack_key() 143 sel->keys[hwm].off = off; in pack_key() 150 int off, int offmask) in pack_key32() argument 154 return pack_key(sel, key, mask, off, offmask); in pack_key32() 158 int off, int offmask) in pack_key16() argument 163 if ((off & 3) == 0) { in pack_key16() 167 off &= ~3; in pack_key16() 171 return pack_key(sel, key, mask, off, offmask); in pack_key16() [all …]
|
D | m_pedit.c | 129 if (tkey->off % 4) { in pack_key() 136 sel->keys[hwm].off = tkey->off; in pack_key() 148 if (tkey->off > (tkey->off & ~3)) { in pack_key32() 157 tkey->off &= ~3; in pack_key32() 167 if (0 > tkey->off) { in pack_key16() 168 ind = tkey->off + 1; in pack_key16() 172 ind = tkey->off; in pack_key16() 180 ind = tkey->off & 3; in pack_key16() 196 tkey->off &= ~3; in pack_key16() 210 if (0 > tkey->off) { in pack_key8() [all …]
|
/external/apache-harmony/jdwp/src/test/java/org/apache/harmony/jpda/tests/framework/jdwp/ |
D | SocketTransportWrapper.java | 225 int off = 0; in readPacket() local 227 while (off < Packet.HEADER_SIZE) { in readPacket() 229 int bytesRead = input.read(header, off, Packet.HEADER_SIZE - off); in readPacket() 233 off += bytesRead; in readPacket() 240 if (off == 0) { in readPacket() 243 if (off < Packet.HEADER_SIZE) { in readPacket() 258 while (off < len) { in readPacket() 259 int bytesRead = input.read(bytes, off, len - off); in readPacket() 263 off += bytesRead; in readPacket() 265 if (off < len) { in readPacket() [all …]
|
/external/elfutils/src/libdw/ |
D | dwarf_nextcu.c | 39 dwarf_next_unit (dwarf, off, next_off, header_sizep, versionp, abbrev_offsetp, in dwarf_next_unit() argument 42 Dwarf_Off off; 60 if (off == (Dwarf_Off) -1l 65 || unlikely (off + 4 >= dwarf->sectiondata[sec_idx]->d_size)) 74 const unsigned char *bytes = data + off; 117 if (unlikely (DIE_OFFSET_FROM_CU_OFFSET (off, offset_size, debug_types) 151 if (unlikely (type_offset < (size_t) (bytes - (data + off)))) 161 *header_sizep = bytes - (data + off); 178 *next_off = off + 2 * offset_size - 4 + length; 185 dwarf_nextcu (dwarf, off, next_off, header_sizep, abbrev_offsetp, [all …]
|
/external/libunwind/include/ |
D | remote.h | 54 unw_word_t val, aligned_addr = *addr & -WSIZE, off = *addr - aligned_addr; in fetch8() local 62 val >>= 8*off; in fetch8() 64 val >>= 8*(WSIZE - 1 - off); in fetch8() 74 unw_word_t val, aligned_addr = *addr & -WSIZE, off = *addr - aligned_addr; in fetch16() local 77 assert ((off & 0x1) == 0); in fetch16() 84 val >>= 8*off; in fetch16() 86 val >>= 8*(WSIZE - 2 - off); in fetch16() 96 unw_word_t val, aligned_addr = *addr & -WSIZE, off = *addr - aligned_addr; in fetch32() local 99 assert ((off & 0x3) == 0); in fetch32() 106 val >>= 8*off; in fetch32() [all …]
|
/external/boringssl/src/crypto/asn1/ |
D | a_d2i_fp.c | 151 size_t off=0; in asn1_d2i_read_bio() local 164 if (want >= (len-off)) in asn1_d2i_read_bio() 166 want-=(len-off); in asn1_d2i_read_bio() 174 if ((i < 0) && ((len-off) == 0)) in asn1_d2i_read_bio() 191 p=(unsigned char *)&(b->data[off]); in asn1_d2i_read_bio() 194 len-off); in asn1_d2i_read_bio() 206 off+=i; /* end of data */ in asn1_d2i_read_bio() 232 if (want > (len-off)) in asn1_d2i_read_bio() 234 want-=(len-off); in asn1_d2i_read_bio() 260 if (off + c.slen < off) in asn1_d2i_read_bio() [all …]
|
/external/elfutils/src/tests/ |
D | typeiter.c | 37 Dwarf_Off off = 0; in main() local 41 while (dwarf_nextcu (dbg, off, &noff, &cuhl, NULL, NULL, NULL) == 0) in main() 44 Dwarf_Die *die = dwarf_offdie (dbg, off + cuhl, &die_mem); in main() 65 off = noff; in main() 68 off = 0; in main() 71 while (dwarf_next_unit (dbg, off, &noff, &cuhl, NULL, NULL, NULL, in main() 75 Dwarf_Die *die = dwarf_offdie_types (dbg, off + cuhl, &die_mem); in main() 82 off = noff; in main()
|
D | typeiter2.c | 37 Dwarf_Off off = 0; in main() local 42 while (dwarf_next_unit (dbg, off, &noff, &cuhl, NULL, NULL, NULL, in main() 46 dwarf_offdie_types (dbg, off + cuhl, &die_mem); in main() 47 off = noff; in main() 50 off = 0; in main() 52 while (dwarf_nextcu (dbg, off, &noff, &cuhl, NULL, NULL, NULL) == 0) in main() 55 Dwarf_Die *die = dwarf_offdie (dbg, off + cuhl, &die_mem); in main() 81 off = noff; in main()
|
/external/jmdns/src/javax/jmdns/impl/ |
D | DNSMessage.java | 258 for (int off = 0, len = data.length; off < len; off += 32) { in print() 259 int n = Math.min(32, len - off); in print() 260 if (off < 0x10) { in print() 263 if (off < 0x100) { in print() 266 if (off < 0x1000) { in print() 269 buf.append(Integer.toHexString(off)); in print() 276 buf.append(Integer.toHexString((data[off + index] & 0xF0) >> 4)); in print() 277 buf.append(Integer.toHexString((data[off + index] & 0x0F) >> 0)); in print() 293 int ch = data[off + index] & 0xFF; in print() 299 if (off + 32 >= 2048) { in print()
|
/external/javasqlite/src/main/java/SQLite/ |
D | Blob.java | 132 public int read(byte b[], int off, int len) throws IOException { in read() argument 133 if (off + len > b.length) { in read() 134 len = b.length - off; in read() 142 int n = blob.read(b, off, pos, len); in read() 225 public void write(byte[] b, int off, int len) throws IOException { in write() argument 227 if (off + len > b.length) { in write() 228 len = b.length - off; in write() 233 pos += blob.write(b, off, pos, len); in write() 295 native int write(byte[] b, int off, int pos, int len) throws IOException; in write() argument 306 native int read(byte[] b, int off, int pos, int len) throws IOException; in read() argument
|
/external/llvm/test/Transforms/InstCombine/ |
D | 2008-01-29-AddICmp.ll | 1 ; RUN: opt < %s -instcombine -S | not grep "a.off" 5 %a.off = add i32 %a, 4 ; <i32> [#uses=1] 6 %C = icmp ult i32 %a.off, 4 ; <i1> [#uses=1] 11 %a.off = sub i32 %a, 4 ; <i32> [#uses=1] 12 %C = icmp ugt i32 %a.off, -5 ; <i1> [#uses=1] 17 %a.off = add i32 %a, 4 ; <i32> [#uses=1] 18 %C = icmp slt i32 %a.off, 2147483652 ; <i1> [#uses=1]
|
/external/sfntly/cpp/src/sfntly/data/ |
D | font_output_stream.cc | 46 void FontOutputStream::Write(ByteVector* b, int32_t off, int32_t len) { in Write() argument 49 if (off < 0 || len < 0 || off + len < 0 || in Write() 50 static_cast<size_t>(off + len) > b->size()) { in Write() 58 stream_->Write(b, off, len); in Write() 62 void FontOutputStream::Write(byte_t* b, int32_t off, int32_t len) { in Write() argument 65 if (off < 0 || len < 0 || off + len < 0) { in Write() 73 stream_->Write(b, off, len); in Write()
|
/external/toybox/toys/other/ |
D | blkid.c | 62 int off, i, j; in do_blkid() local 65 off = i = 0; in do_blkid() 79 if (fstypes[i].magic_offset > off+sizeof(toybuf)) { in do_blkid() 83 if (fstypes[i].magic_offset < off) continue; in do_blkid() 88 test += ((uint64_t)toybuf[j+fstypes[i].magic_offset-off])<<(8*j); in do_blkid() 93 off += len; in do_blkid() 120 toybuf+fstypes[i].label_off-off); in do_blkid() 124 uoff = (fstypes[i].uuid_off & ((1<<24)-1))-off; in do_blkid()
|
/external/llvm/test/CodeGen/PowerPC/ |
D | bswap-load-store.ll | 7 define void @STWBRX(i32 %i, i8* %ptr, i32 %off) { 8 %tmp1 = getelementptr i8, i8* %ptr, i32 %off ; <i8*> [#uses=1] 15 define i32 @LWBRX(i8* %ptr, i32 %off) { 16 %tmp1 = getelementptr i8, i8* %ptr, i32 %off ; <i8*> [#uses=1] 23 define void @STHBRX(i16 %s, i8* %ptr, i32 %off) { 24 %tmp1 = getelementptr i8, i8* %ptr, i32 %off ; <i8*> [#uses=1] 31 define i16 @LHBRX(i8* %ptr, i32 %off) { 32 %tmp1 = getelementptr i8, i8* %ptr, i32 %off ; <i8*> [#uses=1] 39 define void @STDBRX(i64 %i, i8* %ptr, i64 %off) { 40 %tmp1 = getelementptr i8, i8* %ptr, i64 %off ; <i8*> [#uses=1] [all …]
|