Sign in
gnu
/
gcc
/
d4fd651d23b007fc9cd93a9300afab21d6dec2ee
/
.
/
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
);
}