/illumos-gate/usr/src/uts/i86pc/boot/ |
H A D | boot_gdt.s | 49 .byte 0x0 /* segment base 16..23 */ 52 .byte 0x0 /* segment base 24..32 */ 57 .byte 0x0 /* segment base 16..23 */ 60 .byte 0x0 /* segment base 24..32 */ 67 .byte 0x0 /* segment base 16..23 */ 70 .byte 0x0 /* segment base 24..32 */ 84 .byte 0x0 /* segment base 16..23 */ 137 .4byte 0 138 .4byte 0 139 .4byte 0 [all …]
|
/illumos-gate/usr/src/lib/crt/i386/ |
H A D | fsr.S | 56 .byte 0b11111111 57 .byte 0b11011111 58 .byte 0b11111011 59 .byte 0b11011011 60 .byte 0b11101111 61 .byte 0b11001111 62 .byte 0b11101011 63 .byte 0b11001011 64 .byte 0b11110111 65 .byte 0b11010111 [all …]
|
/illumos-gate/usr/src/lib/libfruutils/ |
H A D | fru_tag.c | 167 tmp.raw_data = (tag->byte[0] << 8) | tag->byte[1]; in get_tag_type() 173 tmp32 = (tag->byte[0] << 16) | (tag->byte[1] << 8) | tag->byte[2]; in get_tag_type() 180 tmp32 = (tag->byte[0] << 24) | (tag->byte[1] << 16) | in get_tag_type() 181 (tag->byte[2] << 8) | tag->byte[3]; in get_tag_type() 236 tmp.raw_data = (tag->byte[0] << 8) | tag->byte[1]; in get_tag_dense() 239 tmp.raw_data = (tag->byte[0] << 8) | tag->byte[1]; in get_tag_dense() 242 tmp32 = (tag->byte[0] << 16) | (tag->byte[1] << 8) | in get_tag_dense() 253 (tag->byte[2] << 8) | tag->byte[3]; in get_tag_dense() 309 tmp.raw_data = (tag->byte[0] << 8) | tag->byte[1]; in get_payload_length() 312 tmp.raw_data = (tag->byte[0] << 8) | tag->byte[1]; in get_payload_length() [all …]
|
/illumos-gate/usr/src/lib/libc/sparcv9/gen/ |
H A D | strcpy.S | 54 ! source alignment and copying byte, half byte, or word 70 andcc %o1, 1, %g0 ! need to copy byte ? 84 srl %o5, 8, %o4 ! extract first byte 85 tst %o4 ! first byte == 0 ? 87 stb %o4, [%o2] ! store first byte 98 srl %o5, 24, %o4 ! extract first byte 99 tst %o4 ! is first byte zero ? 101 stb %o4, [%o2] ! store first byte 106 srl %o5, 8, %o4 ! extract third byte 109 stb %o4, [%o2 + 2] ! store third byte [all …]
|
H A D | strlcpy.S | 119 srlx %l1, 56, %g1 ! first byte 129 srlx %l1, 40, %g1 ! third byte 139 srlx %l1, 24, %g1 ! fifth byte 144 srlx %l1, 16, %g1 ! sixth byte 173 srlx %l1, 56, %g1 ! first byte 186 srlx %l1, 40, %g1 ! third byte 200 srlx %l1, 24, %g1 ! fifth byte 207 srlx %l1, 16, %g1 ! sixth byte 244 mov 0xff, %i5 ! create byte mask for null byte scanning 248 srlx %i5, 8, %i5 ! byte mask for next byte [all …]
|
H A D | strncpy.S | 124 srlx %o1, 56, %g1 ! first byte 128 srlx %o1, 48, %g1 ! second byte 132 srlx %o1, 40, %g1 ! third byte 136 srlx %o1, 32, %g1 ! fourth byte 140 srlx %o1, 24, %g1 ! fifth byte 144 srlx %o1, 16, %g1 ! sixth byte 148 srlx %o1, 8, %g1 ! seventh byte 228 srlx %o1, 48, %g1 ! second byte 240 srlx %o1, 32, %g1 ! fourth byte 252 srlx %o1, 16, %g1 ! sixth byte [all …]
|
/illumos-gate/usr/src/cmd/krb5/krb5kdc/ |
H A D | sock2p.c | 55 const unsigned char *byte = (const unsigned char *) in inet_ntop() local 58 byte[0] * 256 + byte[1], in inet_ntop() 59 byte[2] * 256 + byte[3], in inet_ntop() 60 byte[4] * 256 + byte[5], in inet_ntop() 61 byte[6] * 256 + byte[7], in inet_ntop() 62 byte[8] * 256 + byte[9], in inet_ntop() 63 byte[10] * 256 + byte[11], in inet_ntop() 64 byte[12] * 256 + byte[13], in inet_ntop() 65 byte[14] * 256 + byte[15]); in inet_ntop()
|
/illumos-gate/usr/src/lib/libcurses/screen/ |
H A D | mbtranslate.c | 75 if (!byte && (n*CSMAX+1) > bufsize) { in _strcode2byte() 84 if (!byte && !buf) in _strcode2byte() 88 bufp = byte ? byte : buf; in _strcode2byte() 96 return (byte ? byte : buf); in _strcode2byte() 113 for (n = 0; byte[n] != '\0'; ++n) in _strbyte2code() 129 endbyte = byte + n; in _strbyte2code() 131 while (byte < endbyte && *byte) { in _strbyte2code() 135 type = TYPE(*byte & 0377); in _strbyte2code() 140 if (byte + width <= endbyte) { in _strbyte2code() 141 (void) _curs_mbtowc(&wchar, byte, width); in _strbyte2code() [all …]
|
/illumos-gate/usr/src/lib/libc/sparc/gen/ |
H A D | strncpy.S | 117 srl %i1, 24, %g1 ! first byte 119 sub %g1, 1, %g1 ! byte == 0 ? -1 : byte - 1 122 srl %i1, 16, %g1 ! second byte 124 and %g1, 0xff, %g1 ! isolate byte 125 sub %g1, 1, %g1 ! byte == 0 ? -1 : byte - 1 128 srl %i1, 8, %g1 ! third byte 130 and %g1, 0xff, %g1 ! isolate byte 131 sub %g1, 1, %g1 ! byte == 0 ? -1 : byte - 1 207 sub %g1, 1, %g1 ! byte == 0 ? -1 : byte - 1 210 srl %i1, 16, %g1 ! second byte [all …]
|
H A D | strcpy.S | 73 tst %o1 ! byte zero? 74 stb %o1, [%o2] ! store first byte 82 srl %o1, 8, %o4 ! %o4<7:0> = first byte 83 tst %o4 ! first byte zero ? 85 stb %o4, [%o2] ! store first byte 88 stb %o1, [%o2 + 1] ! store second byte 112 andcc %o1, %o4, %g0 ! first byte zero? 114 stb %o3, [%o2 - 4] ! store first byte 119 stb %o3, [%o2 - 3] ! store second byte 121 andcc %o1, %o4, %g0 ! third byte zero? [all …]
|
H A D | strlcpy.S | 100 srl %l1, 24, %g1 ! 1st byte 103 stb %g1, [%i2] ! store byte 105 srl %l1, 16, %g1 ! 2nd byte 108 stb %g1, [%i2] ! store byte 110 srl %l1, 8, %g1 ! 3rd byte 113 stb %g1, [%i2] ! store byte 127 srl %l1, 24, %g1 ! 1st byte 130 stb %g1, [%i2] ! store byte 133 srl %l1, 16, %g1 ! 2nd byte 140 srl %l1, 8, %g1 ! 3rd byte [all …]
|
/illumos-gate/usr/src/lib/libldap5/sources/ldap/util/ |
H A D | line64.c | 208 byte = dst; in ldif_base64_decode() 219 byte[0] = nib << 2; in ldif_base64_decode() 223 byte[0] |= nib >> 4; in ldif_base64_decode() 232 byte[1] |= nib >> 2; in ldif_base64_decode() 241 byte[2] |= nib; in ldif_base64_decode() 243 byte += 3; in ldif_base64_decode() 366 for ( byte = (unsigned char *) val; byte < stop; in ldif_put_type_and_value_with_options() 384 *(*out)++ = *byte; in ldif_put_type_and_value_with_options() 441 for ( byte = src; byte < stop - 2; byte += 3 ) { in ldif_base64_encode_internal() 461 buf[i] = byte[i]; in ldif_base64_encode_internal() [all …]
|
/illumos-gate/usr/src/uts/common/gssapi/mechs/krb5/crypto/ |
H A D | nfold.c | 62 int byte, i, msbit; in krb5_nfold() local 86 byte = 0; in krb5_nfold() 109 byte += out[i%outbits]; in krb5_nfold() 110 out[i%outbits] = byte&0xff; in krb5_nfold() 116 >>((msbit&7)+1))&0xff, byte); in krb5_nfold() 120 byte >>= 8; in krb5_nfold() 123 printf("carry=%d\n", byte); in krb5_nfold() 128 if (byte) { in krb5_nfold() 131 byte += out[i]; in krb5_nfold() 132 out[i] = byte&0xff; in krb5_nfold() [all …]
|
/illumos-gate/usr/src/lib/iconv_modules/ko/common/ |
H A D | common_utf.c | 73 if(utf8.byte.byte3 == 0 && utf8.byte.byte2 ==0) in _utf8_to_uni() 75 unicode.byte.byte1 = 0; in _utf8_to_uni() 76 unicode.byte.byte2 = 0; in _utf8_to_uni() 77 unicode.byte.byte3 = 0; in _utf8_to_uni() 78 unicode.byte.byte4 = utf8.byte.byte4; in _utf8_to_uni() 82 if(utf8.byte.byte2 == 0){ in _utf8_to_uni() 84 unicode.byte.byte1 = 0; in _utf8_to_uni() 85 unicode.byte.byte2 = 0; in _utf8_to_uni() 86 unicode.byte.byte3 = (utf8.byte.byte3 & 0x3F) >> 2; in _utf8_to_uni() 87 unicode.byte.byte4 = (utf8.byte.byte3 << 6) | (0x3F & utf8.byte.byte4); in _utf8_to_uni()
|
H A D | ucs_to_unihan.c | 236 if(unihan.byte.byte1 == '\0' && unihan.byte.byte2 == '\0' && unihan.byte.byte3 == '\0') in _icv_iconv() 238 *ob++ = unihan.byte.byte4; in _icv_iconv() 243 *ob++ = (uchar_t) unihan.byte.byte4; in _icv_iconv() 244 *ob++ = (uchar_t) unihan.byte.byte3; in _icv_iconv() 246 *ob++ = (uchar_t) unihan.byte.byte3; in _icv_iconv() 247 *ob++ = (uchar_t) unihan.byte.byte4; in _icv_iconv() 275 utf8_char.byte.byte3 = (uchar_t)(0xc0 | ((ucs_char & 0x07c0) >> 6)); in ucs_to_unihan() 276 utf8_char.byte.byte4 = (uchar_t)(0x80 | (ucs_char & 0x003f)); in ucs_to_unihan() 280 utf8_char.byte.byte3 = (uchar_t)(0x80 | ((ucs_char & 0x00fc0) >> 6)); in ucs_to_unihan() 281 utf8_char.byte.byte4 = (uchar_t)(0x80 | (ucs_char & 0x0003f)); in ucs_to_unihan() [all …]
|
H A D | utf_to_euc_main.c | 105 utf8_code.byte.byte1 = 0; in _icv_iconv() 106 utf8_code.byte.byte2 = *ib; in _icv_iconv() 107 utf8_code.byte.byte3 = *(ib + 1); in _icv_iconv() 108 utf8_code.byte.byte4 = *(ib + 2); in _icv_iconv() 121 *ob++ = euc_code.byte.byte3; in _icv_iconv() 122 *ob++ = euc_code.byte.byte4; in _icv_iconv() 150 utf8_code.byte.byte1 = 0; in _icv_iconv() 151 utf8_code.byte.byte2 = 0; in _icv_iconv() 152 utf8_code.byte.byte3 = *ib; in _icv_iconv() 165 *ob++ = euc_code.byte.byte3; in _icv_iconv() [all …]
|
H A D | utf_to_uhang_main.c | 101 utf8_code.byte.byte1 = 0; in _icv_iconv() 102 utf8_code.byte.byte2 = 0; in _icv_iconv() 103 utf8_code.byte.byte3 = *ib; in _icv_iconv() 104 utf8_code.byte.byte4 = *(ib + 1); in _icv_iconv() 110 *ob++ = euc_code.byte.byte3; in _icv_iconv() 111 *ob++ = euc_code.byte.byte4; in _icv_iconv() 146 utf8_code.byte.byte1 = 0; in _icv_iconv() 147 utf8_code.byte.byte2 = *ib; in _icv_iconv() 148 utf8_code.byte.byte3 = *(ib + 1); in _icv_iconv() 155 *ob++ = euc_code.byte.byte3; in _icv_iconv() [all …]
|
H A D | uhang_to_utf_sub.c | 59 if ((EUC_UDC_SEG1 == euc_code.byte.byte3) || in _unified_hangul_to_utf8() 60 (EUC_UDC_SEG2 == euc_code.byte.byte3)) { in _unified_hangul_to_utf8() 61 if ((euc_code.byte.byte4 < EUC_UDC_OFFSET_START) || in _unified_hangul_to_utf8() 62 (EUC_UDC_OFFSET_END < euc_code.byte.byte4)) { in _unified_hangul_to_utf8() 69 udc_index = (euc_code.byte.byte3 == EUC_UDC_SEG1) ? in _unified_hangul_to_utf8() 71 udc_index += (int)(euc_code.byte.byte4 - EUC_UDC_OFFSET_START); in _unified_hangul_to_utf8() 99 printf("*->%2x%2x%2x*",utf_code.byte.byte2,utf_code.byte.byte3,utf_code.byte.byte4); in _unified_hangul_to_utf8()
|
/illumos-gate/usr/src/uts/common/io/nxge/ |
H A D | nxge_fflp_hash.c | 114 uint32_t index, bit, byte, crc; in nxge_crc32c_init() local 118 for (byte = 0; byte < 4; byte++) { in nxge_crc32c_init() 140 uint16_t index, bit, byte; in nxge_crc_ccitt_init() local 144 for (byte = 0; byte < 4; byte++) { in nxge_crc_ccitt_init() 152 crc_ccitt_tab[byte][index] = crc; in nxge_crc_ccitt_init() 280 uint32_t crc, bit, byte, index; in nxge_init_h1_table() local 284 for (byte = 0; byte < 4; byte++) { in nxge_init_h1_table() 289 h1table[byte][index] = crc; in nxge_init_h1_table() 304 int bit, byte; in nxge_compute_h1_serial() local 309 for (byte = 0; byte < len; byte++) { in nxge_compute_h1_serial() [all …]
|
/illumos-gate/usr/src/cmd/file/ |
H A D | magic | 27 # (1) byte offset 42 #>4 byte 1 32-bit 43 #>5 byte 1 LSB 44 #>5 byte 2 MSB 208 >0 byte x archive 216 >0x1c byte &0x80 byte-swapped 251 >1 byte 3 (SPARC) 252 >1 byte 2 (68020) 254 >1 byte 0 (Sun2) 545 >7 byte x .%u [all …]
|
/illumos-gate/usr/src/lib/libdwarf/common/ |
H A D | dwarf_leb.c | 59 Dwarf_Unsigned byte = 0; in _dwarf_decode_u_leb128_chk() local 101 byte = *leb128; in _dwarf_decode_u_leb128_chk() 106 number |= (byte & 0x7f) << shift; in _dwarf_decode_u_leb128_chk() 107 if ((byte & 0x80) == 0) { in _dwarf_decode_u_leb128_chk() 127 byte = *leb128; in _dwarf_decode_u_leb128_chk() 139 Dwarf_Unsigned byte = 0; in _dwarf_decode_s_leb128_chk() local 154 byte = *leb128; in _dwarf_decode_s_leb128_chk() 156 sign = byte & 0x40; in _dwarf_decode_s_leb128_chk() 160 number |= ((Dwarf_Unsigned) ((byte & 0x7f))) << shift; in _dwarf_decode_s_leb128_chk() 163 if ((byte & 0x80) == 0) { in _dwarf_decode_s_leb128_chk() [all …]
|
/illumos-gate/usr/src/common/crypto/aes/amd64/ |
H A D | aes_amd64.S | 242 .byte x(0x63),x(0x7c),x(0x77),x(0x7b),x(0xf2),x(0x6b),x(0x6f),x(0xc5); \ 273 .byte x(0x41),x(0x99),x(0x2d),x(0x0f),x(0xb0),x(0x54),x(0xbb),x(0x16) 307 .byte x(0xe1),x(0x69),x(0x14),x(0x63),x(0x55),x(0x21),x(0x0c),x(0x7d) 714 movzx 4*KS_LENGTH(kptr), %esi / Get byte key length * 16 722 shl $4, %esi / P2: esi byte key length * 16 728 / P2: byte key length * 16 in esi 748 / Jump based on byte key length * 16: 818 movzx 4*KS_LENGTH(kptr), %esi / Get byte key length * 16 826 shl $4, %esi / P2: esi byte key length * 16 832 / P2: byte key length * 16 in esi [all …]
|
/illumos-gate/usr/src/uts/i86pc/os/ |
H A D | biosdisk.c | 172 rp.edx.byte.dl = drivenum; in get_dev_params() 181 rp.eflags, rp.eax.byte.ah)); in get_dev_params() 206 rp.eax.byte.ah = 0x8; /* get params */ in drive_present() 207 rp.edx.byte.dl = drivenum; in drive_present() 228 rp.edx.byte.dl = drivenum; in reset_disk() 232 status = rp.eax.byte.ah; in reset_disk() 255 rp.eax.byte.al = 1; /* nsect */ in read_firstblock() 256 rp.ecx.byte.ch = 0; /* cyl & 0xff */ in read_firstblock() 258 rp.edx.byte.dh = 0; /* head */ in read_firstblock() 267 status = rp.eax.byte.ah; in read_firstblock() [all …]
|
/illumos-gate/usr/src/lib/libc/amd64/gen/ |
H A D | memccpy.S | 38 movb %dh,(%rdi) / move byte 39 cmpb %dh,%dl / is it the byte sought? 45 movb %dh,1(%rdi) / move byte 46 cmpb %dh,%dl / is it the byte sought? 52 movb %dh,2(%rdi) / move byte 53 cmpb %dh,%dl / is it the byte sought? 59 movb %dh,3(%rdi) / move byte 62 cmpb %dh,%dl / is it the byte sought? 67 incq %rdi / return pointer to next byte in dest 75 addq $2,%rdi / return pointer to next byte in dest
|
H A D | strncat.S | 86 cmpb $0, (%rdi) / if a byte in (%rdi) is null 88 incq %rdi / next byte 109 cmpq %r9, %rcx / if null byte in this quadword 124 movb (%rsi), %r11b / %r11b = a byte in (%rsi) 127 incq %rsi / next byte 128 incq %rdi / next byte 129 cmpb $0, %r11b / compare %r11b with a null byte 138 movb (%rsi), %r11b / %r11b = a byte in (%rsi) 141 incq %rdi / next byte 142 incq %rsi / next byte [all …]
|