repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[libc] Switch to using the generic `<gpuintrin.h>` implementations (#121810)
[llvm-project.git]
/
compiler-rt
/
test
/
gwp_asan
/
page_size.h
blob
85f90579386468b2b91995e66bb3dc637a256819
1
#ifndef PAGE_SIZE_
2
#define PAGE_SIZE_
3
4
#if defined (__unix__) || (defined (__APPLE__) && defined (__MACH__))
5
# include <unistd.h>
6
unsigned
pageSize
() {
7
return
sysconf
(
_SC_PAGESIZE
);
8
}
9
#else
10
# error
"GWP-ASan is not supported on this platform."
11
#endif
12
13
#endif
// PAGE_SIZE_