/illumos-gate/usr/src/lib/libc/i386/gen/ |
H A D | strncat.S | 83 cmpb $0, (%edi) / if a byte in (%edi) is null 85 incl %edi / next byte 91 / %edi points to a null byte in destination string 123 movb (%eax), %dl / %dl = a byte in (%eax) 126 incl %eax / next byte 127 incl %edi / next byte 128 cmpb $0, %dl / compare %dl with a null byte 137 movb (%eax), %dl / %dl = a byte in (%eax) 140 incl %edi / next byte 141 incl %eax / next byte [all …]
|
H A D | byteorder.S | 44 / reverses the byte order of 'long hl' 48 bswap %eax / reverses the byte order of %eax 54 bswap %eax / reverses the byte order of %eax 61 / reverses the byte order in hs. 65 bswap %eax / reverses the byte order of %eax 72 bswap %eax / reverses the byte order of %eax 83 bswap %eax / reverses the byte order of %eax 94 bswap %eax / reverses the byte order of %eax 105 bswap %eax / reverses the byte order of %eax 112 bswap %eax / reverses the byte order of %eax [all …]
|
H A D | memccpy.S | 44 movb %dl,(%eax) / move byte 45 cmpb %dh,%dl / is it the byte sought? 51 movb %dl,1(%eax) / move byte 52 cmpb %dh,%dl / is it the byte sought? 58 movb %dl,2(%eax) / move byte 59 cmpb %dh,%dl / is it the byte sought? 65 movb %dl,3(%eax) / move byte 68 cmpb %dh,%dl / is it the byte sought? 74 incl %eax / return pointer to next byte in dest 82 addl $2,%eax / return pointer to next byte in dest
|
H A D | memchr.S | 70 cmpb %dl, %cl / if the first byte is %cl 72 cmpb %dh, %cl / if the second byte is %cl 75 cmpb %dl, %cl / if the third byte is %cl 86 cmpb (%eax), %cl / if a byte in (%eax) is %cl 89 incl %eax / next byte 100 cmpb (%eax), %cl / if a byte in (%eax) is %cl 102 incl %eax / next byte 111 / found at the fourth byte 114 / found at the third byte 117 / found at the second byte [all …]
|
H A D | strcat.S | 54 / that means the 32-bit word data contains a null byte. 61 / find a null byte in destination string 74 cmpl $0x80808080, %ecx / if no null byte in this word 78 cmpb $0, (%edi) / if a byte in (%edi) is null 80 incl %edi / next byte 86 / %edi points to a null byte in destination string 99 cmpl $0x80808080, %ecx / if null byte in this word 108 movb (%eax), %dl / %dl = a byte in (%eax) 109 cmpb $0, %dl / compare %dl with a null byte 112 incl %eax / next byte [all …]
|
/illumos-gate/usr/src/lib/libc/sparc/gen/ |
H A D | strchr.S | 40 ! word aligned, we check a for the search char a byte at a time 177 srl %o1, 8, %o4 ! %o4<7:0> = first byte 178 tst %o4 ! first byte zero ? 180 andcc %o1, 0xff, %g0 ! second byte zero ? 196 bz,a .searchword ! no zero byte if magic expression == 0 200 set 0xff000000, %o4 ! mask for 1st byte 201 andcc %o1, %o4, %g0 ! first byte zero? 203 set 0x00ff0000, %o5 ! mask for 2nd byte 205 andcc %o1, %o5, %g0 ! second byte zero? 207 srl %o4, 16, %o4 ! 0x0000ff00 = mask for 3rd byte [all …]
|
H A D | strncmp.S | 65 ldub [%i0], %i4 ! else cmp one byte 98 b .cmp_bytes ! do a byte at a time if n < 4 119 ! triggers ... check every byte individually. 121 andcc %i4, %l0, %g0 ! check if first byte was zero 129 andcc %i4, 0xff, %g0 ! check if last byte is zero 148 b .cmp_bytes ! do a byte at a time if n < 4 174 andcc %i4, 0xff, %g0 ! check if last byte is zero 192 b .cmp_bytes ! do a byte at a time if n < 4 218 andcc %i4, 0xff, %g0 ! check if last byte is zero 231 bcs,a .cmp_bytes ! do a byte at a time if n < 4 [all …]
|
/illumos-gate/usr/src/lib/libc/sparcv9/gen/ |
H A D | strchr.S | 40 ! word aligned, we check a for the search char a byte at a time 177 srl %o1, 8, %o4 ! %o4<7:0> = first byte 178 tst %o4 ! first byte zero ? 180 andcc %o1, 0xff, %g0 ! second byte zero ? 196 bz,a,pt %ncc, .searchword ! no zero byte if magic expression == 0 200 set 0xff000000, %o4 ! mask for 1st byte 201 andcc %o1, %o4, %g0 ! first byte zero? 203 set 0x00ff0000, %o5 ! mask for 2nd byte 205 andcc %o1, %o5, %g0 ! second byte zero? 207 srl %o4, 16, %o4 ! 0x0000ff00 = mask for 3rd byte [all …]
|
H A D | memset.S | 87 blu,pn %xcc, .walign ! not enough to guarantee 8-byte align 93 .dalign: ! Set bytes until 8-byte aligned 94 btst 7, %o5 ! 8-byte aligned? 96 andn %o2, 7, %o3 ! o3 has 8-byte multiple 99 stb %o1, [%o5] ! clear a byte 113 .walign: ! Set bytes until 4-byte aligned 119 stb %o1, [%o5] ! clear a byte 121 inc %o5 ! next byte 124 st %o1, [%o5] ! 4-byte writing loop 132 deccc %o2 ! byte clearing loop
|
H A D | strncmp.S | 65 ldub [%i0], %i4 ! else cmp one byte 98 b .cmp_bytes ! do a byte at a time if n < 4 119 ! triggers ... check every byte individually. 121 andcc %i4, %l0, %g0 ! check if first byte was zero 129 andcc %i4, 0xff, %g0 ! check if last byte is zero 148 b .cmp_bytes ! do a byte at a time if n < 4 174 andcc %i4, 0xff, %g0 ! check if last byte is zero 192 b .cmp_bytes ! do a byte at a time if n < 4 292 ! Do a byte by byte comparison, disregarding alignments 298 ldub [%i1 + %i0], %i4 ! read a byte from s1 [all …]
|
/illumos-gate/usr/src/boot/i386/libi386/ |
H A D | relocater_tramp.S | 177 .byte 0xb8 234 .byte 0xb8 240 .byte 0xb8 246 .byte 0xb8 252 .byte 0xb8 258 .byte 0xb8 264 .byte 0xb8 270 .byte 0x66, 0xb8 276 .byte 0x66, 0xba 281 .byte 0x66, 0xbb [all …]
|
/illumos-gate/usr/src/lib/libc/amd64/gen/ |
H A D | strcat.S | 54 / that means the 32-bit word data contains a null byte. 62 / find a null byte in destination string 78 cmpq %r9, %rcx / if no null byte in this quadword 82 cmpb $0, (%rdi) / if a byte in (%rdi) is null 84 incq %rdi / next byte 90 / %rdi points to a null byte in destination string 102 cmpq %r9, %rcx / if null byte in this quadaword 111 movb (%rsi), %dl / %dl = a byte in (%rsi) 112 cmpb $0, %dl / compare %dl with a null byte 115 incq %rsi / next byte [all …]
|
H A D | memchr.S | 67 cmpb %cl, %al / if the first byte is %al 69 cmpb %ch, %al / if the second byte is %al 72 cmpb %cl, %al / if the third byte is %al 83 cmpb (%rdi), %al / if a byte in (%rdi) is %al 86 incq %rdi / next byte 96 cmpb (%rdi), %al / if a byte in (%rdi) is %al 98 incq %rdi / next byte 107 / found at the fourth byte 110 / found at the third byte 113 / found at the second byte [all …]
|
/illumos-gate/usr/src/uts/sun4u/littleneck/io/ |
H A D | pcf8574_lneck.c | 307 uchar_t byte; in pcf8574_ioctl() local 337 err = pcf8574_get(unitp, &byte); in pcf8574_ioctl() 345 ioctl_port.value = byte; in pcf8574_ioctl() 355 byte)); in pcf8574_ioctl() 395 err = pcf8574_get(unitp, &byte); in pcf8574_ioctl() 404 unitp->pcf8574_name, byte)); in pcf8574_ioctl() 408 unitp->pcf8574_name, byte)); in pcf8574_ioctl() 437 err = pcf8574_get(unitp, &byte); in pcf8574_ioctl() 447 byte = PCF8574_BIT_WRITE_MASK(byte, ioctl_bit.bit_num, in pcf8574_ioctl() 452 err = pcf8574_set(unitp, byte); in pcf8574_ioctl() [all …]
|
/illumos-gate/usr/src/lib/iconv_modules/ko/common/ |
H A D | njh_to_utf_sub.c | 48 if (njh_code.byte.byte3 == NJH_UDC_SEG) { in _johap92_to_utf8() 49 if ((njh_code.byte.byte4 < NJH_UDC_OFFSET1_START) || in _johap92_to_utf8() 50 (NJH_UDC_OFFSET2_END < njh_code.byte.byte4) || in _johap92_to_utf8() 51 ((NJH_UDC_OFFSET1_END < njh_code.byte.byte4) && in _johap92_to_utf8() 52 (njh_code.byte.byte4 < NJH_UDC_OFFSET2_START))) { in _johap92_to_utf8() 59 if (njh_code.byte.byte4 >= NJH_UDC_OFFSET2_START) in _johap92_to_utf8() 61 (int)(njh_code.byte.byte4 - NJH_UDC_OFFSET2_START); in _johap92_to_utf8() 64 (int)(njh_code.byte.byte4 - NJH_UDC_OFFSET1_START); in _johap92_to_utf8()
|
H A D | utf_to_uhang_sub.c | 63 uhang.byte.byte3 = EUC_UDC_SEG1; in _utf8_to_unified_hangul() 64 uhang.byte.byte4 = (unsigned int)(udc_index + in _utf8_to_unified_hangul() 67 uhang.byte.byte3 = EUC_UDC_SEG2; in _utf8_to_unified_hangul() 68 uhang.byte.byte4 = EUC_UDC_OFFSET_START + in _utf8_to_unified_hangul() 78 if(utfcode.byte.byte1 ==0 && utfcode.byte.byte2 ==0 && utfcode.byte.byte3 ==0) in _utf8_to_unified_hangul()
|
H A D | euc_to_utf_main.c | 97 euc_code.byte.byte3 = *ib; in _icv_iconv() 98 euc_code.byte.byte4 = *(ib + 1); in _icv_iconv() 114 if((char)utf_code.byte.byte2 != '\0') in _icv_iconv() 118 *ob++ = (char)utf_code.byte.byte2; in _icv_iconv() 119 if((char)utf_code.byte.byte3 != '\0') in _icv_iconv() 126 *ob++ = (char)utf_code.byte.byte3; in _icv_iconv() 127 *ob++ = (char)utf_code.byte.byte4; in _icv_iconv()
|
/illumos-gate/usr/src/uts/sun4u/io/i2c/clients/ |
H A D | ssc100.c | 307 uchar_t byte; in ssc100_ioctl() local 336 err = ssc100_get(unitp, &byte); in ssc100_ioctl() 343 ioctl_port.value = byte; in ssc100_ioctl() 352 byte)); in ssc100_ioctl() 389 err = ssc100_get(unitp, &byte); in ssc100_ioctl() 397 unitp->ssc100_name, byte)); in ssc100_ioctl() 401 unitp->ssc100_name, byte)); in ssc100_ioctl() 428 err = ssc100_get(unitp, &byte); in ssc100_ioctl() 437 byte = SSC100_BIT_WRITE_MASK(byte, ioctl_bit.bit_num, in ssc100_ioctl() 442 err = ssc100_set(unitp, byte); in ssc100_ioctl() [all …]
|
H A D | pcf8574.c | 297 uchar_t byte; in pcf8574_ioctl() local 327 err = pcf8574_get(unitp, &byte); in pcf8574_ioctl() 335 ioctl_port.value = byte; in pcf8574_ioctl() 345 byte)); in pcf8574_ioctl() 385 err = pcf8574_get(unitp, &byte); in pcf8574_ioctl() 394 unitp->pcf8574_name, byte)); in pcf8574_ioctl() 398 unitp->pcf8574_name, byte)); in pcf8574_ioctl() 427 err = pcf8574_get(unitp, &byte); in pcf8574_ioctl() 436 unitp->pcf8574_name, byte)); in pcf8574_ioctl() 437 byte = PCF8574_BIT_WRITE_MASK(byte, ioctl_bit.bit_num, in pcf8574_ioctl() [all …]
|
/illumos-gate/usr/src/boot/efi/loader/arch/arm64/ |
H A D | start.S | 67 .byte 0 /* Major linker version */ 68 .byte 0 /* Minor linker version */ 109 .byte 0 110 .byte 0 /* Pad to 8 bytes */ 124 .byte 0 125 .byte 0 126 .byte 0 /* Pad to 8 bytes */
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/misc/ |
H A D | magic.tab | 198 &3 byte 3 418 &5 byte 1 547 &4 byte 1 548 &5 byte 2 552 &4 byte 2 553 &5 byte 1 1052 0 byte 1 1338 0 byte 0 1340 0 byte 0 1403 0 byte 0 [all …]
|
/illumos-gate/usr/src/uts/common/inet/ip/ |
H A D | inet_ntop.c | 145 long byte; in str2inet_addr() local 150 if (ddi_strtol(cp, &end, 10, &byte) != 0 || byte < 0 || in str2inet_addr() 151 byte > 255) { in str2inet_addr() 154 addr = (addr << 8) | (uint8_t)byte; in str2inet_addr() 270 long byte; in __inet_pton() local 323 if ((error = ddi_strtol(inp, &end, 16, &byte)) != 0) { in __inet_pton() 326 byte = 0; in __inet_pton() 328 if (byte < 0 || byte > 0x0ffff) { in __inet_pton() 332 v6buf.v6words_u[i] = (uint16_t)byte; in __inet_pton() 334 v6buf.v6words_u[i] = htons((uint16_t)byte); in __inet_pton() [all …]
|
/illumos-gate/usr/src/lib/iconv_modules/th_TH/common/ |
H A D | 838_to_874_sub.c | 53 if ((EUC_UDC_SEG1 == euc_code.byte.byte3) || in _838_to_874() 54 (EUC_UDC_SEG2 == euc_code.byte.byte3)) { in _838_to_874() 55 if ((euc_code.byte.byte4 < EUC_UDC_OFFSET_START) || in _838_to_874() 56 (EUC_UDC_OFFSET_END < euc_code.byte.byte4)) { in _838_to_874() 63 udc_index = (euc_code.byte.byte3 == EUC_UDC_SEG1) ? in _838_to_874() 65 udc_index += (int)(euc_code.byte.byte4 - EUC_UDC_OFFSET_START); in _838_to_874()
|
H A D | 874_to_838_sub.c | 53 if ((EUC_UDC_SEG1 == euc_code.byte.byte3) || in _874_to_838() 54 (EUC_UDC_SEG2 == euc_code.byte.byte3)) { in _874_to_838() 55 if ((euc_code.byte.byte4 < EUC_UDC_OFFSET_START) || in _874_to_838() 56 (EUC_UDC_OFFSET_END < euc_code.byte.byte4)) { in _874_to_838() 63 udc_index = (euc_code.byte.byte3 == EUC_UDC_SEG1) ? in _874_to_838() 65 udc_index += (int)(euc_code.byte.byte4 - EUC_UDC_OFFSET_START); in _874_to_838()
|
H A D | euc_to_utf_sub.c | 49 if ((EUC_UDC_SEG1 == euc_code.byte.byte3) || in _eucTH_to_utf8() 50 (EUC_UDC_SEG2 == euc_code.byte.byte3)) { in _eucTH_to_utf8() 51 if ((euc_code.byte.byte4 < EUC_UDC_OFFSET_START) || in _eucTH_to_utf8() 52 (EUC_UDC_OFFSET_END < euc_code.byte.byte4)) { in _eucTH_to_utf8() 59 udc_index = (euc_code.byte.byte3 == EUC_UDC_SEG1) ? in _eucTH_to_utf8() 61 udc_index += (int)(euc_code.byte.byte4 - EUC_UDC_OFFSET_START); in _eucTH_to_utf8()
|