xo-expression: less-than-or-equal
This commit is contained in:
parent
67811cec00
commit
813407310c
9 changed files with 93 additions and 14 deletions
|
|
@ -27,6 +27,11 @@ extern "C" {
|
|||
return x < y;
|
||||
}
|
||||
|
||||
bool
|
||||
cmp_le2_i64(std::int64_t x, std::int64_t y) {
|
||||
return x <= y;
|
||||
}
|
||||
|
||||
bool
|
||||
cmp_gt2_i64(std::int64_t x, std::int64_t y) {
|
||||
return x > y;
|
||||
|
|
@ -117,6 +122,20 @@ namespace xo {
|
|||
return s_retval;
|
||||
}
|
||||
|
||||
auto
|
||||
Primitive_cmp_i64::make_cmp_le2_i64() -> rp<PrimitiveType>
|
||||
{
|
||||
static rp<PrimitiveType> s_retval;
|
||||
|
||||
if (!s_retval)
|
||||
s_retval = Primitive::make("cmp_le2_i64",
|
||||
&cmp_le2_i64,
|
||||
true /*explicit_symbol_def*/,
|
||||
llvmintrinsic::i_sle);
|
||||
|
||||
return s_retval;
|
||||
}
|
||||
|
||||
auto
|
||||
Primitive_cmp_i64::make_cmp_gt2_i64() -> rp<PrimitiveType>
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue