Home | Namespaces | Hierarchy | Alphabetical List | Class list | Files | Namespace Members | Class members | File members

fast_atof.h File Reference

#include <stdlib.h>
#include "irrMath.h"

Go to the source code of this file.

Namespaces

namespace  irr
namespace  irr::core

Functions

float fast_atof (const char *c)
const char * fast_atof_move (const char *c, float &out)
u32 strtol10 (const char *in, const char **out=0)

Variables

const float fast_atof_table [16]


Function Documentation

float irr::core::fast_atof const char *  c  )  [inline]
 

Definition at line 106 of file fast_atof.h.

References irr::core::fast_atof_move().

const char* irr::core::fast_atof_move const char *  c,
float &  out
[inline]
 

Provides a fast function for converting a string into a float, about 6 times faster than atof in win32.

Definition at line 56 of file fast_atof.h.

References irr::core::fast_atof_table, and irr::core::strtol10().

Referenced by irr::core::fast_atof(), and irr::scene::quake3::getAsFloat().

u32 irr::core::strtol10 const char *  in,
const char **  out = 0
[inline]
 

Definition at line 36 of file fast_atof.h.

Referenced by irr::core::fast_atof_move().


Variable Documentation

const float irr::core::fast_atof_table[16]
 

Initial value:

 {
        0.f,
        0.1f,
        0.01f,
        0.001f,
        0.0001f,
        0.00001f,
        0.000001f,
        0.0000001f,
        0.00000001f,
        0.000000001f,
        0.0000000001f,
        0.00000000001f,
        0.000000000001f,
        0.0000000000001f,
        0.00000000000001f,
        0.000000000000001f
}

Definition at line 17 of file fast_atof.h.

Referenced by irr::core::fast_atof_move().


The Irrlicht Engine
The Irrlicht Engine Documentation © 2003-2008 by Nikolaus Gebhardt. Generated on Sun Jun 1 07:59:09 2008 by Doxygen (1.4.2)