Home
last modified time | relevance | path

Searched refs:cp (Results 1 – 25 of 2735) sorted by relevance

12345678910>>...110

/external/pdfium/third_party/libtiff/
Dtif_swab.c38 register unsigned char* cp = (unsigned char*) wp; in TIFFSwabShort() local
41 t = cp[1]; cp[1] = cp[0]; cp[0] = t; in TIFFSwabShort()
49 register unsigned char* cp = (unsigned char*) lp; in TIFFSwabLong() local
52 t = cp[3]; cp[3] = cp[0]; cp[0] = t; in TIFFSwabLong()
53 t = cp[2]; cp[2] = cp[1]; cp[1] = t; in TIFFSwabLong()
61 register unsigned char* cp = (unsigned char*) lp; in TIFFSwabLong8() local
64 t = cp[7]; cp[7] = cp[0]; cp[0] = t; in TIFFSwabLong8()
65 t = cp[6]; cp[6] = cp[1]; cp[1] = t; in TIFFSwabLong8()
66 t = cp[5]; cp[5] = cp[2]; cp[2] = t; in TIFFSwabLong8()
67 t = cp[4]; cp[4] = cp[3]; cp[3] = t; in TIFFSwabLong8()
[all …]
/external/tcpdump/
Dprint-openflow-1.0.c739 const u_char *cp, const u_char *ep, const u_int len) in of10_data_print() argument
742 return cp; in of10_data_print()
745 ND_TCHECK2(*cp, len); in of10_data_print()
747 hex_and_ascii_print(ndo, "\n\t ", cp, len); in of10_data_print()
748 return cp + len; in of10_data_print()
757 const u_char *cp, const u_char *ep, const u_int len) in of10_bsn_message_print() argument
759 const u_char *cp0 = cp; in of10_bsn_message_print()
765 ND_TCHECK2(*cp, 4); in of10_bsn_message_print()
766 subtype = EXTRACT_32BITS(cp); in of10_bsn_message_print()
767 cp += 4; in of10_bsn_message_print()
[all …]
Dprint-aoe.c144 const u_char *cp, const u_int len) in aoev1_issue_print() argument
146 const u_char *ep = cp + len; in aoev1_issue_print()
151 ND_TCHECK2(*cp, 1); in aoev1_issue_print()
152 ND_PRINT((ndo, "\n\tAFlags: [%s]", bittok2str(aoev1_aflag_str, "none", *cp))); in aoev1_issue_print()
153 cp += 1; in aoev1_issue_print()
155 ND_TCHECK2(*cp, 1); in aoev1_issue_print()
156 ND_PRINT((ndo, ", Err/Feature: %u", *cp)); in aoev1_issue_print()
157 cp += 1; in aoev1_issue_print()
159 ND_TCHECK2(*cp, 1); in aoev1_issue_print()
160 ND_PRINT((ndo, ", Sector Count: %u", *cp)); in aoev1_issue_print()
[all …]
Dprint-domain.c55 register const u_char *cp) in ns_nskip() argument
59 if (!ND_TTEST2(*cp, 1)) in ns_nskip()
61 i = *cp++; in ns_nskip()
64 return (cp + 1); in ns_nskip()
70 if (!ND_TTEST2(*cp, 1)) in ns_nskip()
72 if ((bitlen = *cp++) == 0) in ns_nskip()
75 cp += bytelen; in ns_nskip()
77 cp += i; in ns_nskip()
78 if (!ND_TTEST2(*cp, 1)) in ns_nskip()
80 i = *cp++; in ns_nskip()
[all …]
Dprint-ahcp.c101 ahcp_time_print(netdissect_options *ndo, const u_char *cp, const u_char *ep) in ahcp_time_print() argument
107 if (cp + 4 != ep) in ahcp_time_print()
109 ND_TCHECK2(*cp, 4); in ahcp_time_print()
110 t = EXTRACT_32BITS(cp); in ahcp_time_print()
121 ND_TCHECK2(*cp, ep - cp); in ahcp_time_print()
129 ahcp_seconds_print(netdissect_options *ndo, const u_char *cp, const u_char *ep) in ahcp_seconds_print() argument
131 if (cp + 4 != ep) in ahcp_seconds_print()
133 ND_TCHECK2(*cp, 4); in ahcp_seconds_print()
134 ND_PRINT((ndo, ": %us", EXTRACT_32BITS(cp))); in ahcp_seconds_print()
139 ND_TCHECK2(*cp, ep - cp); in ahcp_seconds_print()
[all …]
Dprint-zeromq.c77 zmtp1_print_frame(netdissect_options *ndo, const u_char *cp, const u_char *ep) in zmtp1_print_frame() argument
83 ND_TCHECK2(*cp, 1); /* length/0xFF */ in zmtp1_print_frame()
85 if (cp[0] != 0xFF) { in zmtp1_print_frame()
87 body_len_declared = cp[0]; in zmtp1_print_frame()
92 ND_TCHECK2(*cp, header_len); /* 0xFF, length */ in zmtp1_print_frame()
93 body_len_declared = EXTRACT_64BITS(cp + 1); in zmtp1_print_frame()
97 return cp + header_len; /* skip to the next frame */ in zmtp1_print_frame()
98 ND_TCHECK2(*cp, header_len + 1); /* ..., flags */ in zmtp1_print_frame()
99 flags = cp[header_len]; in zmtp1_print_frame()
101 body_len_captured = ep - cp - header_len; in zmtp1_print_frame()
[all …]
Dprint-krb.c127 const u_char *cp) in krb4_print_hdr() argument
129 cp += 2; in krb4_print_hdr()
131 #define PRINT if ((cp = c_print(ndo, cp, ndo->ndo_snapend)) == NULL) goto trunc in krb4_print_hdr()
138 return (cp); in krb4_print_hdr()
149 const u_char *cp) in krb4_print() argument
155 #define PRINT if ((cp = c_print(ndo, cp, ndo->ndo_snapend)) == NULL) goto trunc in krb4_print()
158 #define KTOHSP(kp, cp) (IS_LENDIAN(kp) ? EXTRACT_LE_16BITS(cp) : EXTRACT_16BITS(cp)) in krb4_print() argument
160 kp = (const struct krb *)cp; in krb4_print()
175 if ((cp = krb4_print_hdr(ndo, cp)) == NULL) in krb4_print()
177 cp += 4; /* ctime */ in krb4_print()
[all …]
/external/e2fsprogs/misc/
Dbase_device.c44 char *str, *cp; in base_device() local
52 cp = str; in base_device()
55 if (strncmp(cp, "/dev/", 5) != 0) in base_device()
57 cp += 5; in base_device()
60 if (strncmp(cp, "dsk/", 4) == 0) in base_device()
61 cp += 4; in base_device()
67 if (cp[0] == 'm' && cp[1] == 'd') { in base_device()
68 *(cp+2) = 0; in base_device()
73 if (strncmp(cp, "rd/", 3) == 0) { in base_device()
74 cp += 3; in base_device()
[all …]
/external/protobuf/src/google/protobuf/util/internal/
Djson_escaping.cc122 inline bool IsSupplementalCodePoint(uint32 cp) { in IsSupplementalCodePoint() argument
126 return (cp & ~(JsonEscaping::kMinSupplementaryCodePoint - 1)) in IsSupplementalCodePoint()
132 inline bool IsValidCodePoint(uint32 cp) { in IsValidCodePoint() argument
133 return cp <= JsonEscaping::kMaxCodePoint; in IsValidCodePoint()
152 inline uint16 ToLowSurrogate(uint32 cp) { in ToLowSurrogate() argument
153 return (cp & (JsonEscaping::kMaxLowSurrogate in ToLowSurrogate()
160 inline uint16 ToHighSurrogate(uint32 cp) { in ToHighSurrogate() argument
161 return (cp >> 10) + (JsonEscaping::kMinHighSurrogate - in ToHighSurrogate()
186 uint32 *cp, int* num_left, int *num_read) { in ReadCodePoint() argument
189 *cp = static_cast<uint8>(str[index++]); in ReadCodePoint()
[all …]
/external/e2fsprogs/intl/
Dexplodename.c59 char *cp; in _nl_explode_name() local
75 *language = cp = name; in _nl_explode_name()
76 cp = _nl_find_language (*language); in _nl_explode_name()
78 if (*language == cp) in _nl_explode_name()
81 cp = strchr (*language, '\0'); in _nl_explode_name()
82 else if (cp[0] == '_') in _nl_explode_name()
85 cp[0] = '\0'; in _nl_explode_name()
86 *territory = ++cp; in _nl_explode_name()
88 while (cp[0] != '\0' && cp[0] != '.' && cp[0] != '@' in _nl_explode_name()
89 && cp[0] != '+' && cp[0] != ',' && cp[0] != '_') in _nl_explode_name()
[all …]
Dprintf-parse.c65 const CHAR_T *cp = format; /* pointer into format */ in PRINTF_PARSE() local
115 while (*cp != '\0') in PRINTF_PARSE()
117 CHAR_T c = *cp++; in PRINTF_PARSE()
124 dp->dir_start = cp - 1; in PRINTF_PARSE()
135 if (*cp >= '0' && *cp <= '9') in PRINTF_PARSE()
139 for (np = cp; *np >= '0' && *np <= '9'; np++) in PRINTF_PARSE()
145 for (np = cp; *np >= '0' && *np <= '9'; np++) in PRINTF_PARSE()
154 cp = np + 1; in PRINTF_PARSE()
161 if (*cp == '\'') in PRINTF_PARSE()
164 cp++; in PRINTF_PARSE()
[all …]
/external/libunwind/src/
Dos-linux.h45 char *cp = buf, tmp; in ltoa() local
50 *cp++ = '0' + (val % 10); in ltoa()
56 len = cp - buf; in ltoa()
57 --cp; in ltoa()
61 buf[i] = cp[-i]; in ltoa()
62 cp[-i] = tmp; in ltoa()
70 char path[sizeof ("/proc/0123456789/maps")], *cp; in maps_init() local
73 cp = ltoa (path + 6, pid); in maps_init()
74 assert (cp + 6 < path + sizeof (path)); in maps_init()
75 memcpy (cp, "/maps", 6); in maps_init()
[all …]
/external/pdfium/third_party/agg23/
Dagg_curves.h23 float cp[8]; member
30 cp[0] = x1; in curve4_points()
31 cp[1] = y1; in curve4_points()
32 cp[2] = x2; in curve4_points()
33 cp[3] = y2; in curve4_points()
34 cp[4] = x3; in curve4_points()
35 cp[5] = y3; in curve4_points()
36 cp[6] = x4; in curve4_points()
37 cp[7] = y4; in curve4_points()
44 cp[0] = x1; in init()
[all …]
/external/icu/icu4c/source/data/unidata/
Dppucd.txt1206 cp;0000;bc=BN;ea=N;GCB=CN;-Gr_Base;lb=CM;Name_Alias=control=NULL,abbreviation=NUL
1207 cp;0001;bc=BN;ea=N;GCB=CN;-Gr_Base;lb=CM;Name_Alias=control=START OF HEADING,abbreviation=SOH
1208 cp;0002;bc=BN;ea=N;GCB=CN;-Gr_Base;lb=CM;Name_Alias=control=START OF TEXT,abbreviation=STX
1209 cp;0003;bc=BN;ea=N;GCB=CN;-Gr_Base;lb=CM;Name_Alias=control=END OF TEXT,abbreviation=ETX
1210 cp;0004;bc=BN;ea=N;GCB=CN;-Gr_Base;lb=CM;Name_Alias=control=END OF TRANSMISSION,abbreviation=EOT
1211 cp;0005;bc=BN;ea=N;GCB=CN;-Gr_Base;lb=CM;Name_Alias=control=ENQUIRY,abbreviation=ENQ
1212 cp;0006;bc=BN;ea=N;GCB=CN;-Gr_Base;lb=CM;Name_Alias=control=ACKNOWLEDGE,abbreviation=ACK
1213 cp;0007;bc=BN;ea=N;GCB=CN;-Gr_Base;lb=CM;Name_Alias=control=ALERT,abbreviation=BEL
1214 cp;0008;bc=BN;ea=N;GCB=CN;-Gr_Base;lb=CM;Name_Alias=control=BACKSPACE,abbreviation=BS
1215 cp;0009;bc=S;ea=N;GCB=CN;-Gr_Base;lb=BA;Name_Alias=control=CHARACTER TABULATION,control=HORIZONTAL …
[all …]
/external/snakeyaml/src/main/java/org/yaml/snakeyaml/external/com/google/gdata/util/common/base/
DPercentEscaper.java204 protected char[] escape(int cp) { in escape() argument
208 if (cp < safeOctets.length && safeOctets[cp]) { in escape()
210 } else if (cp == ' ' && plusForSpace) { in escape()
212 } else if (cp <= 0x7F) { in escape()
217 dest[2] = UPPER_HEX_DIGITS[cp & 0xF]; in escape()
218 dest[1] = UPPER_HEX_DIGITS[cp >>> 4]; in escape()
220 } else if (cp <= 0x7ff) { in escape()
226 dest[5] = UPPER_HEX_DIGITS[cp & 0xF]; in escape()
227 cp >>>= 4; in escape()
228 dest[4] = UPPER_HEX_DIGITS[0x8 | (cp & 0x3)]; in escape()
[all …]
/external/guava/guava/src/com/google/common/net/
DPercentEscaper.java175 protected char[] escape(int cp) { in escape() argument
178 if (cp < safeOctets.length && safeOctets[cp]) { in escape()
180 } else if (cp == ' ' && plusForSpace) { in escape()
182 } else if (cp <= 0x7F) { in escape()
187 dest[2] = UPPER_HEX_DIGITS[cp & 0xF]; in escape()
188 dest[1] = UPPER_HEX_DIGITS[cp >>> 4]; in escape()
190 } else if (cp <= 0x7ff) { in escape()
196 dest[5] = UPPER_HEX_DIGITS[cp & 0xF]; in escape()
197 cp >>>= 4; in escape()
198 dest[4] = UPPER_HEX_DIGITS[0x8 | (cp & 0x3)]; in escape()
[all …]
/external/u-boot/lib/
Dstrto.c33 unsigned long simple_strtoul(const char *cp, char **endp, in simple_strtoul() argument
39 cp = _parse_integer_fixup_radix(cp, &base); in simple_strtoul()
41 while (isxdigit(*cp) && (value = isdigit(*cp) ? *cp-'0' : (islower(*cp) in simple_strtoul()
42 ? toupper(*cp) : *cp)-'A'+10) < base) { in simple_strtoul()
44 cp++; in simple_strtoul()
48 *endp = (char *)cp; in simple_strtoul()
53 int strict_strtoul(const char *cp, unsigned int base, unsigned long *res) in strict_strtoul() argument
60 len = strlen(cp); in strict_strtoul()
64 val = simple_strtoul(cp, &tail, base); in strict_strtoul()
65 if (tail == cp) in strict_strtoul()
[all …]
/external/tensorflow/tensorflow/core/common_runtime/
Dcollective_param_resolver_local.cc58 const string& device, CollectiveParams* cp, const GroupRecCallback& done) { in CompleteGroupLocal() argument
59 VLOG(1) << "CompleteGroupLocal device=" << device << " cp: " << cp << ": " in CompleteGroupLocal()
60 << cp->ToString(); in CompleteGroupLocal()
65 auto it = group_table_.find(cp->group.group_key); in CompleteGroupLocal()
68 gr->group.group_key = cp->group.group_key; in CompleteGroupLocal()
69 gr->group.group_size = cp->group.group_size; in CompleteGroupLocal()
70 gr->group.device_type = cp->group.device_type; in CompleteGroupLocal()
83 if (cp->group.device_type != gr->group.device_type) { in CompleteGroupLocal()
85 "Collective Op ", cp->name, " is assigned to device ", device, in CompleteGroupLocal()
86 " with type ", cp->group.device_type.type_string(), in CompleteGroupLocal()
[all …]
Dcollective_param_resolver_local_test.cc35 ConfigProto cp; in CollectiveParamResolverLocalTest() local
44 prl_.reset(new CollectiveParamResolverLocal(cp, device_mgr_.get(), in CollectiveParamResolverLocalTest()
53 CollectiveParams cp; in RunCompleteDefaultRanking() local
54 cp.instance.device_names = shared_cp.instance.device_names; in RunCompleteDefaultRanking()
72 prl_->CompleteDefaultRanking(nullptr, &cp, &ir, localities); in RunCompleteDefaultRanking()
84 CollectiveParams cp; in TEST_F() local
86 cp.name = "PRLTest"; in TEST_F()
87 cp.group.device_type = DeviceType("GPU"); in TEST_F()
88 cp.group.num_tasks = 1; in TEST_F()
89 cp.group.group_size = kNumGpus; in TEST_F()
[all …]
/external/cn-cbor/src/
Dcn-get.c8 cn_cbor* cp; in cn_cbor_mapget_int() local
10 for (cp = cb->first_child; cp && cp->next; cp = cp->next->next) { in cn_cbor_mapget_int()
11 switch(cp->type) { in cn_cbor_mapget_int()
13 if (cp->v.uint == (unsigned long)key) { in cn_cbor_mapget_int()
14 return cp->next; in cn_cbor_mapget_int()
18 if (cp->v.sint == (long)key) { in cn_cbor_mapget_int()
19 return cp->next; in cn_cbor_mapget_int()
30 cn_cbor *cp; in cn_cbor_mapget_string() local
35 for (cp = cb->first_child; cp && cp->next; cp = cp->next->next) { in cn_cbor_mapget_string()
36 switch(cp->type) { in cn_cbor_mapget_string()
[all …]
/external/apache-commons-bcel/src/test/java/org/apache/bcel/
DElementValueGenTestCase.java49 final ConstantPoolGen cp = cg.getConstantPool(); in testCreateIntegerElementValue() local
51 ElementValueGen.PRIMITIVE_INT, cp, 555); in testCreateIntegerElementValue()
55 + evg.getIndex() + "!=" + cp.lookupInteger(555), in testCreateIntegerElementValue()
56 evg.getIndex() == cp.lookupInteger(555)); in testCreateIntegerElementValue()
57 checkSerialize(evg, cp); in testCreateIntegerElementValue()
63 final ConstantPoolGen cp = cg.getConstantPool(); in testCreateFloatElementValue() local
65 ElementValueGen.PRIMITIVE_FLOAT, cp, 111.222f); in testCreateFloatElementValue()
69 + evg.getIndex() + "!=" + cp.lookupFloat(111.222f), evg in testCreateFloatElementValue()
70 .getIndex() == cp.lookupFloat(111.222f)); in testCreateFloatElementValue()
71 checkSerialize(evg, cp); in testCreateFloatElementValue()
[all …]
/external/harfbuzz_ng/test/api/
Dtest-collect-unicodes.c35 hb_codepoint_t cp; in test_collect_unicodes_format4() local
39 cp = HB_SET_VALUE_INVALID; in test_collect_unicodes_format4()
40 g_assert (hb_set_next (codepoints, &cp)); in test_collect_unicodes_format4()
41 g_assert_cmpuint (0x61, ==, cp); in test_collect_unicodes_format4()
42 g_assert (hb_set_next (codepoints, &cp)); in test_collect_unicodes_format4()
43 g_assert_cmpuint (0x62, ==, cp); in test_collect_unicodes_format4()
44 g_assert (hb_set_next (codepoints, &cp)); in test_collect_unicodes_format4()
45 g_assert_cmpuint (0x63, ==, cp); in test_collect_unicodes_format4()
46 g_assert (!hb_set_next (codepoints, &cp)); in test_collect_unicodes_format4()
57 hb_codepoint_t cp; in test_collect_unicodes_format12() local
[all …]
/external/iptables/iptables/
Dgetethertype.c78 register char *cp, **q; in getethertypeent() local
91 cp = strpbrk(e, "#\n"); in getethertypeent()
92 if (cp == NULL) in getethertypeent()
94 *cp = '\0'; in getethertypeent()
96 cp = strpbrk(e, " \t"); in getethertypeent()
97 if (cp == NULL) in getethertypeent()
99 *cp++ = '\0'; in getethertypeent()
100 while (*cp == ' ' || *cp == '\t') in getethertypeent()
101 cp++; in getethertypeent()
102 e = strpbrk(cp, " \t"); in getethertypeent()
[all …]
/external/python/cpython3/Modules/_decimal/libmpdec/
Dio.c448 char *decstring = NULL, *cp = NULL; in _mpd_to_string() local
459 cp = decstring = mpd_alloc(mem, sizeof *decstring); in _mpd_to_string()
460 if (cp == NULL) { in _mpd_to_string()
466 *cp++ = '-'; in _mpd_to_string()
469 *cp++ = ' '; in _mpd_to_string()
472 *cp++ = '+'; in _mpd_to_string()
477 strcpy(cp, "NaN"); in _mpd_to_string()
478 cp += 3; in _mpd_to_string()
481 strcpy(cp, "sNaN"); in _mpd_to_string()
482 cp += 4; in _mpd_to_string()
[all …]
/external/tensorflow/tensorflow/core/distributed_runtime/
Dcollective_param_resolver_distributed.cc96 const string& device, CollectiveParams* cp, CancellationManager* cancel_mgr, in CompleteParamsAsync() argument
98 VLOG(1) << "CompleteParams distributed " << device << " for " << cp << ": " in CompleteParamsAsync()
99 << cp->ToString(); in CompleteParamsAsync()
100 CompleteGroupDistributed(device, cp, cancel_mgr, in CompleteParamsAsync()
101 [this, device, cp, cancel_mgr, done]( in CompleteParamsAsync()
104 CompleteInstanceDistributed(device, gr, cp, in CompleteParamsAsync()
115 CollectiveParams cp; in CompleteGroupAsync() local
116 cp.group.group_key = request->group_key(); in CompleteGroupAsync()
117 cp.group.group_size = request->group_size(); in CompleteGroupAsync()
118 cp.group.device_type = DeviceType(request->device_type()); in CompleteGroupAsync()
[all …]

12345678910>>...110