Changeset 228:a8304c57f9d8
- 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
| r227 |
r228 |
|
| 258 | 258 | |
|---|
| 259 | 259 | class 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 | |
|---|
| 260 | 268 | this( float value ){ |
|---|
| 261 | 269 | super(value); |
|---|
| … | … | |
| 272 | 280 | return null; |
|---|
| 273 | 281 | } |
|---|
| | 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 | |
|---|
| 274 | 291 | } |
|---|
| 275 | 292 | class Long : ValueWrapperT!(long) { |
|---|
| … | … | |
| 752 | 769 | |
|---|
| 753 | 770 | size_t RuntimeTotalMemory(){ |
|---|
| 754 | | GCStats s;// = gc_stats(); |
|---|
| | 771 | GCStats s = gc_stats(); |
|---|
| 755 | 772 | return s.poolsize; |
|---|
| 756 | 773 | } |
|---|