X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=MdePkg%2FLibrary%2FBaseLib%2FDivS64x64Remainder.c;h=424d1dceddebe0121a480f89f20fc3651ab8a9f6;hp=d8e2a81e4c5240cb20d164d359828b439057c2ab;hb=9095d37b8fe5bfc3d02adad6ba7fd7359ebc0107;hpb=e1f414b6a7d8a0424e0e01f655b09a4612b4d0e8 diff --git a/MdePkg/Library/BaseLib/DivS64x64Remainder.c b/MdePkg/Library/BaseLib/DivS64x64Remainder.c index d8e2a81e4c..424d1dcedd 100644 --- a/MdePkg/Library/BaseLib/DivS64x64Remainder.c +++ b/MdePkg/Library/BaseLib/DivS64x64Remainder.c @@ -1,21 +1,19 @@ /** @file Math worker functions. - Copyright (c) 2006, Intel Corporation
- All rights reserved. This program and the accompanying materials + Copyright (c) 2006 - 2018, 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 - http://opensource.org/licenses/bsd-license.php + http://opensource.org/licenses/bsd-license.php. THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. **/ -// -// Include common header file for this module. -// -#include "CommonHeader.h" + + #include "BaseLibInternals.h" @@ -28,6 +26,10 @@ NULL, then the 64-bit signed remainder is returned in Remainder. This function returns the 64-bit signed quotient. + It is the caller's responsibility to not call this function with a Divisor of 0. + If Divisor is 0, then the quotient and remainder should be assumed to be + the largest negative integer. + If Divisor is 0, then ASSERT(). @param Dividend A 64-bit signed value.