Home
last modified time | relevance | path

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

12345678910>>...83

/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.c146 const u_char *cp, const u_int len) in aoev1_issue_print() argument
148 const u_char *ep = cp + len; in aoev1_issue_print()
153 ND_TCHECK2(*cp, 1); in aoev1_issue_print()
154 ND_PRINT((ndo, "\n\tAFlags: [%s]", bittok2str(aoev1_aflag_str, "none", *cp))); in aoev1_issue_print()
155 cp += 1; in aoev1_issue_print()
157 ND_TCHECK2(*cp, 1); in aoev1_issue_print()
158 ND_PRINT((ndo, ", Err/Feature: %u", *cp)); in aoev1_issue_print()
159 cp += 1; in aoev1_issue_print()
161 ND_TCHECK2(*cp, 1); in aoev1_issue_print()
162 ND_PRINT((ndo, ", Sector Count: %u", *cp)); in aoev1_issue_print()
[all …]
Dprint-domain.c53 register const u_char *cp) in ns_nskip() argument
57 if (!ND_TTEST2(*cp, 1)) in ns_nskip()
59 i = *cp++; in ns_nskip()
62 return (cp + 1); in ns_nskip()
68 if (!ND_TTEST2(*cp, 1)) in ns_nskip()
70 if ((bitlen = *cp++) == 0) in ns_nskip()
73 cp += bytelen; in ns_nskip()
75 cp += i; in ns_nskip()
76 if (!ND_TTEST2(*cp, 1)) in ns_nskip()
78 i = *cp++; in ns_nskip()
[all …]
Dprint-ahcp.c103 ahcp_time_print(netdissect_options *ndo, const u_char *cp, const u_char *ep) in ahcp_time_print() argument
109 if (cp + 4 != ep) in ahcp_time_print()
111 ND_TCHECK2(*cp, 4); in ahcp_time_print()
112 t = EXTRACT_32BITS(cp); in ahcp_time_print()
123 ND_TCHECK2(*cp, ep - cp); in ahcp_time_print()
131 ahcp_seconds_print(netdissect_options *ndo, const u_char *cp, const u_char *ep) in ahcp_seconds_print() argument
133 if (cp + 4 != ep) in ahcp_seconds_print()
135 ND_TCHECK2(*cp, 4); in ahcp_seconds_print()
136 ND_PRINT((ndo, ": %us", EXTRACT_32BITS(cp))); in ahcp_seconds_print()
141 ND_TCHECK2(*cp, ep - cp); in ahcp_seconds_print()
[all …]
Dprint-zeromq.c79 zmtp1_print_frame(netdissect_options *ndo, const u_char *cp, const u_char *ep) in zmtp1_print_frame() argument
85 ND_TCHECK2(*cp, 1); /* length/0xFF */ in zmtp1_print_frame()
87 if (cp[0] != 0xFF) { in zmtp1_print_frame()
89 body_len_declared = cp[0]; in zmtp1_print_frame()
91 return cp + header_len; /* skip to next frame */ in zmtp1_print_frame()
92 ND_PRINT((ndo, " frame flags+body (8-bit) length %u", cp[0])); in zmtp1_print_frame()
93 ND_TCHECK2(*cp, header_len + 1); /* length, flags */ in zmtp1_print_frame()
94 flags = cp[1]; in zmtp1_print_frame()
98 ND_TCHECK2(*cp, header_len); /* 0xFF, length */ in zmtp1_print_frame()
99 body_len_declared = EXTRACT_64BITS(cp + 1); in zmtp1_print_frame()
[all …]
Dprint-krb.c126 const u_char *cp) in krb4_print_hdr() argument
128 cp += 2; in krb4_print_hdr()
130 #define PRINT if ((cp = c_print(ndo, cp, ndo->ndo_snapend)) == NULL) goto trunc in krb4_print_hdr()
137 return (cp); in krb4_print_hdr()
148 const u_char *cp) in krb4_print() argument
154 #define PRINT if ((cp = c_print(ndo, cp, ndo->ndo_snapend)) == NULL) goto trunc in krb4_print()
157 #define KTOHSP(kp, cp) (IS_LENDIAN(kp) ? EXTRACT_LE_16BITS(cp) : EXTRACT_16BITS(cp)) in krb4_print() argument
159 kp = (struct krb *)cp; in krb4_print()
174 if ((cp = krb4_print_hdr(ndo, cp)) == NULL) in krb4_print()
176 cp += 4; /* ctime */ in krb4_print()
[all …]
Dprint-loopback.c58 loopback_message_print(netdissect_options *ndo, const u_char *cp, const u_int len) in loopback_message_print() argument
60 const u_char *ep = cp + len; in loopback_message_print()
66 ND_TCHECK2(*cp, 2); in loopback_message_print()
67 function = EXTRACT_LE_16BITS(cp); in loopback_message_print()
68 cp += 2; in loopback_message_print()
76 ND_TCHECK2(*cp, 2); in loopback_message_print()
77 ND_PRINT((ndo, ", receipt number %u", EXTRACT_LE_16BITS(cp))); in loopback_message_print()
78 cp += 2; in loopback_message_print()
81 ND_TCHECK2(*cp, len - 4); in loopback_message_print()
87 ND_TCHECK2(*cp, ETHER_ADDR_LEN); in loopback_message_print()
[all …]
Dprint-openflow.c79 of_header_body_print(netdissect_options *ndo, const u_char *cp, const u_char *ep) in of_header_body_print() argument
85 if (ep < cp + OF_HEADER_LEN) in of_header_body_print()
88 ND_TCHECK2(*cp, 1); in of_header_body_print()
89 version = *cp; in of_header_body_print()
90 cp += 1; in of_header_body_print()
92 ND_TCHECK2(*cp, 1); in of_header_body_print()
93 type = *cp; in of_header_body_print()
94 cp += 1; in of_header_body_print()
96 ND_TCHECK2(*cp, 2); in of_header_body_print()
97 length = EXTRACT_16BITS(cp); in of_header_body_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 FX_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.txt1151 cp;0000;bc=BN;ea=N;GCB=CN;-Gr_Base;lb=CM;Name_Alias=control=NULL,abbreviation=NUL
1152 cp;0001;bc=BN;ea=N;GCB=CN;-Gr_Base;lb=CM;Name_Alias=control=START OF HEADING,abbreviation=SOH
1153 cp;0002;bc=BN;ea=N;GCB=CN;-Gr_Base;lb=CM;Name_Alias=control=START OF TEXT,abbreviation=STX
1154 cp;0003;bc=BN;ea=N;GCB=CN;-Gr_Base;lb=CM;Name_Alias=control=END OF TEXT,abbreviation=ETX
1155 cp;0004;bc=BN;ea=N;GCB=CN;-Gr_Base;lb=CM;Name_Alias=control=END OF TRANSMISSION,abbreviation=EOT
1156 cp;0005;bc=BN;ea=N;GCB=CN;-Gr_Base;lb=CM;Name_Alias=control=ENQUIRY,abbreviation=ENQ
1157 cp;0006;bc=BN;ea=N;GCB=CN;-Gr_Base;lb=CM;Name_Alias=control=ACKNOWLEDGE,abbreviation=ACK
1158 cp;0007;bc=BN;ea=N;GCB=CN;-Gr_Base;lb=CM;Name_Alias=control=ALERT,abbreviation=BEL
1159 cp;0008;bc=BN;ea=N;GCB=CN;-Gr_Base;lb=CM;Name_Alias=control=BACKSPACE,abbreviation=BS
1160 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/bison/lib/
Dprintf-parse.c85 const CHAR_T *cp = format; /* pointer into format */ in PRINTF_PARSE() local
134 while (*cp != '\0') in PRINTF_PARSE()
136 CHAR_T c = *cp++; in PRINTF_PARSE()
143 dp->dir_start = cp - 1; in PRINTF_PARSE()
154 if (*cp >= '0' && *cp <= '9') in PRINTF_PARSE()
158 for (np = cp; *np >= '0' && *np <= '9'; np++) in PRINTF_PARSE()
164 for (np = cp; *np >= '0' && *np <= '9'; np++) in PRINTF_PARSE()
173 cp = np + 1; in PRINTF_PARSE()
180 if (*cp == '\'') in PRINTF_PARSE()
183 cp++; in PRINTF_PARSE()
[all …]
/external/libpcap/Win32/Src/
Dgetnetent.c34 extern u_int32_t inet_network(const char *cp);
61 register char *cp, **q; in getnetent() local
71 cp = any(p, "#\n"); in getnetent()
72 if (cp == NULL) in getnetent()
74 *cp = '\0'; in getnetent()
76 cp = any(p, " \t"); in getnetent()
77 if (cp == NULL) in getnetent()
79 *cp++ = '\0'; in getnetent()
80 while (*cp == ' ' || *cp == '\t') in getnetent()
81 cp++; in getnetent()
[all …]
Dgetservent.c82 register char *cp, **q; in getservent() local
91 cp = strpbrk(p, "#\n"); in getservent()
92 if (cp == NULL) in getservent()
94 *cp = '\0'; in getservent()
102 cp = strpbrk(p, ",/"); in getservent()
103 if (cp == NULL) in getservent()
105 *cp++ = '\0'; in getservent()
107 serv.s_proto = cp; in getservent()
109 cp = strpbrk(cp, " \t"); in getservent()
110 if (cp != NULL) in getservent()
[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/dnsmasq/contrib/dns-loc/
Ddnsmasq2-loc-rfc1876.patch178 + register char *cp;
182 + cp = *strptr;
184 + while (isdigit(*cp))
185 + mval = mval * 10 + (*cp++ - '0');
187 + if (*cp == '.') { /* centimeters */
188 + cp++;
189 + if (isdigit(*cp)) {
190 + cmval = (*cp++ - '0') * 10;
191 + if (isdigit(*cp)) {
192 + cmval += (*cp++ - '0');
[all …]
/external/libedit/src/
Demacs.c93 Char *cp, *p, *kp; in em_delete_next_word() local
98 cp = c__next_word(el->el_line.cursor, el->el_line.lastchar, in em_delete_next_word()
101 for (p = el->el_line.cursor, kp = el->el_chared.c_kill.buf; p < cp; p++) in em_delete_next_word()
106 c_delafter(el, (int)(cp - el->el_line.cursor)); /* delete after dot */ in em_delete_next_word()
122 Char *kp, *cp; in em_yank() local
133 cp = el->el_line.cursor; in em_yank()
140 *cp++ = *kp; in em_yank()
144 el->el_line.cursor = cp; in em_yank()
158 Char *kp, *cp; in em_kill_line() local
160 cp = el->el_line.buffer; in em_kill_line()
[all …]
/external/e2fsprogs/lib/blkid/
Dread.c62 static char *skip_over_blank(char *cp) in skip_over_blank() argument
64 while (*cp && isspace(*cp)) in skip_over_blank()
65 cp++; in skip_over_blank()
66 return cp; in skip_over_blank()
69 static char *skip_over_word(char *cp) in skip_over_word() argument
73 while ((ch = *cp)) { in skip_over_word()
76 cp++; in skip_over_word()
77 if (*cp == '\0') in skip_over_word()
79 cp++; in skip_over_word()
84 cp++; in skip_over_word()
[all …]

12345678910>>...83