Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

asm.h File Reference

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

Defines

#define size_t   unsigned int
#define NULL   0
#define COMMON(x)
#define memcpy(t, f, n)
#define __constant_count_memset(s, c, count)   __memset_generic((s),(c),(count))
#define COMMON(x)
#define __constant_c_x_memset(s, c, count)
#define __memset(s, c, count)
#define __HAVE_ARCH_MEMSET
#define memset(s, c, count)

Functions

void outb (unsigned short int value, unsigned int port)
unsigned char inb (unsigned int port)
void * __memcpy (void *to, const void *from, size_t n)
void * __constant_memcpy (void *to, const void *from, size_t n)
void * memmove (void *dest, const void *src, size_t n)
void * __memset_generic (void *s, char c, size_t count)
void * __constant_c_memset (void *s, unsigned long c, size_t count)
void * __constant_c_and_count_memset (void *s, unsigned long pattern, size_t count)


Define Documentation

#define __constant_c_x_memset s,
c,
count   
 

Value:

(__builtin_constant_p(count) ? \
 __constant_c_and_count_memset((s),(c),(count)) : \
 __constant_c_memset((s),(c),(count)))

#define __constant_count_memset s,
c,
count       __memset_generic((s),(c),(count))
 

#define __HAVE_ARCH_MEMSET
 

#define __memset s,
c,
count   
 

Value:

(__builtin_constant_p(count) ? \
 __constant_count_memset((s),(c),(count)) : \
 __memset_generic((s),(c),(count)))

#define COMMON  
 

Value:

__asm__  __volatile__( \
        "rep ; stosl" \
        x \
        : "=&c" (d0), "=&D" (d1) \
        : "a" (pattern),"0" (count/4),"1" ((long) s) \
        : "memory")

#define COMMON  
 

Value:

__asm__ __volatile__( \
        "rep ; movsl" \
        x \
        : "=&c" (d0), "=&D" (d1), "=&S" (d2) \
        : "0" (n/4),"1" ((long) to),"2" ((long) from) \
        : "memory");

#define memcpy t,
f,
 
 

Value:

(__builtin_constant_p(n) ? \
 __constant_memcpy((t),(f),(n)) : \
 __memcpy((t),(f),(n)))

#define memset s,
c,
count   
 

Value:

(__builtin_constant_p(c) ? \
 __constant_c_x_memset((s),(0x01010101UL*(unsigned char)(c)),(count)) : \
 __memset((s),(c),(count)))

#define NULL   0
 

#define size_t   unsigned int
 


Function Documentation

void* __constant_c_and_count_memset void *    s,
unsigned long    pattern,
size_t    count
[inline, static]
 

void* __constant_c_memset void *    s,
unsigned long    c,
size_t    count
[inline, static]
 

void* __constant_memcpy void *    to,
const void *    from,
size_t    n
[inline, static]
 

void* __memcpy void *    to,
const void *    from,
size_t    n
[inline, static]
 

void* __memset_generic void *    s,
char    c,
size_t    count
[inline, static]
 

unsigned char inb unsigned int    port [inline]
 

void* memmove void *    dest,
const void *    src,
size_t    n
[inline, static]
 

void outb unsigned short int    value,
unsigned int    port
[inline]
 


Torsion Operating System, Copyright (C) 2000-2002 Dan Helfman