Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 #ifndef LINUX_COMPILER_H
0003 #define LINUX_COMPILER_H
0004 
0005 #define WRITE_ONCE(var, val) \
0006     (*((volatile typeof(val) *)(&(var))) = (val))
0007 
0008 #define READ_ONCE(var) (*((volatile typeof(var) *)(&(var))))
0009 
0010 #define __aligned(x) __attribute((__aligned__(x)))
0011 #endif