xo-numeric: + less than dispatch (also in schematika parser)
This commit is contained in:
parent
a62bb4cec8
commit
5791cd59ce
12 changed files with 83 additions and 13 deletions
|
|
@ -103,6 +103,11 @@ namespace xo {
|
|||
obj<AGCObject> x,
|
||||
obj<AGCObject> y);
|
||||
|
||||
/** compare two numeric values for inequality **/
|
||||
static obj<AGCObject> cmp_less(obj<ARuntimeContext> rcx,
|
||||
obj<AGCObject> x,
|
||||
obj<AGCObject> y);
|
||||
|
||||
/** report memory use for owned arenas to @p visitor **/
|
||||
void visit_pools(const MemorySizeVisitor & visitor);
|
||||
|
||||
|
|
@ -117,7 +122,8 @@ namespace xo {
|
|||
typename NumericOps<DRepr1, DRepr2>::BinaryOp_Impl add_fn,
|
||||
typename NumericOps<DRepr1, DRepr2>::BinaryOp_Impl sub_fn,
|
||||
typename NumericOps<DRepr1, DRepr2>::BinaryOp_Impl cmpeq_fn,
|
||||
typename NumericOps<DRepr1, DRepr2>::BinaryOp_Impl cmpne_fn) {
|
||||
typename NumericOps<DRepr1, DRepr2>::BinaryOp_Impl cmpne_fn,
|
||||
typename NumericOps<DRepr1, DRepr2>::BinaryOp_Impl cmplt_fn) {
|
||||
|
||||
KeyType key(typeseq::id<DRepr1>().seqno(),
|
||||
typeseq::id<DRepr2>().seqno());
|
||||
|
|
@ -129,7 +135,8 @@ namespace xo {
|
|||
add_fn,
|
||||
sub_fn,
|
||||
cmpeq_fn,
|
||||
cmpne_fn);
|
||||
cmpne_fn,
|
||||
cmplt_fn);
|
||||
}
|
||||
|
||||
private:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue