nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
parallelization_phase: use `ANode::validate` after AST shenanigans.
[nit.git]
/
c_src
/
math_nit.h
diff --git
a/c_src/math_nit.h
b/c_src/math_nit.h
index
a9afcce
..
e13aac3
100644
(file)
--- a/
c_src/math_nit.h
+++ b/
c_src/math_nit.h
@@
-6,7
+6,7
@@
*
* This file is free software, which comes along with NIT. This software is
* distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
*
* This file is free software, which comes along with NIT. This software is
* distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
- * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+ * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
* PARTICULAR PURPOSE. You can modify it is you want, provided this header
* is kept unaltered, and a notification of the changes is added.
* You are allowed to redistribute it and sell it, alone or is a part of
* PARTICULAR PURPOSE. You can modify it is you want, provided this header
* is kept unaltered, and a notification of the changes is added.
* You are allowed to redistribute it and sell it, alone or is a part of
@@
-18,6
+18,10
@@
#include <time.h>
#define kernel_Int_Int_rand_0(self) ((int)(((double)(self))*rand()/(RAND_MAX+1.0)))
#include <time.h>
#define kernel_Int_Int_rand_0(self) ((int)(((double)(self))*rand()/(RAND_MAX+1.0)))
+#define kernel_Int_Int_binand_0(self, p0) (self & p0)
+#define kernel_Int_Int_binor_0(self, p0) (self | p0)
+#define kernel_Int_Int_binxor_0(self, p0) (self ^ p0)
+#define kernel_Int_Int_binnot_0(self) (~self)
#define kernel_Float_Float_sqrt_0(self) sqrt(self)
#define kernel_Float_Float_cos_0(self) cos(self)
#define kernel_Float_Float_sin_0(self) sin(self)
#define kernel_Float_Float_sqrt_0(self) sqrt(self)
#define kernel_Float_Float_cos_0(self) cos(self)
#define kernel_Float_Float_sin_0(self) sin(self)