Show
Ignore:
Timestamp:
08/17/09 19:33:56 (3 months ago)
Author:
jmaessen
Message:

[testing, libraries] Most of the code required by Compiled7fo.fss now
exists. Still waiting on counted loops due to type checking bugs
encountered en route.

Location:
trunk/ProjectFortress/LibraryBuiltin
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/ProjectFortress/LibraryBuiltin/CompilerBuiltin.fsi

    r4087 r4089  
    2222end Object 
    2323 
     24nanoTime(): RR64 
     25 
    2426trait String 
    2527    asString(): String 
     
    4042 
    4143trait ZZ64 extends Number 
     44    asZZ32(): ZZ32 
    4245end 
    4346 
    4447trait ZZ32 extends ZZ64 comprises { IntLiteral } 
     48    asZZ32(): ZZ32 
    4549    asString(): String 
    4650    opr |self| : ZZ32 
     
    7579    opr DOT(self, other:RR64): RR64 
    7680    opr /(self, other:RR64): RR64 
     81    opr ^(self, other:RR64): RR64 
    7782end 
    7883 
  • trunk/ProjectFortress/LibraryBuiltin/CompilerBuiltin.fss

    r4087 r4089  
    1818component CompilerBuiltin 
    1919import java com.sun.fortress.nativeHelpers.{simplePrintln.nativePrintln => jPrintln} 
    20 import java com.sun.fortress.nativeHelpers.{simplePrintZZ32.nativePrintZZ32 => jPrintlnZZ32} 
    2120import java com.sun.fortress.nativeHelpers.{simpleConcatenate.nativeConcatenate => jConcatenate} 
    2221import java com.sun.fortress.nativeHelpers.{simpleIntArith.intToString => jIntToString, 
     
    3231                                            simpleIntArith.intNeg => jIntNeg, 
    3332                                            simpleIntArith.parseInt => jParseInt, 
    34                                             simpleIntArith.intAbs => jIntAbs} 
     33                                            simpleIntArith.intAbs => jIntAbs, 
     34                                            simpleIntArith.longToInt => jLongToInt} 
    3535import java com.sun.fortress.nativeHelpers.{simpleDoubleArith.doubleToString => jDoubleToString, 
    3636                                            simpleDoubleArith.doubleAdd => jDoubleAdd, 
     
    4545                                            simpleDoubleArith.doubleNeg => jDoubleNeg, 
    4646                                            simpleDoubleArith.parseDouble => jParseDouble, 
    47                                             simpleDoubleArith.doubleAbs => jDoubleAbs} 
     47                                            simpleDoubleArith.doubleAbs => jDoubleAbs, 
     48                                            simpleDoubleArith.doublePow => jDoublePow, 
     49                                            simpleDoubleArith.doubleNanoTime => jNanoTime} 
    4850import AnyType.{Any} 
    4951export CompilerBuiltin 
     52 
     53nanoTime(): RR64 = jNanoTime() 
    5054 
    5155trait Object extends Any 
     
    7074 
    7175trait ZZ64 extends Number 
     76    asZZ32(): ZZ32 = jLongToInt(self) 
    7277end 
    7378 
    7479trait ZZ32 extends ZZ64 comprises { IntLiteral } 
     80    asZZ32(): ZZ32 = self 
    7581    asString(): String = jIntToString(self) 
    7682    opr |self| : ZZ32 = jIntAbs(self) 
     
    105111    opr DOT(self, other:RR64): RR64 = jDoubleMul(self,other) 
    106112    opr /(self, other:RR64): RR64 = jDoubleDiv(self,other) 
     113    opr ^(self, other:RR64): RR64 = jDoublePow(self,other) 
    107114end 
    108115