Main Page | Class Hierarchy | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals

cmpsi2.c File Reference

Go to the source code of this file.

Functions

 __asm__ ("\n\ .section .text\n\ \n\ .global ___cmpsi2\n\ \n\ ___cmpsi2:\n\ \n\ sub.w r3,r1\n\ subx.b r2l,r0l\n\ subx.b r2h,r0h\n\ \n\ blt else_0\n\ \n\ beq else_1\n\ \n\ ; First operand greater than second operand\n\ \n\ mov.w #1,r0\n\ rts\n\ \n\ else_1:\n\ \n\ ; First operand equal to second operand\n\ \n\ sub.w r0,r0\n\ rts\n\ \n\ endif_1:\n\ \n\ else_0:\n\ \n\ ; First operand less than second operand\n\ \n\ mov.w #-1,r0\n\ rts\n\ \n\ endif_0:\n\ \n\ ; Not reached\n\ ")


Function Documentation

__asm__ "\n\ .section .text\n\\n\ .global ___cmpsi2\n\\n\___cmpsi2:\n\\n\ sub.w   r3,
r1\n\subx.b  r2l,
r0l\n\subx.b  r2h,
r0h\n\\n\blt else_0\n\\n\beq else_1\n\\n\;First operand greater than second operand\n\\n\mov.w#  1,
r0\n\rts\n\\n\else_1:\n\\n\;First operand equal to second operand\n\\n\sub.w  r0,
r0\n\rts\n\\n\endif_1:\n\\n\else_0:\n\\n\;First operand less than second operand\n\\n\mov.w#-  1,
r0\n\rts\n\\n\endif_0:\n\\n\;Not reached\n\" 
 


Generated on Fri Feb 25 08:02:44 2005 for brickos by  doxygen 1.3.9.1