diff options
| author | Grégoire Duchêne <gduchene@awhk.org> | 2014-10-04 13:27:35 +0200 |
|---|---|---|
| committer | Grégoire Duchêne <gduchene@awhk.org> | 2014-10-04 13:28:12 +0200 |
| commit | 9b4304908c91cd4721d10844a1c49c25032d359d (patch) | |
| tree | 7167fee77c856bb5edbcb860e890eab460dec9ca /src | |
| parent | 7c6a2298b7b74ead7e6cb7e16b44719e62618e95 (diff) | |
Implemented Pfloatfield and Psetfloatfieldmaster
Diffstat (limited to 'src')
| -rw-r--r-- | src/Interpreter.ml | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/Interpreter.ml b/src/Interpreter.ml index 87dd583..df5792b 100644 --- a/src/Interpreter.ml +++ b/src/Interpreter.ml @@ -333,6 +333,12 @@ and eval_prim env kind vs = | Pasrbint Pint64 -> lift2 (int64 --> int --> int64 ) Int64.shift_right vs | Pasrbint Pnativeint -> lift2 (natint --> int --> natint) Nativeint.shift_right vs + | Pfloatfield i -> + lift (any --> float) (fun blk -> Obj.double_field blk i) vs + + | Psetfloatfield i -> + lift2 (any --> float --> unit) (fun blk x -> Obj.set_double_field blk i x) vs + | Pnot -> lift (bool --> bool) not vs | Pbintcomp (kind, cmp) -> |
