repo.or.cz
/
cris-mirror.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Merge branch 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel...
[cris-mirror.git]
/
tools
/
virtio
/
linux
/
compiler.h
blob
845960e1cbf2f4c961518a6181e51e0078b967d0
1
#ifndef LINUX_COMPILER_H
2
#define LINUX_COMPILER_H
3
4
#define WRITE_ONCE(var, val) \
5
(*((volatile typeof(val) *)(&(var))) = (val))
6
7
#define READ_ONCE(var) (*((volatile typeof(val) *)(&(var))))
8
9
#endif