Sign in
rust
/
rust-lang
/
gcc
/
f76718a1cb29d764cbd23ab3f8e1d40bc406004f
/
.
/
libstdc++-v3
/
testsuite
/
25_algorithms
/
equal
/
101485.cc
blob: 1fbb40acae99d209cd4805892973b283a9f32d20 [
file
] [
log
] [
blame
]
// { dg-options "-O0" }
// { dg-do compile { target c++17 } }
// { dg-final { scan-assembler "memcmp" } }
#include
<algorithm>
#include
<cstddef>
bool
eq
(
std
::
byte
const
*
p
,
std
::
byte
const
*
q
,
unsigned
n
)
{
return
std
::
equal
(
p
,
p
+
n
,
q
);
}