Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/CUDApp/blob/main/src/omega_canonical.h # CUDApp CUDA++: AIEN’s GPU machine-code toolchain, runtime and driver client for NVIDIA GPUs without the CUDA toolkit. Hardware coverage and driver replacement limits are explicit. Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `CUDApp / src / omega_canonical.h` 37 lines · 1738 bytes Raw Blame History 1 /* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 2 * Copyright 2026 Drake Stapleton (AIEN / aien-dev) 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 #ifndef OMEGA_CANONICAL_H 18 #define OMEGA_CANONICAL_H 19 20 #include "omega_types.h" 21 22 /* Object encoding version (canonical header byte +0x04) per kind: 23 * KIND_EFFECT -> OMEGA_EFFECT_VERSION (0x02), every other kind -> OMEGA_VERSION 24 * (0x01). A decoder accepts exactly that pair (spec/effect-cap64-migration.md). */ 25 #define OMEGA_CANON_OK 0 26 #define OMEGA_CANON_ERR_VERSION -1 /* unknown version, or a version not owned by this kind */ 27 #define OMEGA_CANON_ERR_EFFECT_V1 -2 /* legacy version 0x01 effect: refused, never reinterpreted */ 28 uint8_t omega_canonical_object_version(uint8_t kind); 29 int omega_canonical_check_header(uint8_t version, uint8_t kind); 30 31 int omega_canonical_encode(const OmegaObject *obj, uint8_t *out_buf, size_t max_len, size_t *out_len); 32 int omega_compute_semantic_id(OmegaObject *obj); 33 int omega_compare_semantic_id(const SemanticId *a, const SemanticId *b); 34 void omega_hex_semantic_id(const SemanticId *id, char out_hex[65]); 35 int omega_parse_hex_semantic_id(const char *hex, SemanticId *out_id); 36 37 #endif /* OMEGA_CANONICAL_H */