mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
Consolidate `__PV_BIT` and `BIT` macros. Signed-off-by: Marc Hartmayer <mhartmay@linux.ibm.com> Reviewed-by: Steffen Eiden <seiden@linux.ibm.com> Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
22 lines
448 B
C
22 lines
448 B
C
/*
|
|
* Libpv common macro definitions.
|
|
*
|
|
* Copyright IBM Corp. 2022
|
|
*
|
|
* s390-tools is free software; you can redistribute it and/or modify
|
|
* it under the terms of the MIT license. See LICENSE for details.
|
|
*
|
|
*/
|
|
#ifndef LIBPV_MACROS_H
|
|
#define LIBPV_MACROS_H
|
|
|
|
#include <stdint.h>
|
|
|
|
#define PV_NONNULL(...)
|
|
#define DO_PRAGMA(x) _Pragma(#x)
|
|
|
|
/* Most significant bit */
|
|
#define PV_MSB(idx) ((uint64_t)1 << (63 - (idx)))
|
|
|
|
#endif /* LIBPV_MACROS_H */
|