home *** CD-ROM | disk | FTP | other *** search
/ Total Destruction / Total_Destruction.iso / addons / Lccwin32.exe / Lccwin32 / lccpub / lib / src / allshr.asm < prev    next >
Encoding:
Assembly Source File  |  1997-08-21  |  328 b   |  22 lines

  1.     .file    "allshar.asm"
  2.     .text
  3.     .globl    __allshr
  4. __allshr:
  5.     cmpb   $64,%cl 
  6.     jae    _$L1 
  7.     cmpb   $32,%cl 
  8.     jae    _$L2 
  9.     shrdl  %cl,%edx,%eax 
  10.     sarl   %cl,%edx 
  11.     ret     
  12. _$L2:
  13.     movl    %edx,%eax 
  14.     sarl   $31,%edx 
  15.     andb   $31,%cl 
  16.     sarl   %cl,%eax 
  17.     ret     
  18. _$L1:
  19.     sarl   $31,%edx 
  20.     movl   %edx,%eax 
  21.     ret     
  22.