From fcf755d4f03f6fba974d11307659e2e96f9696e7 Mon Sep 17 00:00:00 2001 From: Xander Date: Sat, 19 Aug 2023 15:04:23 +0200 Subject: Implemented entry --- kernel/prelude/SATS/safe_casts.sats | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'kernel/prelude/SATS') diff --git a/kernel/prelude/SATS/safe_casts.sats b/kernel/prelude/SATS/safe_casts.sats index 50a68a8..f8e34db 100644 --- a/kernel/prelude/SATS/safe_casts.sats +++ b/kernel/prelude/SATS/safe_casts.sats @@ -1 +1,4 @@ -castfn u2uint64{v : nat | v <= 0xFFFFFFFFFFFFFFFF}(v : uint v) : uint64 v +castfn u2u64{v : nat | v <= 0xFFFFFFFFFFFFFFFF}(v : uint v) :<> uint64 v +castfn u64_to_Ptr0(v : uint64):<> Ptr0 +castfn Ptr0_to_u64(v : Ptr0):<> uint64 +castfn sz_to_Ptr0(v : size_t):<> Ptr0 -- cgit v1.2.3