diff options
| author | Amlal El Mahrouss <amlal@nekernel.org> | 2026-01-23 19:46:09 +0100 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal@nekernel.org> | 2026-01-23 19:47:41 +0100 |
| commit | 7f17278493da389ea25a627ea993a35f122671ef (patch) | |
| tree | 7aaf84f0af5ee7ed447d843c1c553cc2cabe185b /include/GenericsLibrary/swap.nhh | |
| parent | baa456251dc978b3bdb33c77a5c02c2e53fb2d3e (diff) | |
chore: GenericsLibrary: Library tweaks and additions, more examples for
Nectar and Assembly.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'include/GenericsLibrary/swap.nhh')
| -rw-r--r-- | include/GenericsLibrary/swap.nhh | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/include/GenericsLibrary/swap.nhh b/include/GenericsLibrary/swap.nhh new file mode 100644 index 0000000..7090535 --- /dev/null +++ b/include/GenericsLibrary/swap.nhh @@ -0,0 +1,20 @@ +// 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/nekernel-org/nectar + +#ifndef NECTAR_GL_SWAP_NHH +#define NECTAR_GL_SWAP_NHH + +//@ Free swap functions for GenericsLibrary. + +let swap(let a, let b) +{ + let temp := a; + a := b; + b := temp; + + return; +} + +#endif //@ NECTAR_GL_SWAP_NHH
\ No newline at end of file |
