X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=MdePkg%2FLibrary%2FBaseLib%2FDivS64x64Remainder.c;h=ef759958d91b669e924487ae24ee134697ed375d;hb=5277dc8829cc40fab9e8856d03316bc4c32dba1f;hp=efa091088eb6f912cb5b71a08180bf47a09e9488;hpb=1ea5ca46c7eefe66a01cb4db3b72fc0e5a04e2cb;p=mirror_edk2.git diff --git a/MdePkg/Library/BaseLib/DivS64x64Remainder.c b/MdePkg/Library/BaseLib/DivS64x64Remainder.c index efa091088e..ef759958d9 100644 --- a/MdePkg/Library/BaseLib/DivS64x64Remainder.c +++ b/MdePkg/Library/BaseLib/DivS64x64Remainder.c @@ -1,8 +1,8 @@ /** @file Math worker functions. - Copyright (c) 2006, Intel Corporation
- All rights reserved. This program and the accompanying materials + 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 http://opensource.org/licenses/bsd-license.php @@ -12,6 +12,9 @@ **/ + + + #include "BaseLibInternals.h" /** @@ -23,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.