X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=MdePkg%2FLibrary%2FBaseLib%2FIa32%2FDivS64x64Remainder.c;h=ca150c878bb3f90dc49db4280aa42ebdbfa91e68;hb=bb40027d7c0dc8bf009771e577fedd3ae088eea6;hp=da3afbf95c706ce09eef6c131acc56c7f91cc65c;hpb=e1f414b6a7d8a0424e0e01f655b09a4612b4d0e8;p=mirror_edk2.git diff --git a/MdePkg/Library/BaseLib/Ia32/DivS64x64Remainder.c b/MdePkg/Library/BaseLib/Ia32/DivS64x64Remainder.c index da3afbf95c..ca150c878b 100644 --- a/MdePkg/Library/BaseLib/Ia32/DivS64x64Remainder.c +++ b/MdePkg/Library/BaseLib/Ia32/DivS64x64Remainder.c @@ -1,7 +1,7 @@ /** @file Integer division worker functions for Ia32. - Copyright (c) 2006, Intel Corporation
+ Copyright (c) 2006 - 2008, Intel Corporation
All rights reserved. This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at @@ -10,25 +10,18 @@ THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. - Module Name: DivS64x64Remainder.c - **/ -// -// Include common header file for this module. -// -#include "CommonHeader.h" - -#include "../BaseLibInternals.h" +#include /** Worker function that Divides a 64-bit signed integer by a 64-bit signed integer and generates a 64-bit signed result and a optional 64-bit signed remainder. - This function divides the 64-bit unsigned value Dividend by the 64-bit - unsigned value Divisor and generates a 64-bit unsigned quotient. If Remainder - is not NULL, then the 64-bit unsigned remainder is returned in Remainder. - This function returns the 64-bit unsigned quotient. + This function divides the 64-bit signed value Dividend by the 64-bit + signed value Divisor and generates a 64-bit signed quotient. If Remainder + is not NULL, then the 64-bit signed remainder is returned in Remainder. + This function returns the 64-bit signed quotient. @param Dividend A 64-bit signed value. @param Divisor A 64-bit signed value. @@ -39,6 +32,7 @@ **/ INT64 +EFIAPI InternalMathDivRemS64x64 ( IN INT64 Dividend, IN INT64 Divisor,