/netbsd-src/external/bsd/openldap/lib/liblber/ |
H A D | Makefile | 12 SRCS= assert.c decode.c encode.c io.c bprint.c debug.c \ 19 MAN= lber-decode.3 lber-encode.3 lber-memory.3 lber-sockbuf.3 \ 36 MLINKS+= lber-encode.3 ber_alloc_t.3 \ 37 lber-encode.3 ber_flush.3 \ 38 lber-encode.3 ber_printf.3 \ 39 lber-encode.3 ber_put_int.3 \ 40 lber-encode.3 ber_put_ostring.3 \ 41 lber-encode.3 ber_put_string.3 \ 42 lber-encode.3 ber_put_null.3 \ 43 lber-encode.3 ber_put_enum.3 \ [all …]
|
/netbsd-src/external/gpl3/gdb/dist/libdecnumber/ |
H A D | decCommon.c | 249 uInt encode; /* encoding accumulator */ in decFinalize() local 506 encode=DECCOMBFROM[code]; /* indexed by (0-2)*16+msd */ in decFinalize() 507 encode|=(uexp<<(32-6-DECECONL)) & 0x03ffffff; /* exponent continuation */ in decFinalize() 509 else encode=num->exponent; /* special [already in word] */ in decFinalize() 510 encode|=num->sign; /* add sign */ in decFinalize() 530 encode|=dpd<<10; in decFinalize() 532 encode|=dpd; in decFinalize() 533 DFWORD(df, 0)=encode; /* just the one word */ in decFinalize() 536 getDPDt(dpd, 4); encode|=dpd<<8; in decFinalize() 537 getDPDt(dpd, 3); encode|=dpd>>2; in decFinalize() [all …]
|
H A D | decBasic.c | 86 uInt encode, precode, dpd; /* work */ in decCanonical() local 129 encode=DFWORD(result, inword); in decCanonical() 131 dpd=encode>>uoff; in decCanonical() 135 encode=DFWORD(result, inword); in decCanonical() 137 dpd|=encode<<(10-uoff); /* get pending bits */ in decCanonical() 145 encode&=~(0x3ff<<(uoff-10)); /* clear the 10 bits ready for replace */ in decCanonical() 146 encode|=canon<<(uoff-10); /* insert the canonical form */ in decCanonical() 147 DFWORD(result, inword)=encode; /* .. and save */ in decCanonical() 154 encode&=0xffffffff<<uoff; /* clear bottom bits */ in decCanonical() 155 encode|=canon>>(10-uoff); /* insert canonical */ in decCanonical() [all …]
|
/netbsd-src/external/gpl3/gcc/dist/libdecnumber/ |
H A D | decCommon.c | 249 uInt encode; /* encoding accumulator */ in decFinalize() local 506 encode=DECCOMBFROM[code]; /* indexed by (0-2)*16+msd */ in decFinalize() 507 encode|=(uexp<<(32-6-DECECONL)) & 0x03ffffff; /* exponent continuation */ in decFinalize() 509 else encode=num->exponent; /* special [already in word] */ in decFinalize() 510 encode|=num->sign; /* add sign */ in decFinalize() 530 encode|=dpd<<10; in decFinalize() 532 encode|=dpd; in decFinalize() 533 DFWORD(df, 0)=encode; /* just the one word */ in decFinalize() 536 getDPDt(dpd, 4); encode|=dpd<<8; in decFinalize() 537 getDPDt(dpd, 3); encode|=dpd>>2; in decFinalize() [all …]
|
H A D | decBasic.c | 86 uInt encode, precode, dpd; /* work */ in decCanonical() local 129 encode=DFWORD(result, inword); in decCanonical() 131 dpd=encode>>uoff; in decCanonical() 135 encode=DFWORD(result, inword); in decCanonical() 137 dpd|=encode<<(10-uoff); /* get pending bits */ in decCanonical() 145 encode&=~(0x3ff<<(uoff-10)); /* clear the 10 bits ready for replace */ in decCanonical() 146 encode|=canon<<(uoff-10); /* insert the canonical form */ in decCanonical() 147 DFWORD(result, inword)=encode; /* .. and save */ in decCanonical() 154 encode&=0xffffffff<<uoff; /* clear bottom bits */ in decCanonical() 155 encode|=canon>>(10-uoff); /* insert canonical */ in decCanonical() [all …]
|
/netbsd-src/external/gpl3/gdb.old/dist/libdecnumber/ |
H A D | decCommon.c | 249 uInt encode; /* encoding accumulator */ in decFinalize() local 506 encode=DECCOMBFROM[code]; /* indexed by (0-2)*16+msd */ in decFinalize() 507 encode|=(uexp<<(32-6-DECECONL)) & 0x03ffffff; /* exponent continuation */ in decFinalize() 509 else encode=num->exponent; /* special [already in word] */ in decFinalize() 510 encode|=num->sign; /* add sign */ in decFinalize() 530 encode|=dpd<<10; in decFinalize() 532 encode|=dpd; in decFinalize() 533 DFWORD(df, 0)=encode; /* just the one word */ in decFinalize() 536 getDPDt(dpd, 4); encode|=dpd<<8; in decFinalize() 537 getDPDt(dpd, 3); encode|=dpd>>2; in decFinalize() [all …]
|
H A D | decBasic.c | 86 uInt encode, precode, dpd; /* work */ in decCanonical() local 129 encode=DFWORD(result, inword); in decCanonical() 131 dpd=encode>>uoff; in decCanonical() 135 encode=DFWORD(result, inword); in decCanonical() 137 dpd|=encode<<(10-uoff); /* get pending bits */ in decCanonical() 145 encode&=~(0x3ff<<(uoff-10)); /* clear the 10 bits ready for replace */ in decCanonical() 146 encode|=canon<<(uoff-10); /* insert the canonical form */ in decCanonical() 147 DFWORD(result, inword)=encode; /* .. and save */ in decCanonical() 154 encode&=0xffffffff<<uoff; /* clear bottom bits */ in decCanonical() 155 encode|=canon>>(10-uoff); /* insert canonical */ in decCanonical() [all …]
|
/netbsd-src/external/gpl3/gcc.old/dist/libdecnumber/ |
H A D | decCommon.c | 249 uInt encode; /* encoding accumulator */ in decFinalize() local 506 encode=DECCOMBFROM[code]; /* indexed by (0-2)*16+msd */ in decFinalize() 507 encode|=(uexp<<(32-6-DECECONL)) & 0x03ffffff; /* exponent continuation */ in decFinalize() 509 else encode=num->exponent; /* special [already in word] */ in decFinalize() 510 encode|=num->sign; /* add sign */ in decFinalize() 530 encode|=dpd<<10; in decFinalize() 532 encode|=dpd; in decFinalize() 533 DFWORD(df, 0)=encode; /* just the one word */ in decFinalize() 536 getDPDt(dpd, 4); encode|=dpd<<8; in decFinalize() 537 getDPDt(dpd, 3); encode|=dpd>>2; in decFinalize() [all …]
|
H A D | decBasic.c | 86 uInt encode, precode, dpd; /* work */ in decCanonical() local 129 encode=DFWORD(result, inword); in decCanonical() 131 dpd=encode>>uoff; in decCanonical() 135 encode=DFWORD(result, inword); in decCanonical() 137 dpd|=encode<<(10-uoff); /* get pending bits */ in decCanonical() 145 encode&=~(0x3ff<<(uoff-10)); /* clear the 10 bits ready for replace */ in decCanonical() 146 encode|=canon<<(uoff-10); /* insert the canonical form */ in decCanonical() 147 DFWORD(result, inword)=encode; /* .. and save */ in decCanonical() 154 encode&=0xffffffff<<uoff; /* clear bottom bits */ in decCanonical() 155 encode|=canon>>(10-uoff); /* insert canonical */ in decCanonical() [all …]
|
/netbsd-src/external/gpl3/gcc.old/dist/libphobos/src/std/ |
H A D | base64.d | 69 const(char)[] encoded = Base64.encode(data); 87 assert(Base64.encode(data) == "g9cwegE/"); 103 assert(Base64URL.encode(data) == "g9cwegE_"); 119 assert(Base64URLNoPadding.encode(data) == "g9cwe-8"); 199 Base64.encode(data, buf); 220 …pure char[] encode(R1, R2)(in R1 source, R2 buffer) if (isArray!R1 && is(ElementType!R1 : ubyte) && 289 auto encoded = Base64.encode(data, buffer[]); 301 char[] encode(R1, R2)(R1 source, R2 buffer) if (!isArray!R1 && isInputRange!R1 && 393 size_t encode(R1, R2)(in R1 source, auto ref R2 range) 470 assert(Base64.encode(data, output) == 8); [all …]
|
H A D | encoding.d | 413 auto n = encode(cast(dchar)'\u00E3',buffer); 466 void encode(dchar c) { encodeViaWrite(c); } in EncoderFunctions() 543 E[] encode(dchar c) @safe pure nothrow in EncoderFunctions() 546 e.encode(c); in EncoderFunctions() 550 void encode(dchar c, ref E[] array) @safe pure nothrow in EncoderFunctions() 553 e.encode(c); in EncoderFunctions() 556 void encode(dchar c, void delegate(E) dg) in EncoderFunctions() 559 e.encode(c); in EncoderFunctions() 668 s = encode!(E)(d); in CodeUnits() 1963 E[] encode(E)(dchar c) in encode() function [all …]
|
H A D | uri.d | 320 import std.utf : encode; 323 s.each!(c => encode(r, c)); 336 import std.utf : encode; 339 s.each!(c => encode(r, c)); 348 string encode(Char)(in Char[] uri) 555 auto result = encode(source); 562 result = encode(decode("%E3%81%82%E3%81%82")); 582 string encoded1 = encode(decoded1); 591 assert(encoded2 == encode(decoded2).to!StringType);
|
/netbsd-src/external/gpl3/gcc/dist/libphobos/src/std/ |
H A D | base64.d | 70 const(char)[] encoded = Base64.encode(data); 88 assert(Base64.encode(data) == "g9cwegE/"); 104 assert(Base64URL.encode(data) == "g9cwegE_"); 120 assert(Base64URLNoPadding.encode(data) == "g9cwe-8"); 200 Base64.encode(data, buf); 221 pure char[] encode(R1, R2)(const scope R1 source, return scope R2 buffer) 290 auto encoded = Base64.encode(data[], buffer[]); 302 char[] encode(R1, R2)(R1 source, R2 buffer) if (!isArray!R1 && isInputRange!R1 && 394 size_t encode(E, R)(scope const(E)[] source, auto ref R range) 465 assert(Base64.encode(data, output) == 8); [all …]
|
H A D | uri.d | 318 import std.utf : encode; 321 s.each!(c => encode(r, c)); 342 import std.utf : encode; 345 s.each!(c => encode(r, c)); 361 string encode(Char)(scope const(Char)[] uri) 372 assert("foo bar".encode == "foo%20bar"); 373 assert("<>.@.™".encode == "%3C%3E.@.%E2%84%A2"); 374 assert("foo/#?a=1&b=2".encode == "foo/#?a=1&b=2"); 375 assert("dlang+rocks!".encode == "dlang+rocks!"); 376 assert("!@#$%^&*(".encode == "!@#$%25%5E&*("); [all …]
|
H A D | encoding.d | 471 auto n = encode(cast(dchar)'\u00E3',buffer); 524 void encode(dchar c) { encodeViaWrite(c); } in EncoderFunctions() 601 E[] encode(dchar c) @safe pure nothrow in EncoderFunctions() 604 e.encode(c); in EncoderFunctions() 608 void encode(dchar c, ref E[] array) @safe pure nothrow in EncoderFunctions() 611 e.encode(c); in EncoderFunctions() 614 void encode(dchar c, void delegate(E) dg) in EncoderFunctions() 617 e.encode(c); in EncoderFunctions() 726 s = encode!(E)(d); in CodeUnits() 2122 E[] encode(E)(dchar c) in encode() function [all …]
|
H A D | utf.d | 25 $(LREF encode) 160 assertThrown!UTFException(encode(buf, cast(dchar) 0xD800)); 161 assertThrown!UTFException(encode(buf, cast(dchar) 0xDBFF)); 162 assertThrown!UTFException(encode(buf, cast(dchar) 0xDC00)); 163 assertThrown!UTFException(encode(buf, cast(dchar) 0xDFFF)); 164 assertThrown!UTFException(encode(buf, cast(dchar) 0x110000)); 2323 size_t encode(UseReplacementDchar useReplacementDchar = No.useReplacementDchar)( 2374 assert(encode(buf, '\u0000') == 1 && buf[0 .. 1] == "\u0000"); 2375 assert(encode(buf, '\u007F') == 1 && buf[0 .. 1] == "\u007F"); 2376 assert(encode(buf, '\u0080') == 2 && buf[0 .. 2] == "\u0080"); [all …]
|
/netbsd-src/external/apache2/llvm/dist/clang/tools/scan-build-py/tests/unit/ |
H A D | test_shell.py | 14 self.assertEqual(sut.encode(sut.decode(value)), value) 22 self.assertEqual(sut.decode(sut.encode(value)), value) 32 self.assertEqual(sut.encode(['clang', "it's me", 'again']), 34 self.assertEqual(sut.encode(['clang', "it(s me", 'again)']), 36 self.assertEqual(sut.encode(['clang', 'redirect > it']), 38 self.assertEqual(sut.encode(['clang', '-DKEY="VALUE"']), 40 self.assertEqual(sut.encode(['clang', '-DKEY="value with spaces"']),
|
/netbsd-src/external/public-domain/xz/dist/tests/ |
H A D | test_filter_flags.c | 23 encode(uint32_t known_size) in encode() function 82 expect(!encode(2)); in test_bcj() 90 expect(!encode(2)); in test_bcj() 97 expect(!encode(6)); in test_bcj() 116 expect(encode(99)); in test_delta() 124 expect(encode(99)); in test_delta() 128 expect(!encode(3)); in test_delta() 137 expect(!encode(3)); in test_delta() 146 expect(encode(99)); in test_delta()
|
/netbsd-src/external/gpl3/binutils/dist/libsframe/ |
H A D | Makefile.in | 117 @HAVE_COMPAT_DEJAGNU_TRUE@ testsuite/libsframe.encode/encode-1 \ 191 @HAVE_COMPAT_DEJAGNU_TRUE@ testsuite/libsframe.encode/encode-1$(EXEEXT) \ 211 …frame_encode_encode_1_OBJECTS = testsuite/libsframe.encode/testsuite_libsframe_encode_encode_1-enc… 355 $(srcdir)/testsuite/libsframe.encode/local.mk \ 554 testsuite_libsframe_encode_encode_1_SOURCES = testsuite/libsframe.encode/encode-1.c 573 …rcdir)/testsuite/libsframe.decode/local.mk $(srcdir)/testsuite/libsframe.encode/local.mk $(srcdir)… 595 …rcdir)/testsuite/libsframe.decode/local.mk $(srcdir)/testsuite/libsframe.encode/local.mk $(srcdir)… 705 testsuite/libsframe.encode/$(am__dirstamp): 706 @$(MKDIR_P) testsuite/libsframe.encode 707 @: > testsuite/libsframe.encode/$(am__dirstamp) [all …]
|
/netbsd-src/external/bsd/wpa/dist/wpa_supplicant/examples/ |
H A D | p2p-nfc.py | 81 cmd = "WPS_NFC_TAG_READ " + str(message).encode("hex") 136 …cmd = "NFC_REPORT_HANDOVER " + type + " P2P " + str(req).encode("hex") + " " + str(sel).encode("he… 147 …cmd = "NFC_REPORT_HANDOVER " + type + " WPS " + str(req).encode("hex") + " " + str(sel).encode("he… 163 print("Handover request carrier record from wpa_supplicant: " + data.encode("hex")) 186 print(str(message).encode("hex")) 225 print(str(message).encode("hex")) 312 print(data.encode("hex")) 342 print(data.encode("hex")) 360 print(str(sel).encode("hex")) 448 print(str(p2p_sel_data).encode("hex"))
|
H A D | wps-nfc.py | 70 if "FAIL" in wpas.request("WPS_NFC_TAG_READ " + str(message).encode("hex")): 134 str(req).encode("hex") + " " + 135 str(sel).encode("hex")) 181 print(data.encode("hex")) 196 print(str(sel).encode("hex")) 210 print("Handover request carrier record from wpa_supplicant: " + data.encode("hex")) 222 print(str(message).encode("hex")) 261 print(str(message).encode("hex"))
|
/netbsd-src/external/gpl3/gcc/dist/libphobos/libdruntime/core/internal/ |
H A D | utf.d | 435 void encode(ref char[] s, dchar c) in encode() function 488 encode(s, cast(dchar)'a'); 492 encode(s, cast(dchar)'\u00A9'); 497 encode(s, cast(dchar)'\u2260'); 504 void encode(ref wchar[] s, dchar c) in encode() function 530 void encode(ref dchar[] s, dchar c) in encode() function 656 encode(r, ch); in toUTF8() 684 encode(r, d); in toUTF8() 745 encode(r, c); in toUTF16() 778 encode(r, c); in toUTF16z() [all …]
|
/netbsd-src/sys/external/bsd/drm2/dist/drm/i915/gt/ |
H A D | gen8_ppgtt.c | 223 vm->scratch[0].encode, in __gen8_ppgtt_clear() 294 fill_px(pt, vm->scratch[lvl].encode); in __gen8_ppgtt_alloc() 306 fill_px(pt, vm->scratch[lvl].encode); in __gen8_ppgtt_alloc() 472 gen8_pte_t encode = pte_encode; in gen8_ppgtt_insert_huge() local 489 encode |= GEN8_PDE_PS_2M; in gen8_ppgtt_insert_huge() 520 vaddr[index++] = encode | in gen8_ppgtt_insert_huge() 525 vaddr[index++] = encode | iter->dma; in gen8_ppgtt_insert_huge() 614 encode = vma->vm->scratch[0].encode; in gen8_ppgtt_insert_huge() 618 memset64(vaddr + i, encode, 15); in gen8_ppgtt_insert_huge() 682 vm->scratch[0].encode = in gen8_init_scratch() [all …]
|
/netbsd-src/external/bsd/wpa/dist/hostapd/ |
H A D | wps-ap-nfc.py | 66 if "FAIL" in wpas.request("WPS_NFC_TAG_READ " + str(message).encode("hex")): 106 str(req).encode("hex") + " " + 107 str(sel).encode("hex")) 139 print(str(request).encode("hex")) 152 print(data.encode("hex")) 166 print(str(sel).encode("hex"))
|
/netbsd-src/external/gpl3/gcc.old/dist/libphobos/libdruntime/rt/util/ |
H A D | utf.d | 435 void encode(ref char[] s, dchar c) in encode() function 488 encode(s, cast(dchar)'a'); 492 encode(s, cast(dchar)'\u00A9'); 497 encode(s, cast(dchar)'\u2260'); 504 void encode(ref wchar[] s, dchar c) in encode() function 530 void encode(ref dchar[] s, dchar c) in encode() function 656 encode(r, c); in toUTF8() 684 encode(r, d); in toUTF8() 739 encode(r, c); in toUTF16() 766 encode(r, c); in toUTF16z() [all …]
|