Home
last modified time | relevance | path

Searched refs:byte (Results 1 – 25 of 351) sorted by relevance

12345678910>>...15

/illumos-gate/usr/src/uts/i86pc/boot/
H A Dboot_gdt.s49 .byte 0x0 /* segment base 16..23 */
50 .byte 0x92 /* P = 1, read/write data */
51 .byte 0xCF /* G=1, B=1, Limit (16..19)=1111 */
52 .byte 0x0 /* segment base 24..32 */
57 .byte 0x0 /* segment base 16..23 */
58 .byte 0x9A /* P=1, code, exec, readable */
59 .byte 0xCF /* G=1, D=1, Limit (16..19)=1111 */
60 .byte 0x0 /* segment base 24..32 */
67 .byte 0x0 /* segment base 16..23 */
68 .byte 0x9A /* P=1, code, exec, readable */
[all …]
/illumos-gate/usr/src/lib/crt/i386/
H A Dfsr.S56 .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 Dfru_tag.c167 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()
186 tmp64 = ((uint64_t)tag->byte[0] << 40) | in get_tag_type()
187 ((uint64_t)tag->byte[1] << 32) | in get_tag_type()
188 ((uint64_t)tag->byte[2] << 24) | in get_tag_type()
189 ((uint64_t)tag->byte[3] << 16) | in get_tag_type()
190 ((uint64_t)tag->byte[4] << 8) | in get_tag_type()
191 (uint64_t)tag->byte[5]; in get_tag_type()
[all …]
/illumos-gate/usr/src/lib/libc/sparcv9/gen/
H A Dstrcpy.S54 ! source alignment and copying byte, half byte, or word
58 ! (methods for xword, word, half-word, and byte copies are present)
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
88 andcc %o5, 0xff, %g0 ! extract second byte
89 stb %o5, [%o2 + 1] ! store second byte
90 bz,pn %ncc, .done ! yup, 2nd byte zero, done
98 srl %o5, 24, %o4 ! extract first byte
[all …]
H A Dstrlcpy.S51 ! This is either by xword, word, halfword, or byte. As this occurs, we
52 ! check for a zero-byte. If one is found, we branch to a method
53 ! which checks for the exact location of a zero-byte within a
72 andcc %l1, 0xff, %g0 ! end of src reached (null byte) ?
77 bz,pn %ncc, .forcenullunalign ! n == 0, force null byte, compute len
79 bnz,a %ncc, .alignsrc ! no, copy another byte
99 nop ! ensure loop is 16-byte aligned
100 nop ! ensure loop is 16-byte aligned
109 bz,a,pt %ncc, .storedword ! no zero byte if magic expression == 0
119 srlx %l1, 56, %g1 ! first byte
[all …]
H A Dstrncpy.S62 ! is copied based upon destination alignment. (byte, half-word,
68 nop ! pad to align loop on 16-byte boundary
82 tst %o1 ! end of src reached (null byte) ?
83 bz,a %ncc, .bytepad ! yes, at least one byte to pad here
86 bnz,a %ncc, .alignsrc ! no, copy another byte
107 nop ! ensure loop is 16-byte aligned
116 bz,a,pt %ncc, .storedword ! no zero byte if magic expression == 0
124 srlx %o1, 56, %g1 ! first byte
128 srlx %o1, 48, %g1 ! second byte
132 srlx %o1, 40, %g1 ! third byte
[all …]
/illumos-gate/usr/src/cmd/krb5/krb5kdc/
H A Dsock2p.c55 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/libc/sparc/gen/
H A Dstrncpy.S62 ! is copied based upon destination alignment. (byte, half-word,
72 blu .shortcpy ! n < 7, use byte-wise copy
78 nop ! align loop on 16-byte boundary
79 nop ! align loop on 16-byte boundary
86 tst %i1 ! end of src reached (null byte) ?
87 bz,a .bytepad ! yes, at least one byte to pad here
90 bnz .alignsrc ! no, copy another byte
109 bz,a .storeword ! no zero byte if magic expression == 0
117 srl %i1, 24, %g1 ! first byte
119 sub %g1, 1, %g1 ! byte == 0 ? -1 : byte - 1
[all …]
H A Dstrcpy.S58 ! Methods exist to handle per-byte, half-word, and word sized
73 tst %o1 ! byte zero?
74 stb %o1, [%o2] ! store first byte
76 cmp %o4, 3 ! only one byte needed to align?
82 srl %o1, 8, %o4 ! %o4<7:0> = first byte
83 tst %o4 ! first byte zero ?
85 stb %o4, [%o2] ! store first byte
86 andcc %o1, 0xff, %g0 ! second byte zero ?
88 stb %o1, [%o2 + 1] ! store second byte
106 bz,a .copyword ! no zero byte if magic expression == 0
[all …]
H A Dstrlcpy.S50 ! This is either by word, halfword, or byte. As this occurs, we
51 ! check for a zero-byte. If one is found, we branch to a method
52 ! which checks for the exact location of a zero-byte within a
69 andcc %l1, 0xff, %g0 ! null byte reached?
74 bz,pn %icc, .forcenullunalign ! n == 0, append null byte
95 bz,a,pt %icc, .storeword ! if expr == 0, no zero byte
100 srl %l1, 24, %g1 ! 1st byte
103 stb %g1, [%i2] ! store byte
105 srl %l1, 16, %g1 ! 2nd byte
106 andcc %g1, 0xff, %g0 ! zero byte ?
[all …]
/illumos-gate/usr/src/lib/libcurses/screen/
H A Dmbtranslate.c62 *_strcode2byte(wchar_t *code, char *byte, int n) in _strcode2byte() argument
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()
105 *_strbyte2code(char *byte, wchar_t *code, int n) in _strbyte2code() argument
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()
[all …]
/illumos-gate/usr/src/lib/libldap5/sources/ldap/util/
H A Dline64.c204 unsigned char nib, *byte; in ldif_base64_decode() local
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()
230 byte[1] = (nib & RIGHT4) << 4; in ldif_base64_decode()
232 byte[1] |= nib >> 2; in ldif_base64_decode()
239 byte[2] = (nib & RIGHT2) << 6; in ldif_base64_decode()
241 byte[2] |= nib; in ldif_base64_decode()
243 byte += 3; in ldif_base64_decode()
324 unsigned char *p, *byte, *stop; in ldif_put_type_and_value_with_options() local
[all …]
/illumos-gate/usr/src/uts/common/gssapi/mechs/krb5/crypto/
H A Dnfold.c62 int byte, i, msbit; in krb5_nfold() local
86 byte = 0; in krb5_nfold()
104 byte += (((in[((inbits-1)-(msbit>>3))%inbits]<<8)| 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()
[all …]
/illumos-gate/usr/src/lib/iconv_modules/ko/common/
H A Dcommon_utf.c73 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 Ducs_to_unihan.c236 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()
279 utf8_char.byte.byte2 = (uchar_t)(0xe0 | ((ucs_char & 0x0f000) >> 12)); in ucs_to_unihan()
280 utf8_char.byte.byte3 = (uchar_t)(0x80 | ((ucs_char & 0x00fc0) >> 6)); in ucs_to_unihan()
[all …]
H A Dutf_to_euc_main.c105 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()
153 utf8_code.byte.byte4 = *(ib + 1); in _icv_iconv()
[all …]
H A Dutf_to_uhang_main.c101 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()
149 utf8_code.byte.byte4 = *(ib + 2); in _icv_iconv()
[all …]
H A Duhang_to_utf_sub.c59 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 Dnxge_fflp_hash.c114 uint32_t index, bit, byte, crc; in nxge_crc32c_init() local
118 for (byte = 0; byte < 4; byte++) { in nxge_crc32c_init()
124 crc32c_tab[3 - byte][index] = flip32(reflect_32(crc)); in nxge_crc32c_init()
126 crc32c_tab[byte][index] = reflect_32(crc); 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()
150 crc_ccitt_tab[3 - byte][index] = crc; 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()
[all …]
/illumos-gate/usr/src/cmd/file/
H A Dmagic27 # (1) byte offset
42 #>4 byte 1 32-bit
43 #>5 byte 1 LSB
44 #>5 byte 2 MSB
74 >156 byte 88 extended format
157 >1 byte 0 sun2 executable
158 >1 byte 1 mc68010 executable
159 >1 byte 2 mc68020 executable
160 >1 byte 3 SPARC executable
164 >1 byte 0 sun2 executable
[all …]
/illumos-gate/usr/src/common/crypto/aes/amd64/
H A Daes_amd64.S242 .byte x(0x63),x(0x7c),x(0x77),x(0x7b),x(0xf2),x(0x6b),x(0x6f),x(0xc5); \
243 .byte x(0x30),x(0x01),x(0x67),x(0x2b),x(0xfe),x(0xd7),x(0xab),x(0x76); \
244 .byte x(0xca),x(0x82),x(0xc9),x(0x7d),x(0xfa),x(0x59),x(0x47),x(0xf0); \
245 .byte x(0xad),x(0xd4),x(0xa2),x(0xaf),x(0x9c),x(0xa4),x(0x72),x(0xc0); \
246 .byte x(0xb7),x(0xfd),x(0x93),x(0x26),x(0x36),x(0x3f),x(0xf7),x(0xcc); \
247 .byte x(0x34),x(0xa5),x(0xe5),x(0xf1),x(0x71),x(0xd8),x(0x31),x(0x15); \
248 .byte x(0x04),x(0xc7),x(0x23),x(0xc3),x(0x18),x(0x96),x(0x05),x(0x9a); \
249 .byte x(0x07),x(0x12),x(0x80),x(0xe2),x(0xeb),x(0x27),x(0xb2),x(0x75); \
250 .byte x(0x09),x(0x83),x(0x2c),x(0x1a),x(0x1b),x(0x6e),x(0x5a),x(0xa0); \
251 .byte x(0x52),x(0x3b),x(0xd6),x(0xb3),x(0x29),x(0xe3),x(0x2f),x(0x84); \
[all …]
/illumos-gate/usr/src/lib/libdwarf/common/
H A Ddwarf_leb.c59 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/uts/i86pc/os/
H A Dbiosdisk.c172 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()
211 if (((rp.eflags & PS_C) != 0) || rp.eax.byte.ah != 0) { in drive_present()
213 drivenum, rp.eflags, rp.eax.byte.ah)); in drive_present()
227 rp.eax.byte.ah = 0x0; /* reset disk */ in reset_disk()
228 rp.edx.byte.dl = drivenum; in reset_disk()
232 status = rp.eax.byte.ah; in reset_disk()
254 rp.eax.byte.ah = 0x2; /* Read disk */ in read_firstblock()
[all …]
/illumos-gate/usr/src/lib/libc/amd64/gen/
H A Dmemccpy.S38 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 Dstrncat.S56 / to check if a 32-bit word data contains a null byte or not:
59 / that means the 32-bit word data contains a null byte.
82 cmpq %r9, %rcx / if no null byte in this quadword
86 cmpb $0, (%rdi) / if a byte in (%rdi) is null
88 incq %rdi / next byte
94 / %rdi points to a null byte in destination string
109 cmpq %r9, %rcx / if null byte in this quadword
121 / number of bytes < 8 or a null byte found in the quadword
124 movb (%rsi), %r11b / %r11b = a byte in (%rsi)
127 incq %rsi / next byte
[all …]

12345678910>>...15