mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 22:23:01 +00:00
Create a branch for header work.
svn path=/branches/header-work/; revision=45691
This commit is contained in:
parent
14fe274b1c
commit
9ea495ba33
19538 changed files with 0 additions and 1063950 deletions
6
lib/sdk/crt/string/i386/strcat_asm.s
Normal file
6
lib/sdk/crt/string/i386/strcat_asm.s
Normal file
|
@ -0,0 +1,6 @@
|
|||
/* $Id$
|
||||
*/
|
||||
|
||||
#include "tcscat.h"
|
||||
|
||||
/* EOF */
|
6
lib/sdk/crt/string/i386/strchr_asm.s
Normal file
6
lib/sdk/crt/string/i386/strchr_asm.s
Normal file
|
@ -0,0 +1,6 @@
|
|||
/* $Id$
|
||||
*/
|
||||
|
||||
#include "tcschr.h"
|
||||
|
||||
/* EOF */
|
6
lib/sdk/crt/string/i386/strcmp_asm.s
Normal file
6
lib/sdk/crt/string/i386/strcmp_asm.s
Normal file
|
@ -0,0 +1,6 @@
|
|||
/* $Id$
|
||||
*/
|
||||
|
||||
#include "tcscmp.h"
|
||||
|
||||
/* EOF */
|
6
lib/sdk/crt/string/i386/strcpy_asm.s
Normal file
6
lib/sdk/crt/string/i386/strcpy_asm.s
Normal file
|
@ -0,0 +1,6 @@
|
|||
/* $Id$
|
||||
*/
|
||||
|
||||
#include "tcscpy.h"
|
||||
|
||||
/* EOF */
|
6
lib/sdk/crt/string/i386/strlen_asm.s
Normal file
6
lib/sdk/crt/string/i386/strlen_asm.s
Normal file
|
@ -0,0 +1,6 @@
|
|||
/* $Id$
|
||||
*/
|
||||
|
||||
#include "tcslen.h"
|
||||
|
||||
/* EOF */
|
6
lib/sdk/crt/string/i386/strncat_asm.s
Normal file
6
lib/sdk/crt/string/i386/strncat_asm.s
Normal file
|
@ -0,0 +1,6 @@
|
|||
/* $Id$
|
||||
*/
|
||||
|
||||
#include "tcsncat.h"
|
||||
|
||||
/* EOF */
|
6
lib/sdk/crt/string/i386/strncmp_asm.s
Normal file
6
lib/sdk/crt/string/i386/strncmp_asm.s
Normal file
|
@ -0,0 +1,6 @@
|
|||
/* $Id$
|
||||
*/
|
||||
|
||||
#include "tcsncmp.h"
|
||||
|
||||
/* EOF */
|
6
lib/sdk/crt/string/i386/strncpy_asm.s
Normal file
6
lib/sdk/crt/string/i386/strncpy_asm.s
Normal file
|
@ -0,0 +1,6 @@
|
|||
/* $Id$
|
||||
*/
|
||||
|
||||
#include "tcsncpy.h"
|
||||
|
||||
/* EOF */
|
6
lib/sdk/crt/string/i386/strnlen_asm.s
Normal file
6
lib/sdk/crt/string/i386/strnlen_asm.s
Normal file
|
@ -0,0 +1,6 @@
|
|||
/* $Id$
|
||||
*/
|
||||
|
||||
#include "tcsnlen.h"
|
||||
|
||||
/* EOF */
|
6
lib/sdk/crt/string/i386/strrchr_asm.s
Normal file
6
lib/sdk/crt/string/i386/strrchr_asm.s
Normal file
|
@ -0,0 +1,6 @@
|
|||
/* $Id$
|
||||
*/
|
||||
|
||||
#include "tcsrchr.h"
|
||||
|
||||
/* EOF */
|
59
lib/sdk/crt/string/i386/tchar.h
Normal file
59
lib/sdk/crt/string/i386/tchar.h
Normal file
|
@ -0,0 +1,59 @@
|
|||
/* $Id$
|
||||
*/
|
||||
|
||||
#ifndef __TCHAR_INC_S__
|
||||
#define __TCHAR_INC_S__
|
||||
|
||||
#ifdef _UNICODE
|
||||
|
||||
#define _tcscat _wcscat
|
||||
#define _tcschr _wcschr
|
||||
#define _tcscmp _wcscmp
|
||||
#define _tcscpy _wcscpy
|
||||
#define _tcslen _wcslen
|
||||
#define _tcsncat _wcsncat
|
||||
#define _tcsncmp _wcsncmp
|
||||
#define _tcsncpy _wcsncpy
|
||||
#define _tcsnlen _wcsnlen
|
||||
#define _tcsrchr _wcsrchr
|
||||
|
||||
#define _tscas scasw
|
||||
#define _tlods lodsw
|
||||
#define _tstos stosw
|
||||
|
||||
#define _tsize $2
|
||||
|
||||
#define _treg(_O_) _O_ ## x
|
||||
|
||||
#define _tdec(_O_) sub $2, _O_
|
||||
#define _tinc(_O_) add $2, _O_
|
||||
|
||||
#else
|
||||
|
||||
#define _tcscat _strcat
|
||||
#define _tcschr _strchr
|
||||
#define _tcscmp _strcmp
|
||||
#define _tcscpy _strcpy
|
||||
#define _tcslen _strlen
|
||||
#define _tcsncat _strncat
|
||||
#define _tcsncmp _strncmp
|
||||
#define _tcsncpy _strncpy
|
||||
#define _tcsnlen _strnlen
|
||||
#define _tcsrchr _strrchr
|
||||
|
||||
#define _tscas scasb
|
||||
#define _tlods lodsb
|
||||
#define _tstos stosb
|
||||
|
||||
#define _tsize $1
|
||||
|
||||
#define _treg(_O_) _O_ ## l
|
||||
|
||||
#define _tdec(_O_) dec _O_
|
||||
#define _tinc(_O_) inc _O_
|
||||
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
/* EOF */
|
32
lib/sdk/crt/string/i386/tcscat.h
Normal file
32
lib/sdk/crt/string/i386/tcscat.h
Normal file
|
@ -0,0 +1,32 @@
|
|||
/* $Id$
|
||||
*/
|
||||
|
||||
#include "tchar.h"
|
||||
|
||||
.globl _tcscat
|
||||
|
||||
_tcscat:
|
||||
push %esi
|
||||
push %edi
|
||||
mov 0x0C(%esp), %edi
|
||||
mov 0x10(%esp), %esi
|
||||
|
||||
xor %eax, %eax
|
||||
mov $-1, %ecx
|
||||
cld
|
||||
|
||||
repne _tscas
|
||||
_tdec(%edi)
|
||||
|
||||
.L1:
|
||||
_tlods
|
||||
_tstos
|
||||
test %_treg(a), %_treg(a)
|
||||
jnz .L1
|
||||
|
||||
mov 0x0C(%esp), %eax
|
||||
pop %edi
|
||||
pop %esi
|
||||
ret
|
||||
|
||||
/* EOF */
|
30
lib/sdk/crt/string/i386/tcschr.h
Normal file
30
lib/sdk/crt/string/i386/tcschr.h
Normal file
|
@ -0,0 +1,30 @@
|
|||
/* $Id$
|
||||
*/
|
||||
|
||||
#include "tchar.h"
|
||||
|
||||
.globl _tcschr
|
||||
|
||||
_tcschr:
|
||||
push %esi
|
||||
mov 0x8(%esp), %esi
|
||||
mov 0xC(%esp), %edx
|
||||
|
||||
cld
|
||||
|
||||
.L1:
|
||||
_tlods
|
||||
cmp %_treg(a), %_treg(d)
|
||||
je .L2
|
||||
test %_treg(a), %_treg(a)
|
||||
jnz .L1
|
||||
mov _tsize, %esi
|
||||
|
||||
.L2:
|
||||
mov %esi, %eax
|
||||
_tdec(%eax)
|
||||
|
||||
pop %esi
|
||||
ret
|
||||
|
||||
/* EOF */
|
34
lib/sdk/crt/string/i386/tcscmp.h
Normal file
34
lib/sdk/crt/string/i386/tcscmp.h
Normal file
|
@ -0,0 +1,34 @@
|
|||
/* $Id$
|
||||
*/
|
||||
|
||||
#include "tchar.h"
|
||||
|
||||
.globl _tcscmp
|
||||
|
||||
_tcscmp:
|
||||
push %esi
|
||||
push %edi
|
||||
mov 0x0C(%esp), %esi
|
||||
mov 0x10(%esp), %edi
|
||||
xor %eax, %eax
|
||||
cld
|
||||
|
||||
.L1:
|
||||
_tlods
|
||||
_tscas
|
||||
jne .L2
|
||||
test %eax, %eax
|
||||
jne .L1
|
||||
xor %eax, %eax
|
||||
jmp .L3
|
||||
|
||||
.L2:
|
||||
sbb %eax, %eax
|
||||
or $1, %al
|
||||
|
||||
.L3:
|
||||
pop %edi
|
||||
pop %esi
|
||||
ret
|
||||
|
||||
/* EOF */
|
27
lib/sdk/crt/string/i386/tcscpy.h
Normal file
27
lib/sdk/crt/string/i386/tcscpy.h
Normal file
|
@ -0,0 +1,27 @@
|
|||
/* $Id$
|
||||
*/
|
||||
|
||||
#include "tchar.h"
|
||||
|
||||
.globl _tcscpy
|
||||
|
||||
_tcscpy:
|
||||
push %esi
|
||||
push %edi
|
||||
mov 0x0C(%esp), %edi
|
||||
mov 0x10(%esp), %esi
|
||||
cld
|
||||
|
||||
.L1:
|
||||
_tlods
|
||||
_tstos
|
||||
test %_treg(a), %_treg(a)
|
||||
jnz .L1
|
||||
|
||||
mov 0x0C(%esp), %eax
|
||||
|
||||
pop %edi
|
||||
pop %esi
|
||||
ret
|
||||
|
||||
/* EOF */
|
29
lib/sdk/crt/string/i386/tcslen.h
Normal file
29
lib/sdk/crt/string/i386/tcslen.h
Normal file
|
@ -0,0 +1,29 @@
|
|||
/* $Id$
|
||||
*/
|
||||
|
||||
#include "tchar.h"
|
||||
|
||||
.globl _tcslen
|
||||
|
||||
_tcslen:
|
||||
push %edi
|
||||
mov 0x8(%esp), %edi
|
||||
xor %eax, %eax
|
||||
test %edi,%edi
|
||||
jz _tcslen_end
|
||||
|
||||
mov $-1, %ecx
|
||||
cld
|
||||
|
||||
repne _tscas
|
||||
|
||||
not %ecx
|
||||
dec %ecx
|
||||
|
||||
mov %ecx, %eax
|
||||
|
||||
_tcslen_end:
|
||||
pop %edi
|
||||
ret
|
||||
|
||||
/* EOF */
|
42
lib/sdk/crt/string/i386/tcsncat.h
Normal file
42
lib/sdk/crt/string/i386/tcsncat.h
Normal file
|
@ -0,0 +1,42 @@
|
|||
/* $Id$
|
||||
*/
|
||||
|
||||
#include "tchar.h"
|
||||
|
||||
.globl _tcsncat
|
||||
|
||||
_tcsncat:
|
||||
push %esi
|
||||
push %edi
|
||||
mov 0x0C(%esp), %edi
|
||||
mov 0x10(%esp), %esi
|
||||
cld
|
||||
|
||||
xor %eax, %eax
|
||||
mov $-1, %ecx
|
||||
repne _tscas
|
||||
_tdec(%edi)
|
||||
|
||||
mov 0x14(%esp),%ecx
|
||||
|
||||
.L1:
|
||||
dec %ecx
|
||||
js .L2
|
||||
_tlods
|
||||
_tstos
|
||||
test %_treg(a), %_treg(a)
|
||||
jne .L1
|
||||
jmp .L3
|
||||
|
||||
.L2:
|
||||
xor %eax, %eax
|
||||
_tstos
|
||||
|
||||
.L3:
|
||||
mov 0x0C(%esp), %eax
|
||||
pop %edi
|
||||
pop %esi
|
||||
|
||||
ret
|
||||
|
||||
/* EOF */
|
40
lib/sdk/crt/string/i386/tcsncmp.h
Normal file
40
lib/sdk/crt/string/i386/tcsncmp.h
Normal file
|
@ -0,0 +1,40 @@
|
|||
/* $Id$
|
||||
*/
|
||||
|
||||
#include "tchar.h"
|
||||
|
||||
.globl _tcsncmp
|
||||
|
||||
_tcsncmp:
|
||||
push %esi
|
||||
push %edi
|
||||
mov 0x0C(%esp), %esi /* s1 */
|
||||
mov 0x10(%esp), %edi /* s2 */
|
||||
mov 0x14(%esp), %ecx /* n */
|
||||
|
||||
xor %eax,%eax
|
||||
cld
|
||||
|
||||
.L1:
|
||||
dec %ecx
|
||||
js .L2
|
||||
_tlods
|
||||
_tscas
|
||||
jne .L3
|
||||
test %eax, %eax
|
||||
jne .L1
|
||||
|
||||
.L2:
|
||||
xor %eax, %eax
|
||||
jmp .L4
|
||||
|
||||
.L3:
|
||||
sbb %eax, %eax
|
||||
or $1, %al
|
||||
|
||||
.L4:
|
||||
pop %edi
|
||||
pop %esi
|
||||
ret
|
||||
|
||||
/* EOF */
|
34
lib/sdk/crt/string/i386/tcsncpy.h
Normal file
34
lib/sdk/crt/string/i386/tcsncpy.h
Normal file
|
@ -0,0 +1,34 @@
|
|||
/* $Id$
|
||||
*/
|
||||
|
||||
#include "tchar.h"
|
||||
|
||||
.globl _tcsncpy
|
||||
|
||||
_tcsncpy:
|
||||
push %esi
|
||||
push %edi
|
||||
mov 0x0C(%esp), %edi /* s1 */
|
||||
mov 0x10(%esp), %esi /* s2 */
|
||||
mov 0x14(%esp), %ecx /* n */
|
||||
|
||||
xor %eax, %eax
|
||||
cld
|
||||
|
||||
.L1:
|
||||
dec %ecx
|
||||
js .L2
|
||||
_tlods
|
||||
_tstos
|
||||
test %_treg(a), %_treg(a)
|
||||
jnz .L1
|
||||
rep _tstos
|
||||
|
||||
.L2:
|
||||
mov 0x0C(%esp), %eax
|
||||
|
||||
pop %edi
|
||||
pop %esi
|
||||
ret
|
||||
|
||||
/* EOF */
|
30
lib/sdk/crt/string/i386/tcsnlen.h
Normal file
30
lib/sdk/crt/string/i386/tcsnlen.h
Normal file
|
@ -0,0 +1,30 @@
|
|||
/* $Id$
|
||||
*/
|
||||
|
||||
#include "tchar.h"
|
||||
|
||||
.globl _tcsnlen
|
||||
|
||||
_tcsnlen:
|
||||
push %edi
|
||||
mov 0x8(%esp), %edi
|
||||
mov 0xC(%esp), %ecx
|
||||
xor %eax, %eax
|
||||
test %ecx, %ecx
|
||||
jz .L1
|
||||
mov %ecx, %edx
|
||||
|
||||
cld
|
||||
|
||||
repne _tscas
|
||||
|
||||
sete %al
|
||||
sub %ecx, %edx
|
||||
sub %eax, %edx
|
||||
mov %edx, %eax
|
||||
|
||||
.L1:
|
||||
pop %edi
|
||||
ret
|
||||
|
||||
/* EOF */
|
31
lib/sdk/crt/string/i386/tcsrchr.h
Normal file
31
lib/sdk/crt/string/i386/tcsrchr.h
Normal file
|
@ -0,0 +1,31 @@
|
|||
/* $Id$
|
||||
*/
|
||||
|
||||
#include "tchar.h"
|
||||
|
||||
.globl _tcsrchr
|
||||
|
||||
_tcsrchr:
|
||||
push %esi
|
||||
mov 0x8(%esp), %esi
|
||||
mov 0xC(%esp), %edx
|
||||
|
||||
cld
|
||||
mov _tsize, %ecx
|
||||
|
||||
.L1:
|
||||
_tlods
|
||||
cmp %_treg(a), %_treg(d)
|
||||
jne .L2
|
||||
mov %esi, %ecx
|
||||
|
||||
.L2:
|
||||
test %_treg(a), %_treg(a)
|
||||
jnz .L1
|
||||
|
||||
mov %ecx, %eax
|
||||
_tdec(%eax)
|
||||
pop %esi
|
||||
ret
|
||||
|
||||
/* EOF */
|
7
lib/sdk/crt/string/i386/wcscat_asm.s
Normal file
7
lib/sdk/crt/string/i386/wcscat_asm.s
Normal file
|
@ -0,0 +1,7 @@
|
|||
/* $Id$
|
||||
*/
|
||||
|
||||
#define _UNICODE
|
||||
#include "tcscat.h"
|
||||
|
||||
/* EOF */
|
7
lib/sdk/crt/string/i386/wcschr_asm.s
Normal file
7
lib/sdk/crt/string/i386/wcschr_asm.s
Normal file
|
@ -0,0 +1,7 @@
|
|||
/* $Id$
|
||||
*/
|
||||
|
||||
#define _UNICODE
|
||||
#include "tcschr.h"
|
||||
|
||||
/* EOF */
|
7
lib/sdk/crt/string/i386/wcscmp_asm.s
Normal file
7
lib/sdk/crt/string/i386/wcscmp_asm.s
Normal file
|
@ -0,0 +1,7 @@
|
|||
/* $Id$
|
||||
*/
|
||||
|
||||
#define _UNICODE
|
||||
#include "tcscmp.h"
|
||||
|
||||
/* EOF */
|
7
lib/sdk/crt/string/i386/wcscpy_asm.s
Normal file
7
lib/sdk/crt/string/i386/wcscpy_asm.s
Normal file
|
@ -0,0 +1,7 @@
|
|||
/* $Id$
|
||||
*/
|
||||
|
||||
#define _UNICODE
|
||||
#include "tcscpy.h"
|
||||
|
||||
/* EOF */
|
7
lib/sdk/crt/string/i386/wcslen_asm.s
Normal file
7
lib/sdk/crt/string/i386/wcslen_asm.s
Normal file
|
@ -0,0 +1,7 @@
|
|||
/* $Id$
|
||||
*/
|
||||
|
||||
#define _UNICODE
|
||||
#include "tcslen.h"
|
||||
|
||||
/* EOF */
|
7
lib/sdk/crt/string/i386/wcsncat_asm.s
Normal file
7
lib/sdk/crt/string/i386/wcsncat_asm.s
Normal file
|
@ -0,0 +1,7 @@
|
|||
/* $Id$
|
||||
*/
|
||||
|
||||
#define _UNICODE
|
||||
#include "tcsncat.h"
|
||||
|
||||
/* EOF */
|
7
lib/sdk/crt/string/i386/wcsncmp_asm.s
Normal file
7
lib/sdk/crt/string/i386/wcsncmp_asm.s
Normal file
|
@ -0,0 +1,7 @@
|
|||
/* $Id$
|
||||
*/
|
||||
|
||||
#define _UNICODE
|
||||
#include "tcsncmp.h"
|
||||
|
||||
/* EOF */
|
7
lib/sdk/crt/string/i386/wcsncpy_asm.s
Normal file
7
lib/sdk/crt/string/i386/wcsncpy_asm.s
Normal file
|
@ -0,0 +1,7 @@
|
|||
/* $Id$
|
||||
*/
|
||||
|
||||
#define _UNICODE
|
||||
#include "tcsncpy.h"
|
||||
|
||||
/* EOF */
|
7
lib/sdk/crt/string/i386/wcsnlen_asm.s
Normal file
7
lib/sdk/crt/string/i386/wcsnlen_asm.s
Normal file
|
@ -0,0 +1,7 @@
|
|||
/* $Id$
|
||||
*/
|
||||
|
||||
#define _UNICODE
|
||||
#include "tcsnlen.h"
|
||||
|
||||
/* EOF */
|
7
lib/sdk/crt/string/i386/wcsrchr_asm.s
Normal file
7
lib/sdk/crt/string/i386/wcsrchr_asm.s
Normal file
|
@ -0,0 +1,7 @@
|
|||
/* $Id$
|
||||
*/
|
||||
|
||||
#define _UNICODE
|
||||
#include "tcsrchr.h"
|
||||
|
||||
/* EOF */
|
Loading…
Add table
Add a link
Reference in a new issue