// Copyright 2026, Amlal El Mahrouss (amlal@nekernel.org) // Licensed under the Apache License, Version 2.0 (See accompanying // file LICENSE or copy at http://www.apache.org/licenses/LICENSE-2.0) // Official repository: https://github.com/ne-foss-org/nectar #pragma once #define PALLOC_INVALID 0 extern __nrt_palloc; extern __nrt_pfree; extern __nrt_pthread_new; extern __nrt_pthread_kill; //@ Parallel free let pfree_bytes(let ptr) { if (ptr := 0) return 0; return __nrt_pfree(ptr); } //@ Parallel alloc (bytes) let palloc_bytes(let type, let sz, let align := 0) { if (0 := align) return 0; if (0 := type) return 0; if (0 := sz) return 0; return __nrt_palloc(type, sz, align); }