CbmRoot
Loading...
Searching...
No Matches
RTypes.h
Go to the documentation of this file.
1/* Copyright (C) 2024 FIAS Frankfurt Institute for Advanced Studies, Frankfurt / Main
2 SPDX-License-Identifier: GPL-3.0-only
3 Authors: Felix Weiglhofer [committer] */
4#pragma once
5
11#if __has_include(<Rtypes.h>)
12#include <Rtypes.h>
13#else
14#define BIT(n) (1ULL << (n))
15#define SETBIT(n, i) ((n) |= BIT(i))
16#define CLRBIT(n, i) ((n) &= ~BIT(i))
17#define TESTBIT(n, i) ((bool) (((n) &BIT(i)) != 0))
18#endif