X-Git-Url: http://nitlanguage.org diff --git a/c_src/math_nit.h b/c_src/math_nit.h index a9afcce..e13aac3 100644 --- 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; - * 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 @@ -18,6 +18,10 @@ #include #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)