tclStrToD.c File Reference

#include <tclInt.h>
#include <stdio.h>
#include <stdlib.h>
#include <float.h>
#include <limits.h>
#include <math.h>
#include <ctype.h>
#include <tommath.h>

Go to the source code of this file.

Defines

#define NAN_START   0x7ff8
#define NAN_MASK   (((Tcl_WideUInt) 1) << 51)
#define MAXPOW   22
#define ALL_BITS   (~(Tcl_WideUInt)0)
#define MOST_BITS   (ALL_BITS >> 1)

Functions

int TclParseNumber (Tcl_Interp *interp, Tcl_Obj *objPtr, const char *expected, const char *bytes, int numBytes, const char **endPtrPtr, int flags)
int TclDoubleDigits (char *buffer, double v, int *signum)
void TclInitDoubleConversion (void)
void TclFinalizeDoubleConversion (void)
int Tcl_InitBignumFromDouble (Tcl_Interp *interp, double d, mp_int *b)
double TclBignumToDouble (mp_int *a)
double TclCeil (mp_int *a)
double TclFloor (mp_int *a)
void TclFormatNaN (double value, char *buffer)
int TclNokia770Doubles (void)


Define Documentation

#define ALL_BITS   (~(Tcl_WideUInt)0)

#define MAXPOW   22

Definition at line 85 of file tclStrToD.c.

Referenced by TclInitDoubleConversion().

#define MOST_BITS   (ALL_BITS >> 1)

Referenced by TclParseNumber().

#define NAN_MASK   (((Tcl_WideUInt) 1) << 51)

Definition at line 74 of file tclStrToD.c.

#define NAN_START   0x7ff8

Definition at line 73 of file tclStrToD.c.


Function Documentation

int Tcl_InitBignumFromDouble ( Tcl_Interp interp,
double  d,
mp_int b 
)

double TclBignumToDouble ( mp_int a  ) 

double TclCeil ( mp_int a  ) 

int TclDoubleDigits ( char *  buffer,
double  v,
int *  signum 
)

void TclFinalizeDoubleConversion ( void   ) 

Definition at line 2249 of file tclStrToD.c.

References mp_clear, and Tcl_Free().

Referenced by Tcl_Finalize().

double TclFloor ( mp_int a  ) 

void TclFormatNaN ( double  value,
char *  buffer 
)

Definition at line 2655 of file tclStrToD.c.

References TCL_LL_MODIFIER.

Referenced by Tcl_PrintDouble().

void TclInitDoubleConversion ( void   ) 

Definition at line 2128 of file tclStrToD.c.

References ckalloc, DIGIT_BIT, MAXPOW, mp_init, mp_set, mp_sqr, and Tcl_Panic().

Referenced by TclInitSubsystems().

int TclNokia770Doubles ( void   ) 

Definition at line 2718 of file tclStrToD.c.



Generated on Wed Mar 12 12:18:33 2008 by  doxygen 1.5.1