VLSI Solution Oy / MegaLib Documentation

stdlib.h File Reference

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

Go to the source code of this file.

Defines

#define NULL   0
#define RAND_MAX   0x7fff
#define abort()   exit(-1)
#define EXIT_FAILURE   1
#define EXIT_SUCCESS   0
#define abs(a)   __builtin_abs(a)
#define labs(a)   __builtin_labs(a)
#define strtoul(a, b, c)   (unsigned long)strtol(a,b,c)
#define RANDOM_MAX   0x7fffffffL
#define qsorty(b, n, s, c)   qsort((b),(n),-(s),(c))

Typedefs

typedef unsigned int size_t

Functions

int rand (void)
void srand (register __a0 unsigned int seed)
void exit (register __a0 int exitValue)
__near int atoi (__near const char *s)
__near long strtol (__near const char *s, __near char *__near *endp, int base)
__near long random (void)
__near void srandom (register __a unsigned long x)
unsigned short QsortLog2 (register __a0 short x)
void qsort (void *base, int nmemb, int size, int(*compar)(const void *, const void *))
short CountBitsLong (register __a unsigned long val)

Variables

__y short rand_seed
__near long random_state


Define Documentation

 
#define abort  )     exit(-1)
 

Definition at line 19 of file stdlib.h.

#define abs  )     __builtin_abs(a)
 

Definition at line 24 of file stdlib.h.

#define EXIT_FAILURE   1
 

Definition at line 21 of file stdlib.h.

#define EXIT_SUCCESS   0
 

Definition at line 22 of file stdlib.h.

#define labs  )     __builtin_labs(a)
 

Definition at line 25 of file stdlib.h.

#define NULL   0
 

Definition at line 10 of file stdlib.h.

#define qsorty b,
n,
s,
 )     qsort((b),(n),-(s),(c))
 

Definition at line 40 of file stdlib.h.

#define RAND_MAX   0x7fff
 

Definition at line 13 of file stdlib.h.

#define RANDOM_MAX   0x7fffffffL
 

Definition at line 31 of file stdlib.h.

#define strtoul a,
b,
 )     (unsigned long)strtol(a,b,c)
 

Definition at line 29 of file stdlib.h.


Typedef Documentation

typedef unsigned int size_t
 

Definition at line 6 of file stdlib.h.


Function Documentation

__near int atoi __near const char *  s  ) 
 

short CountBitsLong register __a unsigned long  val  ) 
 

Counts the number of 1-bits in a 32-bit value. Takes 12 to 84 cycles.

void exit register __a0 int  exitValue  ) 
 

void qsort void *  base,
int  nmemb,
int  size,
int(*)(const void *, const void *)  compar
 

unsigned short QsortLog2 register __a0 short  x  ) 
 

int rand void   ) 
 

__near long random void   ) 
 

void srand register __a0 unsigned int  seed  ) 
 

__near void srandom register __a unsigned long  x  ) 
 

__near long strtol __near const char *  s,
__near char *__near *  endp,
int  base
 


Variable Documentation

__y short rand_seed
 

__near long random_state
 


All software copyright 2005-2006 VLSI Solution OY. Redistribution of this software is strictly forbidden.