This commit was manufactured by cvs2svn to create branch 'captive'.
[reactos.git] / lib / string / i386 / tcsrchr.h
diff --git a/lib/string/i386/tcsrchr.h b/lib/string/i386/tcsrchr.h
new file mode 100644 (file)
index 0000000..cc31893
--- /dev/null
@@ -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 */