Softint
[Emulation Libraries]


Files

file  division.c
file  division.h

Defines

#define ABSVAL(x)   ( (x) > 0 ? (x) : -(x))
#define SGN(x)   ( (x) >= 0 ? 1 : 0 )

Functions

static unsigned int divandmod32 (unsigned int a, unsigned int b, unsigned int *remainder)
static unsigned long long divandmod64 (unsigned long long a, unsigned long long b, unsigned long long *remainder)
int __divsi3 (int a, int b)
long long __divdi3 (long long a, long long b)
unsigned int __udivsi3 (unsigned int a, unsigned int b)
unsigned long long __udivdi3 (unsigned long long a, unsigned long long b)
int __modsi3 (int a, int b)
long long __moddi3 (long long a, long long b)
unsigned int __umodsi3 (unsigned int a, unsigned int b)
unsigned long long __umoddi3 (unsigned long long a, unsigned long long b)
unsigned long long __udivmoddi3 (unsigned long long a, unsigned long long b, unsigned long long *c)

Define Documentation

#define ABSVAL  )     ( (x) > 0 ? (x) : -(x))
 

Definition at line 39 of file division.c.

Referenced by __divdi3(), and __divsi3().

#define SGN  )     ( (x) >= 0 ? 1 : 0 )
 

Definition at line 40 of file division.c.

Referenced by __divdi3(), __divsi3(), __moddi3(), and __modsi3().


Function Documentation

static unsigned int divandmod32 unsigned int  a,
unsigned int  b,
unsigned int *  remainder
[static]
 

Definition at line 42 of file division.c.

Referenced by __divsi3(), __modsi3(), __udivsi3(), and __umodsi3().

static unsigned long long divandmod64 unsigned long long  a,
unsigned long long  b,
unsigned long long *  remainder
[static]
 

Definition at line 76 of file division.c.

Referenced by __divdi3(), __moddi3(), __udivdi3(), __udivmoddi3(), and __umoddi3().

int __divsi3 int  a,
int  b
 

Definition at line 110 of file division.c.

References ABSVAL, divandmod32(), and SGN.

Here is the call graph for this function:

long long __divdi3 long long  a,
long long  b
 

Definition at line 122 of file division.c.

References ABSVAL, divandmod64(), and SGN.

Here is the call graph for this function:

unsigned int __udivsi3 unsigned int  a,
unsigned int  b
 

Definition at line 134 of file division.c.

References divandmod32().

Here is the call graph for this function:

unsigned long long __udivdi3 unsigned long long  a,
unsigned long long  b
 

Definition at line 141 of file division.c.

References divandmod64().

Here is the call graph for this function:

int __modsi3 int  a,
int  b
 

Definition at line 148 of file division.c.

References divandmod32(), and SGN.

Here is the call graph for this function:

long long __moddi3 long long  a,
long long  b
 

Definition at line 162 of file division.c.

References divandmod64(), and SGN.

Here is the call graph for this function:

unsigned int __umodsi3 unsigned int  a,
unsigned int  b
 

Definition at line 176 of file division.c.

References divandmod32().

Here is the call graph for this function:

unsigned long long __umoddi3 unsigned long long  a,
unsigned long long  b
 

Definition at line 184 of file division.c.

References divandmod64().

Here is the call graph for this function:

unsigned long long __udivmoddi3 unsigned long long  a,
unsigned long long  b,
unsigned long long *  c
 

Definition at line 191 of file division.c.

References divandmod64().

Here is the call graph for this function:


Generated on Sun Jun 18 17:56:55 2006 for HelenOS Userspace (ia32) by  doxygen 1.4.6