summaryrefslogtreecommitdiffhomepage
path: root/dev/Kernel/NewKit
diff options
context:
space:
mode:
authorAmlal <amlal.elmahrouss@icloud.com>2025-02-17 08:11:16 +0100
committerAmlal <amlal.elmahrouss@icloud.com>2025-02-17 08:11:16 +0100
commit2a2c3d58388579d19a7310684521dc57299969d2 (patch)
treea638ed7922ef33f53ad55810c22ad6dc0f47dbfd /dev/Kernel/NewKit
parenta89eca1c9755eb781ab49572612afa90dfa6ea31 (diff)
ADD: Atom.h in LibCF, Atom.h in NewKit and LibCF stores the value as a bit.
Signed-off-by: Amlal <amlal.elmahrouss@icloud.com>
Diffstat (limited to 'dev/Kernel/NewKit')
-rw-r--r--dev/Kernel/NewKit/Atom.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/dev/Kernel/NewKit/Atom.h b/dev/Kernel/NewKit/Atom.h
index a90ef003..6845aee8 100644
--- a/dev/Kernel/NewKit/Atom.h
+++ b/dev/Kernel/NewKit/Atom.h
@@ -21,13 +21,13 @@ namespace Kernel
Atom(const Atom&) = delete;
public:
- T operator[](Size sz)
+ T operator[](Size bit)
{
- return (fArrayOfAtoms & sz);
+ return (fArrayOfAtoms & (1 << bit));
}
- void operator|(Size sz)
+ void operator|(Size bit)
{
- fArrayOfAtoms |= sz;
+ fArrayOfAtoms |= (1 << bit);
}
friend Boolean operator==(Atom<T>& atomic, const T& idx)