File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22namespace PHPJava \Kernel \Mnemonics ;
33
44use PHPJava \Exceptions \NotImplementedException ;
5+ use PHPJava \Kernel \Types \_Double ;
56use PHPJava \Utilities \BinaryTool ;
7+ use PHPJava \Utilities \Extractor ;
68
79final class _f2d implements OperationInterface
810{
@@ -11,6 +13,10 @@ final class _f2d implements OperationInterface
1113
1214 public function execute (): void
1315 {
14- throw new NotImplementedException (__CLASS__ );
16+ $ value = Extractor::realValue (
17+ $ this ->popFromOperandStack ()
18+ );
19+
20+ $ this ->pushToOperandStack (new _Double ($ value ));
1521 }
1622}
Original file line number Diff line number Diff line change 22namespace PHPJava \Kernel \Mnemonics ;
33
44use PHPJava \Exceptions \NotImplementedException ;
5+ use PHPJava \Kernel \Types \_Int ;
56use PHPJava \Utilities \BinaryTool ;
7+ use PHPJava \Utilities \Extractor ;
68
79final class _f2i implements OperationInterface
810{
@@ -11,6 +13,10 @@ final class _f2i implements OperationInterface
1113
1214 public function execute (): void
1315 {
14- throw new NotImplementedException (__CLASS__ );
16+ $ value = Extractor::realValue (
17+ $ this ->popFromOperandStack ()
18+ );
19+
20+ $ this ->pushToOperandStack (new _Int ($ value ));
1521 }
1622}
Original file line number Diff line number Diff line change 22namespace PHPJava \Kernel \Mnemonics ;
33
44use PHPJava \Exceptions \NotImplementedException ;
5+ use PHPJava \Kernel \Types \_Long ;
56use PHPJava \Utilities \BinaryTool ;
7+ use PHPJava \Utilities \Extractor ;
68
79final class _f2l implements OperationInterface
810{
@@ -11,6 +13,10 @@ final class _f2l implements OperationInterface
1113
1214 public function execute (): void
1315 {
14- throw new NotImplementedException (__CLASS__ );
16+ $ value = Extractor::realValue (
17+ $ this ->popFromOperandStack ()
18+ );
19+
20+ $ this ->pushToOperandStack (new _Long ($ value ));
1521 }
1622}
You can’t perform that action at this time.
0 commit comments