Changeset 228:a8304c57f9d8

Show
Ignore:
Timestamp:
04/11/08 17:21:55 (5 months ago)
Author:
Frank Benoit <benoit@tionex.de>
branch:
default
Message:

sync with dwt-win

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • dwt/dwthelper/utils.d

    r227 r228  
    258258 
    259259class Float : ValueWrapperT!(float) { 
     260 
     261    public static float POSITIVE_INFINITY = (1.0f / 0.0f); 
     262    public static float NEGATIVE_INFINITY = ((-1.0f) / 0.0f); 
     263    public static float NaN = (0.0f / 0.0f); 
     264    public static float MAX_VALUE = 3.4028235e+38f; 
     265    public static float MIN_VALUE = 1.4e-45f; 
     266    public static int SIZE = 32; 
     267 
    260268    this( float value ){ 
    261269        super(value); 
     
    272280        return null; 
    273281    } 
     282    public static float parseFloat( char[] s ){ 
     283        try{ 
     284            return tango.text.convert.Float.toFloat( s ); 
     285        } 
     286        catch( IllegalArgumentException e ){ 
     287            throw new NumberFormatException( e ); 
     288        } 
     289    } 
     290 
    274291} 
    275292class Long : ValueWrapperT!(long) { 
     
    752769 
    753770size_t RuntimeTotalMemory(){ 
    754     GCStats s;// = gc_stats(); 
     771    GCStats s = gc_stats(); 
    755772    return s.poolsize; 
    756773}