xo-reader2: + op> support
This commit is contained in:
parent
1b4d5744d2
commit
c500a98722
11 changed files with 78 additions and 7 deletions
|
|
@ -74,6 +74,14 @@ namespace xo {
|
|||
x->value() <= DFloat::value_type(y->value()));
|
||||
}
|
||||
|
||||
obj<AGCObject>
|
||||
FloatIntegerOps::cmp_greater(obj<ARuntimeContext> rcx,
|
||||
DFloat * x, DInteger * y)
|
||||
{
|
||||
return DBoolean::box<AGCObject>(rcx.allocator(),
|
||||
x->value() > DFloat::value_type(y->value()));
|
||||
}
|
||||
|
||||
obj<AGCObject>
|
||||
FloatIntegerOps::cmp_greatequal(obj<ARuntimeContext> rcx,
|
||||
DFloat * x, DInteger * y)
|
||||
|
|
@ -144,6 +152,14 @@ namespace xo {
|
|||
DFloat::value_type(x->value()) <= y->value());
|
||||
}
|
||||
|
||||
obj<AGCObject>
|
||||
IntegerFloatOps::cmp_greater(obj<ARuntimeContext> rcx,
|
||||
DInteger * x, DFloat * y)
|
||||
{
|
||||
return DBoolean::box<AGCObject>(rcx.allocator(),
|
||||
DFloat::value_type(x->value()) > y->value());
|
||||
}
|
||||
|
||||
obj<AGCObject>
|
||||
IntegerFloatOps::cmp_greatequal(obj<ARuntimeContext> rcx,
|
||||
DInteger * x, DFloat * y)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue