+++ /dev/null
-#------------------------------------------------------------------------------\r
-#\r
-# Copyright (c) 2009 - 2011, Intel Corporation. All rights reserved.<BR>\r
-# This program and the accompanying materials are licensed and made available\r
-# under the terms and conditions of the BSD License which accompanies this\r
-# distribution. The full text of the license may be found at\r
-# http://opensource.org/licenses/bsd-license.php.\r
-#\r
-# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-#\r
-# Module Name:\r
-#\r
-# MathLShiftS64.S\r
-#\r
-# Abstract:\r
-#\r
-# 64-bit Math Worker Function.\r
-# Shifts a 64-bit signed value left by a certain number of bits.\r
-#\r
-#------------------------------------------------------------------------------\r
-\r
- .686:\r
- .code:\r
-\r
-ASM_GLOBAL ASM_PFX(__ashldi3)\r
-\r
-#------------------------------------------------------------------------------\r
-#\r
-# void __cdecl __ashldi3 (void)\r
-#\r
-#------------------------------------------------------------------------------\r
-ASM_PFX(__ashldi3):\r
- #\r
- # Handle shifting of 64 or more bits (return 0)\r
- #\r
- cmpb $64, %cl\r
- jae ReturnZero\r
-\r
- #\r
- # Handle shifting of between 0 and 31 bits\r
- #\r
- cmpb $32, %cl\r
- jae More32\r
- shld %cl, %eax, %edx\r
- shl %cl, %eax\r
- ret\r
-\r
- #\r
- # Handle shifting of between 32 and 63 bits\r
- #\r
-More32:\r
- movl %eax, %edx\r
- xor %eax, %eax\r
- and $31, %cl\r
- shl %cl, %edx\r
- ret\r
-\r
-ReturnZero:\r
- xor %eax, %eax\r
- xor %edx, %edx\r
- ret\r