🚀 add binary negation

This commit is contained in:
ValKmjolnir
2023-02-12 15:22:05 +08:00
parent e2cbf22e72
commit 8c02aa0fff
9 changed files with 72 additions and 37 deletions
+8 -1
View File
@@ -204,4 +204,11 @@ foreach(i;a){
println(runtime.argv());
func(a,b,c,d="只有红茶可以吗"){
println(a,' ',b,' ',c,' ',d,' true: ',true,' false: ',false);
}(c:1919810,b:514,a:114);
}(c:1919810,b:514,a:114);
# test binary negation
println("~ 0x80: ",~0x80);
println("~ 0x8000: ",~0x8000);
println("~ 0x80000000: ",~0x80000000);
println("~ 0x8000000000000000: ",~0x8000000000000000);
println(~0x80000000==~0x8000000000000000);