forked from M-Labs/libfringe
it's fine to inline a simple FFI call
This commit is contained in:
parent
2736479db0
commit
6d1c5d0df1
@ -11,7 +11,6 @@ use super::page_size;
|
|||||||
use core::ptr;
|
use core::ptr;
|
||||||
|
|
||||||
#[cold]
|
#[cold]
|
||||||
#[inline(never)]
|
|
||||||
pub fn sys_page_size() -> usize {
|
pub fn sys_page_size() -> usize {
|
||||||
unsafe {
|
unsafe {
|
||||||
libc::sysconf(libc::_SC_PAGESIZE) as usize
|
libc::sysconf(libc::_SC_PAGESIZE) as usize
|
||||||
|
Loading…
Reference in New Issue
Block a user