[Clang][SME2] Enable multi-vector loads & stores for SME2 (#75821)
[llvm-project.git] / compiler-rt / lib / scudo / standalone / common.cpp
blob06e930638f6f971b08382629423cc8e0b9543f71
1 //===-- common.cpp ----------------------------------------------*- C++ -*-===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
9 #include "common.h"
10 #include "atomic_helpers.h"
11 #include "string_utils.h"
13 namespace scudo {
15 uptr PageSizeCached;
16 uptr getPageSize();
18 uptr getPageSizeSlow() {
19 PageSizeCached = getPageSize();
20 CHECK_NE(PageSizeCached, 0);
21 return PageSizeCached;
24 } // namespace scudo