[Openmp-commits] [PATCH] D35072: Stop defining `PAGE_SIZE`,	and use `getpagesize()` on Unix
    Zachary Turner via Phabricator via Openmp-commits 
    openmp-commits at lists.llvm.org
       
    Thu Jul  6 10:36:26 PDT 2017
    
    
  
zturner added a comment.
There's a comment indicating that we should find the correct function on Windows and use it, but in the description of this review you mention that you found it in the `SYSTEM_INFO` structure.  So why not use it?
  static inline size_t getpagesize() {
    SYSTEM_INFO S;
    GetNativeSystemInfo(&S);
    return S.dwPageSize;
  }
  #define KMP_GET_PAGE_SIZE() getpagesize()
https://reviews.llvm.org/D35072
    
    
More information about the Openmp-commits
mailing list