summaryrefslogtreecommitdiffhomepage
path: root/dev/kernel/NewKit/Atom.h
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2025-05-23 04:07:12 +0200
committerAmlal El Mahrouss <amlal@nekernel.org>2025-05-23 04:07:12 +0200
commitfc67c4af554189c941c811486a0b2b21aa3f54ea (patch)
treeddc7677c3bb1072c9b9fb85618b75c8ee172b377 /dev/kernel/NewKit/Atom.h
parentfbd1f65a2cd30b3b4ed3da236398ddcfc437ac47 (diff)
feat!(kernel): Rename NewKit to NeKit.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'dev/kernel/NewKit/Atom.h')
-rw-r--r--dev/kernel/NewKit/Atom.h33
1 files changed, 0 insertions, 33 deletions
diff --git a/dev/kernel/NewKit/Atom.h b/dev/kernel/NewKit/Atom.h
deleted file mode 100644
index 4b23c933..00000000
--- a/dev/kernel/NewKit/Atom.h
+++ /dev/null
@@ -1,33 +0,0 @@
-/* -------------------------------------------
-
- Copyright (C) 2024-2025, Amlal El Mahrouss, all rights reserved.
-
-------------------------------------------- */
-#pragma once
-
-#include <NewKit/Defines.h>
-
-namespace Kernel {
-template <typename T>
-class Atom final {
- public:
- explicit Atom() = default;
- ~Atom() = default;
-
- public:
- Atom& operator=(const Atom&) = delete;
- Atom(const Atom&) = delete;
-
- public:
- T operator[](Size bit) { return (fArrayOfAtoms & (1 << bit)); }
-
- void operator|(Size bit) { fArrayOfAtoms |= (1 << bit); }
-
- friend Boolean operator==(Atom<T>& atomic, const T& idx) { return atomic[idx] == idx; }
-
- friend Boolean operator!=(Atom<T>& atomic, const T& idx) { return atomic[idx] == idx; }
-
- private:
- T fArrayOfAtoms;
-};
-} // namespace Kernel