Changeset 4089 for trunk/ProjectFortress/LibraryBuiltin
- Timestamp:
- 08/17/09 19:33:56 (3 months ago)
- Location:
- trunk/ProjectFortress/LibraryBuiltin
- Files:
-
- 2 modified
-
CompilerBuiltin.fsi (modified) (3 diffs)
-
CompilerBuiltin.fss (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ProjectFortress/LibraryBuiltin/CompilerBuiltin.fsi
r4087 r4089 22 22 end Object 23 23 24 nanoTime(): RR64 25 24 26 trait String 25 27 asString(): String … … 40 42 41 43 trait ZZ64 extends Number 44 asZZ32(): ZZ32 42 45 end 43 46 44 47 trait ZZ32 extends ZZ64 comprises { IntLiteral } 48 asZZ32(): ZZ32 45 49 asString(): String 46 50 opr |self| : ZZ32 … … 75 79 opr DOT(self, other:RR64): RR64 76 80 opr /(self, other:RR64): RR64 81 opr ^(self, other:RR64): RR64 77 82 end 78 83 -
trunk/ProjectFortress/LibraryBuiltin/CompilerBuiltin.fss
r4087 r4089 18 18 component CompilerBuiltin 19 19 import java com.sun.fortress.nativeHelpers.{simplePrintln.nativePrintln => jPrintln} 20 import java com.sun.fortress.nativeHelpers.{simplePrintZZ32.nativePrintZZ32 => jPrintlnZZ32}21 20 import java com.sun.fortress.nativeHelpers.{simpleConcatenate.nativeConcatenate => jConcatenate} 22 21 import java com.sun.fortress.nativeHelpers.{simpleIntArith.intToString => jIntToString, … … 32 31 simpleIntArith.intNeg => jIntNeg, 33 32 simpleIntArith.parseInt => jParseInt, 34 simpleIntArith.intAbs => jIntAbs} 33 simpleIntArith.intAbs => jIntAbs, 34 simpleIntArith.longToInt => jLongToInt} 35 35 import java com.sun.fortress.nativeHelpers.{simpleDoubleArith.doubleToString => jDoubleToString, 36 36 simpleDoubleArith.doubleAdd => jDoubleAdd, … … 45 45 simpleDoubleArith.doubleNeg => jDoubleNeg, 46 46 simpleDoubleArith.parseDouble => jParseDouble, 47 simpleDoubleArith.doubleAbs => jDoubleAbs} 47 simpleDoubleArith.doubleAbs => jDoubleAbs, 48 simpleDoubleArith.doublePow => jDoublePow, 49 simpleDoubleArith.doubleNanoTime => jNanoTime} 48 50 import AnyType.{Any} 49 51 export CompilerBuiltin 52 53 nanoTime(): RR64 = jNanoTime() 50 54 51 55 trait Object extends Any … … 70 74 71 75 trait ZZ64 extends Number 76 asZZ32(): ZZ32 = jLongToInt(self) 72 77 end 73 78 74 79 trait ZZ32 extends ZZ64 comprises { IntLiteral } 80 asZZ32(): ZZ32 = self 75 81 asString(): String = jIntToString(self) 76 82 opr |self| : ZZ32 = jIntAbs(self) … … 105 111 opr DOT(self, other:RR64): RR64 = jDoubleMul(self,other) 106 112 opr /(self, other:RR64): RR64 = jDoubleDiv(self,other) 113 opr ^(self, other:RR64): RR64 = jDoublePow(self,other) 107 114 end 108 115

