actually, get rid of integer pow() because a naive multiplication loop approach is way too slow

This commit is contained in:
Irmen de Jong 2019-03-31 18:05:41 +02:00
parent 905d8a0c06
commit 518c3bfd76

View File

@ -330,8 +330,6 @@ class TestStackVmOpcodes {
@Test
fun testPow() {
testBinaryOperator(Value(DataType.UBYTE, 3), Opcode.POW_UB, Value(DataType.UBYTE, 4), Value(DataType.UBYTE, 81))
testBinaryOperator(Value(DataType.UWORD, 3), Opcode.POW_UW, Value(DataType.UWORD, 4), Value(DataType.UWORD, 81))
testBinaryOperator(Value(DataType.FLOAT, 1.1), Opcode.POW_F, Value(DataType.FLOAT, 81.0), Value(DataType.FLOAT, 2253.2402360440274))
}