Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
y
z
Enumerations
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
v
w
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
z
Classes
Class List
Class Hierarchy
Class Members
All
:
[
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
[
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
y
Enumerations
a
b
c
d
e
f
h
i
k
l
m
n
o
p
r
s
t
u
v
w
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
z
Properties
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
Related Functions
:
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
z
Files
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Enumerations
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
x
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
grpc
third_party
abseil-cpp
absl
base
internal
prefetch_test.cc
Go to the documentation of this file.
1
// Copyright 2022 The Abseil Authors.
2
//
3
// Licensed under the Apache License, Version 2.0 (the "License");
4
// you may not use this file except in compliance with the License.
5
// You may obtain a copy of the License at
6
//
7
// https://www.apache.org/licenses/LICENSE-2.0
8
//
9
// Unless required by applicable law or agreed to in writing, software
10
// distributed under the License is distributed on an "AS IS" BASIS,
11
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
// See the License for the specific language governing permissions and
13
// limitations under the License.
14
15
#include "
absl/base/internal/prefetch.h
"
16
17
#include "gtest/gtest.h"
18
19
namespace
{
20
21
int
number
= 42;
22
23
TEST
(Prefetch, TemporalLocalityNone) {
24
absl::base_internal::PrefetchNta
(&
number
);
25
EXPECT_EQ
(
number
, 42);
26
}
27
28
TEST
(Prefetch, TemporalLocalityLow) {
29
absl::base_internal::PrefetchT2
(&
number
);
30
EXPECT_EQ
(
number
, 42);
31
}
32
33
TEST
(Prefetch, TemporalLocalityMedium) {
34
absl::base_internal::PrefetchT1
(&
number
);
35
EXPECT_EQ
(
number
, 42);
36
}
37
38
TEST
(Prefetch, TemporalLocalityHigh) {
39
absl::base_internal::PrefetchT0
(&
number
);
40
EXPECT_EQ
(
number
, 42);
41
}
42
43
}
// namespace
absl::base_internal::PrefetchT2
void PrefetchT2(const void *addr)
Definition:
prefetch.h:130
absl::base_internal::PrefetchNta
void PrefetchNta(const void *addr)
Definition:
prefetch.h:131
EXPECT_EQ
#define EXPECT_EQ(a, b)
Definition:
iomgr/time_averaged_stats_test.cc:27
TEST
#define TEST(name, init_size,...)
Definition:
arena_test.cc:75
number
int32_t number
Definition:
bloaty/third_party/protobuf/php/ext/google/protobuf/protobuf.h:850
absl::base_internal::PrefetchT0
void PrefetchT0(const void *addr)
Definition:
prefetch.h:128
prefetch.h
absl::base_internal::PrefetchT1
void PrefetchT1(const void *addr)
Definition:
prefetch.h:129
grpc
Author(s):
autogenerated on Thu Mar 13 2025 03:00:54