mirror of
https://review.haiku-os.org/buildtools
synced 2025-02-07 06:14:49 +01:00
Updated dependencies: * GMP 6.2.1 * ISL 0.24 * MPL 1.2.1 * MPFR 4.1.0 The dependencies were pulled in by running the ./contrib/download_prerequisites script and then manually removing the symbolic links and archives, and renaming the directories (i.e mv isl-0.24 to isl)
31 lines
803 B
D
31 lines
803 B
D
/**
|
|
* Implementation of array copy support routines.
|
|
*
|
|
* Copyright: Copyright Digital Mars 2004 - 2016.
|
|
* License: Distributed under the
|
|
* $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost Software License 1.0).
|
|
* Authors: Walter Bright, Sean Kelly
|
|
* Source: $(DRUNTIMESRC rt/_arraycat.d)
|
|
*/
|
|
|
|
module rt.arraycat;
|
|
|
|
private
|
|
{
|
|
import core.stdc.string;
|
|
import core.internal.util.array;
|
|
debug(PRINTF) import core.stdc.stdio;
|
|
}
|
|
|
|
extern (C) @trusted nothrow:
|
|
|
|
void[] _d_arraycopy(size_t size, void[] from, void[] to)
|
|
{
|
|
debug(PRINTF) printf("f = %p,%d, t = %p,%d, size = %d\n",
|
|
from.ptr, from.length, to.ptr, to.length, size);
|
|
|
|
enforceRawArraysConformable("copy", size, from, to);
|
|
memcpy(to.ptr, from.ptr, to.length * size);
|
|
return to;
|
|
}
|