Blame sysdeps/generic/pagecopy.h

Packit Service 82fcde
/* Macros for copying by pages; used in memcpy, memmove.
Packit Service 82fcde
   Copyright (C) 1995-2018 Free Software Foundation, Inc.
Packit Service 82fcde
   This file is part of the GNU C Library.
Packit Service 82fcde
Packit Service 82fcde
   The GNU C Library is free software; you can redistribute it and/or
Packit Service 82fcde
   modify it under the terms of the GNU Lesser General Public
Packit Service 82fcde
   License as published by the Free Software Foundation; either
Packit Service 82fcde
   version 2.1 of the License, or (at your option) any later version.
Packit Service 82fcde
Packit Service 82fcde
   The GNU C Library is distributed in the hope that it will be useful,
Packit Service 82fcde
   but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit Service 82fcde
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit Service 82fcde
   Lesser General Public License for more details.
Packit Service 82fcde
Packit Service 82fcde
   You should have received a copy of the GNU Lesser General Public
Packit Service 82fcde
   License along with the GNU C Library; if not, see
Packit Service 82fcde
   <http://www.gnu.org/licenses/>.  */
Packit Service 82fcde
Packit Service 82fcde
/* The macro PAGE_COPY_FWD_MAYBE defined in memcopy.h is used in memmove if the
Packit Service 82fcde
   PAGE_COPY_THRESHOLD macro is set to a non-zero value.  The default is 0,
Packit Service 82fcde
   that is copying by pages is not implemented.
Packit Service 82fcde
Packit Service 82fcde
   System-specific pagecopy.h files that want to support page copying should
Packit Service 82fcde
   define these macros:
Packit Service 82fcde
Packit Service 82fcde
   PAGE_COPY_THRESHOLD
Packit Service 82fcde
   -- A non-zero minimum size for which virtual copying by pages is worthwhile.
Packit Service 82fcde
Packit Service 82fcde
   PAGE_SIZE
Packit Service 82fcde
   -- Size of a page.
Packit Service 82fcde
Packit Service 82fcde
   PAGE_COPY_FWD (dstp, srcp, nbytes_left, nbytes)
Packit Service 82fcde
   -- Macro to perform the virtual copy operation.
Packit Service 82fcde
   The pointers will be aligned to PAGE_SIZE bytes.
Packit Service 82fcde
*/
Packit Service 82fcde
Packit Service 82fcde
#define PAGE_COPY_THRESHOLD 0