WKern
Loading...
Searching...
No Matches
nums.h
Go to the documentation of this file.
1/*
2WKern - A Bare Metal OS / Kernel I am making (For Fun)
3Copyright (C) 2025 Wdboyes13
4
5This program is free software: you can redistribute it and/or modify
6it under the terms of the GNU General Public License as published by
7the Free Software Foundation, either version 3 of the License, or
8any later version.
9
10This program is distributed in the hope that it will be useful,
11but WITHOUT ANY WARRANTY; without even the implied warranty of
12MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13GNU General Public License for more details.
14
15You should have received a copy of the GNU General Public License
16along with this program. If not, see <https://www.gnu.org/licenses/>.
17*/
18
19#pragma once
20
21// Old Definitions (Kept for clarity)
22typedef unsigned char kuint8_t;
23typedef unsigned short kuint16_t;
24typedef unsigned int kuint32_t;
25typedef unsigned long kuintptr_t;
26typedef unsigned int size_t;
27
28// New definitions, shorter
30typedef unsigned int u32;
32typedef unsigned char u8;
34typedef unsigned long uptr;
36typedef unsigned short u16;
unsigned int u32
32-Bit Unsigned Int
Definition nums.h:30
unsigned int kuint32_t
Definition nums.h:24
unsigned char kuint8_t
Definition nums.h:22
unsigned int size_t
Definition nums.h:26
unsigned short kuint16_t
Definition nums.h:23
unsigned short u16
16-Bit Unsigned Int
Definition nums.h:36
unsigned long uptr
Long Unsigned Int.
Definition nums.h:34
unsigned char u8
8-Bit Unsigned Int
Definition nums.h:32
unsigned long kuintptr_t
Definition nums.h:25