/** @file
Integer Arithmetic Run-time support functions for GCC.
The integer arithmetic routines are used on platforms that don't provide
hardware support for arithmetic operations on some modes..
Copyright (c) 2009 - 2011, Intel Corporation. All rights reserved.<BR>
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
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 <Uefi.h>
#include <Library/DebugLib.h>
#include <sys/EfiCdefs.h>
// Shift Datum left by Count bits.
// ===========================================================================
{
}
{
}
{
}
// Arithmetically shift Datum right by Count bits.
// ===========================================================================
{
}
{
}
{
}
// Return the quotient of the signed division of Dividend and Divisor
// ===========================================================================
{
}
{
return Quotient;
}
{
}
// Logically shift Datum right by Count bits
// ===========================================================================
{
}
{
}
{
}
// Return the remainder of the signed division of Dividend and Divisor
// ===========================================================================
{
return (int) Remainder;
}
{
return Remainder;
}
{
return (long long) Remainder;
}
// These functions return the product of the Multiplicand and Multiplier.
// ===========================================================================
{
}
// Return the quotient of the unsigned division of a and b.
// ===========================================================================
{
}
{
}
{
}
// ===========================================================================
{
return (unsigned int) Remainder;
}
{
return (unsigned long) Remainder;
}
{
return (unsigned long long) Remainder;
}