1 /* SPDX-License-Identifier: GPL-2.0 */ 2 /* 3 * Support for Intel Camera Imaging ISP subsystem. 4 * Copyright (c) 2015, Intel Corporation. 5 */ 6 7 #ifndef __BITOP_SUPPORT_H_INCLUDED__ 8 #define __BITOP_SUPPORT_H_INCLUDED__ 9 10 #define bitop_setbit(a, b) ((a) |= (1UL << (b))) 11 12 #define bitop_getbit(a, b) (((a) & (1UL << (b))) != 0) 13 14 #define bitop_clearbit(a, b) ((a) &= ~(1UL << (b))) 15 16 #endif /* __BITOP_SUPPORT_H_INCLUDED__ */ 17