This commit is contained in:
parent
aa2ff7b2f0
commit
2f3113f55d
11742 changed files with 1223940 additions and 0 deletions
14
unikernel/duniverse/Zarith/tests/extern.ml
Normal file
14
unikernel/duniverse/Zarith/tests/extern.ml
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
(* Marshal some interesting big integers to the given file *)
|
||||
|
||||
let _ =
|
||||
let file = Sys.argv.(1) in
|
||||
let oc = open_out_bin file in
|
||||
for nbits = 16 to 128 do
|
||||
let x = Z.shift_left Z.one nbits in
|
||||
output_value oc (Z.pred (Z.neg x));
|
||||
output_value oc (Z.neg x);
|
||||
output_value oc (Z.pred x);
|
||||
output_value oc x
|
||||
done;
|
||||
close_out oc
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue