+++ /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
-# MathMultS64x64.S\r
-#\r
-# Abstract:\r
-#\r
-# 64-bit Math Worker Function.\r
-# Multiplies a 64-bit signed or unsigned value by a 64-bit signed or unsigned value\r
-# and returns a 64-bit result\r
-#\r
-#------------------------------------------------------------------------------\r
-\r
- .686:\r
- .code:\r
-\r
-ASM_GLOBAL ASM_PFX(_mulll), ASM_PFX(MultS64x64)\r
-\r
-#------------------------------------------------------------------------------\r
-#\r
-# void __cdecl __mulll (void)\r
-#\r
-#------------------------------------------------------------------------------\r
-ASM_PFX(__mulll):\r
- # Original local stack when calling __mulll\r
- # -----------------\r
- # | |\r
- # |---------------|\r
- # | |\r
- # |--Multiplier --|\r
- # | |\r
- # |---------------|\r
- # | |\r
- # |--Multiplicand-|\r
- # | |\r
- # |---------------|\r
- # | ReturnAddr** |\r
- # ESP---->|---------------|\r
- #\r
-\r
- #\r
- # Set up the local stack for Multiplicand parameter\r
- #\r
- movl 16(%esp), %eax\r
- push %eax\r
- movl 16(%esp), %eax\r
- push %eax\r
-\r
- #\r
- # Set up the local stack for Multiplier parameter\r
- #\r
- movl 16(%esp), %eax\r
- push %eax\r
- movl 16(%esp), %eax\r
- push %eax\r
-\r
- #\r
- # Call native MulS64x64 of BaseLib\r
- #\r
- jmp ASM_PFX(MultS64x64)\r
-\r
- #\r
- # Adjust stack\r
- #\r
- add $16, %esp\r
-\r
- ret $16\r