/third_party/toybox/toys/example/ |
D | demo_utf8towc.c | 21 int len1, len2; in demo_utf8towc_main() local 30 len2 = 4; in demo_utf8towc_main() 32 while (!*str) str++, len2--; in demo_utf8towc_main() 34 len1 = mbrtowc(&wc1, str, len2, &mb); in demo_utf8towc_main() 36 len2 = utf8towc(&wc2, str, len2); in demo_utf8towc_main() 37 if (len1 != len2 || wc1 != wc2) in demo_utf8towc_main() 38 printf("%x %d %x %d %x\n", u, len1, wc1, len2, wc2); in demo_utf8towc_main()
|
/third_party/zlib/ |
D | adler32.c | 10 local uLong adler32_combine_ OF((uLong adler1, uLong adler2, z_off64_t len2)); 143 local uLong adler32_combine_(adler1, adler2, len2) in adler32_combine_() argument 146 z_off64_t len2; 153 if (len2 < 0) 157 MOD63(len2); /* assumes len2 >= 0 */ 158 rem = (unsigned)len2; 172 uLong ZEXPORT adler32_combine(adler1, adler2, len2) in adler32_combine() argument 175 z_off_t len2; 177 return adler32_combine_(adler1, adler2, len2); 180 uLong ZEXPORT adler32_combine64(adler1, adler2, len2) in adler32_combine64() argument [all …]
|
/third_party/libwebsockets/win32port/zlib/ |
D | crc32.c | 71 local uLong crc32_combine_(uLong crc1, uLong crc2, z_off64_t len2); 370 local uLong crc32_combine_(crc1, crc2, len2) in crc32_combine_() argument 373 z_off64_t len2; 381 if (len2 <= 0) 403 if (len2 & 1) 405 len2 >>= 1; 408 if (len2 == 0) 413 if (len2 & 1) 415 len2 >>= 1; 418 } while (len2 != 0); [all …]
|
D | adler32.c | 12 local uLong adler32_combine_(uLong adler1, uLong adler2, z_off64_t len2); 131 local uLong adler32_combine_(adler1, adler2, len2) in adler32_combine_() argument 134 z_off64_t len2; 141 rem = (unsigned)(len2 % BASE); 155 uLong ZEXPORT adler32_combine(adler1, adler2, len2) in adler32_combine() argument 158 z_off_t len2; 160 return adler32_combine_(adler1, adler2, len2); 163 uLong ZEXPORT adler32_combine64(adler1, adler2, len2) in adler32_combine64() argument 166 z_off64_t len2; 168 return adler32_combine_(adler1, adler2, len2);
|
/third_party/skia/third_party/externals/zlib/ |
D | adler32.c | 10 local uLong adler32_combine_ OF((uLong adler1, uLong adler2, z_off64_t len2)); 171 local uLong adler32_combine_(adler1, adler2, len2) in adler32_combine_() argument 174 z_off64_t len2; 181 if (len2 < 0) 185 MOD63(len2); /* assumes len2 >= 0 */ 186 rem = (unsigned)len2; 200 uLong ZEXPORT adler32_combine(adler1, adler2, len2) in adler32_combine() argument 203 z_off_t len2; 205 return adler32_combine_(adler1, adler2, len2); 208 uLong ZEXPORT adler32_combine64(adler1, adler2, len2) in adler32_combine64() argument [all …]
|
D | crc32.c | 57 local uLong crc32_combine_ OF((uLong crc1, uLong crc2, z_off64_t len2)); 426 local uLong crc32_combine_(crc1, crc2, len2) in crc32_combine_() argument 429 z_off64_t len2; 437 if (len2 <= 0) 459 if (len2 & 1) 461 len2 >>= 1; 464 if (len2 == 0) 469 if (len2 & 1) 471 len2 >>= 1; 474 } while (len2 != 0); [all …]
|
/third_party/node/deps/zlib/ |
D | adler32.c | 10 local uLong adler32_combine_ OF((uLong adler1, uLong adler2, z_off64_t len2)); 173 local uLong adler32_combine_(adler1, adler2, len2) in adler32_combine_() argument 176 z_off64_t len2; 183 if (len2 < 0) 187 MOD63(len2); /* assumes len2 >= 0 */ 188 rem = (unsigned)len2; 202 uLong ZEXPORT adler32_combine(adler1, adler2, len2) in adler32_combine() argument 205 z_off_t len2; 207 return adler32_combine_(adler1, adler2, len2); 210 uLong ZEXPORT adler32_combine64(adler1, adler2, len2) in adler32_combine64() argument [all …]
|
D | crc32.c | 60 local uLong crc32_combine_ OF((uLong crc1, uLong crc2, z_off64_t len2)); 429 local uLong crc32_combine_(crc1, crc2, len2) in crc32_combine_() argument 432 z_off64_t len2; 440 if (len2 <= 0) 462 if (len2 & 1) 464 len2 >>= 1; 467 if (len2 == 0) 472 if (len2 & 1) 474 len2 >>= 1; 477 } while (len2 != 0); [all …]
|
/third_party/flutter/skia/third_party/externals/zlib/ |
D | adler32.c | 10 local uLong adler32_combine_ OF((uLong adler1, uLong adler2, z_off64_t len2)); 173 local uLong adler32_combine_(adler1, adler2, len2) in adler32_combine_() argument 176 z_off64_t len2; 183 if (len2 < 0) 187 MOD63(len2); /* assumes len2 >= 0 */ 188 rem = (unsigned)len2; 202 uLong ZEXPORT adler32_combine(adler1, adler2, len2) in adler32_combine() argument 205 z_off_t len2; 207 return adler32_combine_(adler1, adler2, len2); 210 uLong ZEXPORT adler32_combine64(adler1, adler2, len2) in adler32_combine64() argument [all …]
|
D | crc32.c | 60 local uLong crc32_combine_ OF((uLong crc1, uLong crc2, z_off64_t len2)); 429 local uLong crc32_combine_(crc1, crc2, len2) in crc32_combine_() argument 432 z_off64_t len2; 440 if (len2 <= 0) 462 if (len2 & 1) 464 len2 >>= 1; 467 if (len2 == 0) 472 if (len2 & 1) 474 len2 >>= 1; 477 } while (len2 != 0); [all …]
|
/third_party/openssl/crypto/ct/ |
D | ct_oct.c | 88 size_t len2; in o2i_SCT() local 112 n2s(p, len2); in o2i_SCT() 113 if (len < len2) { in o2i_SCT() 117 if (len2 > 0) { in o2i_SCT() 118 sct->ext = OPENSSL_memdup(p, len2); in o2i_SCT() 122 sct->ext_len = len2; in o2i_SCT() 123 p += len2; in o2i_SCT() 124 len -= len2; in o2i_SCT() 324 size_t len2; in i2o_SCT_LIST() local 342 len2 = 2; in i2o_SCT_LIST() [all …]
|
/third_party/musl/src/stdio/ |
D | open_wmemstream.c | 43 size_t len2; in wms_write() local 46 len2 = 2*c->space+1 | c->pos+len+1; in wms_write() 47 if (len2 > SSIZE_MAX/4) return 0; in wms_write() 48 newbuf = realloc(c->buf, len2*4); in wms_write() 51 memset(c->buf + c->space, 0, 4*(len2 - c->space)); in wms_write() 52 c->space = len2; in wms_write() 55 len2 = mbsnrtowcs(c->buf+c->pos, (void *)&buf, len, c->space-c->pos, &c->mbs); in wms_write() 56 if (len2 == -1) return 0; in wms_write() 57 c->pos += len2; in wms_write()
|
D | open_memstream.c | 40 size_t len2 = f->wpos - f->wbase; in ms_write() local 42 if (len2) { in ms_write() 44 if (ms_write(f, f->wbase, len2) < len2) return 0; in ms_write() 47 len2 = 2*c->space+1 | c->pos+len+1; in ms_write() 48 newbuf = realloc(c->buf, len2); in ms_write() 51 memset(c->buf + c->space, 0, len2 - c->space); in ms_write() 52 c->space = len2; in ms_write()
|
D | fopencookie.c | 25 size_t len2 = len - !!f->buf_size; in cookieread() local 29 if (len2) { in cookieread() 30 ret = fc->iofuncs.read(fc->cookie, (char *) buf, len2); in cookieread() 58 size_t len2 = f->wpos - f->wbase; in cookiewrite() local 60 if (len2) { in cookiewrite() 62 if (cookiewrite(f, f->wpos, len2) < len2) return 0; in cookiewrite()
|
/third_party/musl/porting/liteos_a/user/src/stdio/ |
D | open_wmemstream.c | 44 size_t len2; in wms_write() local 47 len2 = 2*c->space+1 | c->pos+len+1; in wms_write() 48 if (len2 > SSIZE_MAX/4) return 0; in wms_write() 49 newbuf = realloc(c->buf, len2*4); in wms_write() 52 memset(c->buf + c->space, 0, 4*(len2 - c->space)); in wms_write() 53 c->space = len2; in wms_write() 56 len2 = mbsnrtowcs(c->buf+c->pos, (void *)&buf, len, c->space-c->pos, &c->mbs); in wms_write() 57 if (len2 == -1) return 0; in wms_write() 58 c->pos += len2; in wms_write()
|
/third_party/freetype/src/gzip/ |
D | adler32.c | 11 local uLong adler32_combine_ OF((uLong adler1, uLong adler2, z_off64_t len2)); 150 z_off64_t len2) in adler32_combine_() argument 157 if (len2 < 0) in adler32_combine_() 161 MOD63(len2); /* assumes len2 >= 0 */ in adler32_combine_() 162 rem = (unsigned)len2; in adler32_combine_() 179 z_off_t len2) in adler32_combine() argument 181 return adler32_combine_(adler1, adler2, len2); in adler32_combine() 187 z_off64_t len2) in adler32_combine64() argument 189 return adler32_combine_(adler1, adler2, len2); in adler32_combine64()
|
/third_party/ffmpeg/libavutil/ |
D | adler32.c | 56 unsigned len2 = FFMIN((len-1) & ~7, 23*8); in av_adler32_update() local 57 if (len2) { in av_adler32_update() 62 len -= len2; in av_adler32_update() 63 s2 += s1*len2; in av_adler32_update() 64 while (len2 >= 8) { in av_adler32_update() 70 len2 -= 8; in av_adler32_update()
|
/third_party/ffmpeg/libavformat/ |
D | vorbiscomment.c | 83 int64_t len2 = strlen(tag->value); in ff_vorbiscomment_write() local 84 if (len1+1+len2 > UINT32_MAX) in ff_vorbiscomment_write() 86 avio_wl32(pb, len1 + 1 + len2); in ff_vorbiscomment_write() 89 avio_write(pb, tag->value, len2); in ff_vorbiscomment_write() 113 int64_t len2 = strlen(tag->value); in ff_vorbiscomment_write() local 114 if (len1+1+len2+10 > UINT32_MAX) in ff_vorbiscomment_write() 116 avio_wl32(pb, 10 + len1 + 1 + len2); in ff_vorbiscomment_write() 124 avio_write(pb, tag->value, len2); in ff_vorbiscomment_write()
|
/third_party/toybox/toys/posix/ |
D | cmp.c | 31 int i, len1, len2, min_len, size = sizeof(toybuf)/2; local 48 len2 = readall(fd, buf2, size); 50 min_len = len1 < len2 ? len1 : len2; 66 if (len1 != len2) { 68 fprintf(stderr, "cmp: EOF on %s\n", len1 < len2 ? TT.name : name);
|
D | wc.c | 76 int pos, done = 0, len2 = read(fd, toybuf+len, sizeof(toybuf)-len); in do_wc() local 79 if (len2<0) perror_msg_raw(name); in do_wc() 80 else len += len2; in do_wc() 81 if (len2<1) done++; in do_wc()
|
/third_party/flutter/skia/src/effects/ |
D | SkDashPathEffect.cpp | 238 SkScalar len2 = length; in onAsPoints() local 240 SkASSERT(len2 >= clampedInitialDashLength); in onAsPoints() 246 len2 -= clampedInitialDashLength; in onAsPoints() 248 len2 -= fIntervals[1]; // also skip first space in onAsPoints() 249 if (len2 < 0) { in onAsPoints() 250 len2 = 0; in onAsPoints() 253 len2 -= clampedInitialDashLength; // skip initial partial empty in onAsPoints() 259 SkScalar numIntervals = len2 / fIntervalLength; in onAsPoints() 265 len2 -= numMidPoints * fIntervalLength; in onAsPoints() 267 if (len2 > 0) { in onAsPoints() [all …]
|
/third_party/skia/src/effects/ |
D | SkDashPathEffect.cpp | 238 SkScalar len2 = length; in onAsPoints() local 240 SkASSERT(len2 >= clampedInitialDashLength); in onAsPoints() 246 len2 -= clampedInitialDashLength; in onAsPoints() 248 len2 -= fIntervals[1]; // also skip first space in onAsPoints() 249 if (len2 < 0) { in onAsPoints() 250 len2 = 0; in onAsPoints() 253 len2 -= clampedInitialDashLength; // skip initial partial empty in onAsPoints() 259 SkScalar numIntervals = len2 / fIntervalLength; in onAsPoints() 265 len2 -= numMidPoints * fIntervalLength; in onAsPoints() 267 if (len2 > 0) { in onAsPoints() [all …]
|
/third_party/skia/third_party/externals/dng_sdk/source/ |
D | dng_string.cpp | 1519 uint32 len2 = strlenAsUint32 (s); in EndsWith() local 1521 if (len1 < len2) in EndsWith() 1526 const char *t = Get () + (len1 - len2); in EndsWith() 1565 uint32 len2 = strlenAsUint32 (s); in Contains() local 1567 if (len1 < len2) in Contains() 1572 uint32 offsets = len1 - len2; in Contains() 1630 uint32 len2 = strlenAsUint32 (old_string); in Replace() local 1633 if (len2 == len3) in Replace() 1642 else if (len2 > len3) in Replace() 1649 const char *s = fData.Buffer_char () + match_offset + len2; in Replace() [all …]
|
/third_party/flutter/skia/third_party/externals/icu/patches/ |
D | iso2022jp.patch | 98 - if(len2 == 2 || (len2 == -2 && len == 0)) { /* only accept DBCS: abs(len)==2 … 100 + // Only accept DBCS char (abs(len2) == 2). 105 + if((len2 == 2 && ((value & 0xFF00) != 0x8E00)) || (len2 == -2 && len == 0)) { 109 len = len2;
|
/third_party/skia/third_party/externals/icu/patches/ |
D | iso2022jp.patch | 98 - if(len2 == 2 || (len2 == -2 && len == 0)) { /* only accept DBCS: abs(len)==2 … 100 + // Only accept DBCS char (abs(len2) == 2). 105 + if((len2 == 2 && ((value & 0xFF00) != 0x8E00)) || (len2 == -2 && len == 0)) { 109 len = len2;
|