ns2 Network Simulator      C++ Class Hierarchy of version ns-snapshot-20040722
Home |  Source Code |  Manual |  FAQ |  Mailing List Archive |  Search |  Download | 


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

ns-2/lib/builtin.h File Reference

#include <stddef.h>
#include <stdio.h>

Defines

#define _builtin_h   1
#define __attribute__(x)

Typedefs

typedef void(* one_arg_error_handler_t )(const char *)
typedef void(* two_arg_error_handler_t )(const char *, const char *)

Functions

long gcd (long, long)
long lg (unsigned long)
double pow (double, long)
long pow (long, long)
double start_timer ()
double return_elapsed_time (double last_time=0.0)
char * dtoa (double x, char cvt= 'g', int width=0, int prec=6)
unsigned int hashpjw (const char *)
unsigned int multiplicativehash (int)
unsigned int foldhash (double)
void default_one_arg_error_handler (const char *) __attribute__((noreturn))
void default_two_arg_error_handler (const char *, const char *) __attribute__((noreturn))
two_arg_error_handler_t set_lib_error_handler (two_arg_error_handler_t f)
short abs (short arg)
int sign (long arg)
int sign (double arg)
long sqr (long arg)
double sqr (double arg)
int even (long arg)
int odd (long arg)
long lcm (long x, long y)
void clearbit (long &x, long b)
int testbit (long x, long b)

Variables

two_arg_error_handler_t lib_error_handler
void( setbit )(long &x, long b)

Define Documentation

#define __attribute__  
 

#define _builtin_h   1
 


Typedef Documentation

typedef void(* one_arg_error_handler_t)(const char*)
 

typedef void(* two_arg_error_handler_t)(const char*, const char*)
 


Function Documentation

short abs short    arg [inline]
 

void clearbit long &    x,
long    b
[inline]
 

void default_one_arg_error_handler const char *   
 

void default_two_arg_error_handler const char *   ,
const char *   
 

char* dtoa double    x,
char    cvt = 'g',
int    width = 0,
int    prec = 6
 

int even long    arg [inline]
 

unsigned int foldhash double   
 

long gcd long   ,
long   
 

unsigned int hashpjw const char *   
 

long lcm long    x,
long    y
[inline]
 

long lg unsigned    long
 

unsigned int multiplicativehash int   
 

int odd long    arg [inline]
 

long pow long   ,
long   
 

double pow double   ,
long   
 

double return_elapsed_time double    last_time = 0.0
 

two_arg_error_handler_t set_lib_error_handler two_arg_error_handler_t    f
 

int sign double    arg [inline]
 

int sign long    arg [inline]
 

double sqr double    arg [inline]
 

long sqr long    arg [inline]
 

double start_timer  
 

int testbit long    x,
long    b
[inline]
 


Variable Documentation

two_arg_error_handler_t lib_error_handler
 

void( setbit)(long& x, long b)
 


This document is generated by doxygen.