xref: /aosp_15_r20/external/cpu_features/src/copy.inl (revision eca53ba6d2e951e174b64682eaf56a36b8204c89)
1*eca53ba6SRoland Levillain// Copyright 2021 Google LLC
2*eca53ba6SRoland Levillain//
3*eca53ba6SRoland Levillain// Licensed under the Apache License, Version 2.0 (the "License");
4*eca53ba6SRoland Levillain// you may not use this file except in compliance with the License.
5*eca53ba6SRoland Levillain// You may obtain a copy of the License at
6*eca53ba6SRoland Levillain//
7*eca53ba6SRoland Levillain//    http://www.apache.org/licenses/LICENSE-2.0
8*eca53ba6SRoland Levillain//
9*eca53ba6SRoland Levillain// Unless required by applicable law or agreed to in writing, software
10*eca53ba6SRoland Levillain// distributed under the License is distributed on an "AS IS" BASIS,
11*eca53ba6SRoland Levillain// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12*eca53ba6SRoland Levillain// See the License for the specific language governing permissions and
13*eca53ba6SRoland Levillain// limitations under the License.
14*eca53ba6SRoland Levillain
15*eca53ba6SRoland Levillain#include <stddef.h>
16*eca53ba6SRoland Levillain
17*eca53ba6SRoland Levillainstatic void copy(char *__restrict dst, const char *src, size_t count) {
18*eca53ba6SRoland Levillain  for (size_t i = 0; i < count; ++i) dst[i] = src[i];
19*eca53ba6SRoland Levillain}
20