pintos/src/lib/arithmetic.c File Reference

#include <stdint.h>

Go to the source code of this file.

Functions

static uint32_t divl (uint64_t n, uint32_t d)
static int nlz (uint32_t x)
static uint64_t udiv64 (uint64_t n, uint64_t d)
static uint32_t umod64 (uint64_t n, uint64_t d)
static int64_t sdiv64 (int64_t n, int64_t d)
static int32_t smod64 (int64_t n, int64_t d)
long long __divdi3 (long long n, long long d)
long long __moddi3 (long long n, long long d)
unsigned long long __udivdi3 (unsigned long long n, unsigned long long d)
unsigned long long __umoddi3 (unsigned long long n, unsigned long long d)


Function Documentation

long long __divdi3 ( long long  n,
long long  d 
)

Definition at line 166 of file arithmetic.c.

References sdiv64().

long long __moddi3 ( long long  n,
long long  d 
)

Definition at line 173 of file arithmetic.c.

References smod64().

unsigned long long __udivdi3 ( unsigned long long  n,
unsigned long long  d 
)

Definition at line 180 of file arithmetic.c.

References udiv64().

unsigned long long __umoddi3 ( unsigned long long  n,
unsigned long long  d 
)

Definition at line 187 of file arithmetic.c.

References umod64().

static uint32_t divl ( uint64_t  n,
uint32_t  d 
) [inline, static]

Definition at line 27 of file arithmetic.c.

Referenced by udiv64().

static int nlz ( uint32_t  x  )  [static]

Definition at line 43 of file arithmetic.c.

Referenced by udiv64().

static int64_t sdiv64 ( int64_t  n,
int64_t  d 
) [static]

Definition at line 141 of file arithmetic.c.

References udiv64().

Referenced by __divdi3(), and smod64().

static int32_t smod64 ( int64_t  n,
int64_t  d 
) [static]

Definition at line 152 of file arithmetic.c.

References sdiv64().

Referenced by __moddi3().

static uint64_t udiv64 ( uint64_t  n,
uint64_t  d 
) [static]

Definition at line 79 of file arithmetic.c.

References divl(), nlz(), and s.

Referenced by __udivdi3(), sdiv64(), and umod64().

static uint32_t umod64 ( uint64_t  n,
uint64_t  d 
) [static]

Definition at line 133 of file arithmetic.c.

References udiv64().

Referenced by __umoddi3().


Generated on Mon Jan 10 16:43:58 2011 for Pintos by  doxygen 1.5.6