Additional original source notices for the Rust runtime components

The following complete comment blocks retain file-specific notices from the
source inputs of these libraries. Conditional or unused code may be included;
these notices do not replace the applicable component license files.

library/compiler-builtins/compiler-builtins/src/probestack.rs:1

// Copyright 2017 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.

library/compiler-builtins/libm/src/math/acos.rs:2
library/compiler-builtins/libm/src/math/asin.rs:2
library/compiler-builtins/libm/src/math/j0.rs:2
library/compiler-builtins/libm/src/math/j1.rs:2
library/compiler-builtins/libm/src/math/jn.rs:2
library/compiler-builtins/libm/src/math/log.rs:2
library/compiler-builtins/libm/src/math/log10.rs:2
library/compiler-builtins/libm/src/math/log2.rs:2
library/compiler-builtins/libm/src/math/rem_pio2_large.rs:5

/*
 * ====================================================
 * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
 *
 * Developed at SunSoft, a Sun Microsystems, Inc. business.
 * Permission to use, copy, modify, and distribute this
 * software is freely granted, provided that this notice
 * is preserved.
 * ====================================================
 */

library/compiler-builtins/libm/src/math/acosf.rs:5
library/compiler-builtins/libm/src/math/asinf.rs:5
library/compiler-builtins/libm/src/math/atan.rs:2
library/compiler-builtins/libm/src/math/atan2f.rs:5
library/compiler-builtins/libm/src/math/atanf.rs:5
library/compiler-builtins/libm/src/math/cbrtf.rs:6
library/compiler-builtins/libm/src/math/cosf.rs:6
library/compiler-builtins/libm/src/math/erf.rs:3
library/compiler-builtins/libm/src/math/erff.rs:5
library/compiler-builtins/libm/src/math/expf.rs:5
library/compiler-builtins/libm/src/math/expm1.rs:2
library/compiler-builtins/libm/src/math/expm1f.rs:5
library/compiler-builtins/libm/src/math/j0f.rs:5
library/compiler-builtins/libm/src/math/j1f.rs:5
library/compiler-builtins/libm/src/math/jnf.rs:5
library/compiler-builtins/libm/src/math/k_cosf.rs:6
library/compiler-builtins/libm/src/math/k_sinf.rs:6
library/compiler-builtins/libm/src/math/lgammaf_r.rs:5
library/compiler-builtins/libm/src/math/log10f.rs:2
library/compiler-builtins/libm/src/math/log1p.rs:2
library/compiler-builtins/libm/src/math/log1pf.rs:2
library/compiler-builtins/libm/src/math/log2f.rs:2
library/compiler-builtins/libm/src/math/logf.rs:5
library/compiler-builtins/libm/src/math/powf.rs:5
library/compiler-builtins/libm/src/math/rem_pio2f.rs:6
library/compiler-builtins/libm/src/math/sincos.rs:2
library/compiler-builtins/libm/src/math/sincosf.rs:6
library/compiler-builtins/libm/src/math/sinf.rs:6
library/compiler-builtins/libm/src/math/tanf.rs:6

/*
 * ====================================================
 * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
 *
 * Developed at SunPro, a Sun Microsystems, Inc. business.
 * Permission to use, copy, modify, and distribute this
 * software is freely granted, provided that this notice
 * is preserved.
 * ====================================================
 */

library/compiler-builtins/libm/src/math/approx/cbrtf64.rs:2

/*
 * ====================================================
 * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
 *
 * Developed at SunPro, a Sun Microsystems, Inc. business.
 * Permission to use, copy, modify, and distribute this
 * software is freely granted, provided that this notice
 * is preserved.
 * ====================================================
 *
 * Optimized by Bruce D. Evans.
 */

library/compiler-builtins/libm/src/math/atan2.rs:2
library/compiler-builtins/libm/src/math/lgamma_r.rs:2

/*
 * ====================================================
 * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
 *
 * Developed at SunSoft, a Sun Microsystems, Inc. business.
 * Permission to use, copy, modify, and distribute this
 * software is freely granted, provided that this notice
 * is preserved.
 * ====================================================
 *
 */

library/compiler-builtins/libm/src/math/cbrt.rs:1
library/compiler-builtins/libm/src/math/fma.rs:1
library/compiler-builtins/libm/src/math/generic/ceil.rs:1
library/compiler-builtins/libm/src/math/generic/fma.rs:1
library/compiler-builtins/libm/src/math/generic/rint.rs:1
library/compiler-builtins/libm/src/math/generic/sqrt.rs:1
library/compiler-builtins/libm/src/math/hypot.rs:1

/* SPDX-License-Identifier: MIT */

library/compiler-builtins/libm/src/math/cbrt.rs:2

/* origin: core-math/src/binary64/cbrt/cbrt.c
 * Copyright (c) 2021-2022 Alexei Sibidanov.
 * Ported to Rust in 2025 by Trevor Gross.
 */

library/compiler-builtins/libm/src/math/cos.rs:1

// origin: FreeBSD /usr/src/lib/msun/src/s_cos.c */
//
// ====================================================
// Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
//
// Developed at SunPro, a Sun Microsystems, Inc. business.
// Permission to use, copy, modify, and distribute this
// software is freely granted, provided that this notice
// is preserved.
// ====================================================

library/compiler-builtins/libm/src/math/exp.rs:2
library/compiler-builtins/libm/src/math/pow.rs:2

/*
 * ====================================================
 * Copyright (C) 2004 by Sun Microsystems, Inc. All rights reserved.
 *
 * Permission to use, copy, modify, and distribute this
 * software is freely granted, provided that this notice
 * is preserved.
 * ====================================================
 */

library/compiler-builtins/libm/src/math/exp2.rs:1

// origin: FreeBSD /usr/src/lib/msun/src/s_exp2.c */
//-
// Copyright (c) 2005 David Schultz <das@FreeBSD.ORG>
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
// 1. Redistributions of source code must retain the above copyright
//    notice, this list of conditions and the following disclaimer.
// 2. Redistributions in binary form must reproduce the above copyright
//    notice, this list of conditions and the following disclaimer in the
//    documentation and/or other materials provided with the distribution.
//
// THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
// ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
// OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
// HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
// OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
// SUCH DAMAGE.

library/compiler-builtins/libm/src/math/exp2f.rs:1

// origin: FreeBSD /usr/src/lib/msun/src/s_exp2f.c
//-
// Copyright (c) 2005 David Schultz <das@FreeBSD.ORG>
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
// 1. Redistributions of source code must retain the above copyright
//    notice, this list of conditions and the following disclaimer.
// 2. Redistributions in binary form must reproduce the above copyright
//    notice, this list of conditions and the following disclaimer in the
//    documentation and/or other materials provided with the distribution.
//
// THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
// ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
// OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
// HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
// OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
// SUCH DAMAGE.

library/compiler-builtins/libm/src/math/fmaf16.rs:1

/* SPDX-License-Identifier: MIT OR Apache-2.0
 * origin: original implementation, 2026 (TG) */

library/compiler-builtins/libm/src/math/generic/floor.rs:1

/* SPDX-License-Identifier: MIT
 * origin: musl src/math/floor.c */

library/compiler-builtins/libm/src/math/generic/fmax.rs:1
library/compiler-builtins/libm/src/math/generic/fmaximum.rs:1
library/compiler-builtins/libm/src/math/generic/fmaximum_num.rs:1
library/compiler-builtins/libm/src/math/generic/fmin.rs:1
library/compiler-builtins/libm/src/math/generic/fminimum.rs:1
library/compiler-builtins/libm/src/math/generic/fminimum_num.rs:1
library/compiler-builtins/libm/src/math/generic/fmod.rs:1
library/compiler-builtins/libm/src/math/support/int_traits/narrowing_div.rs:1
library/compiler-builtins/libm/src/math/support/modular.rs:1

/* SPDX-License-Identifier: MIT OR Apache-2.0 */

library/compiler-builtins/libm/src/math/generic/trunc.rs:1

/* SPDX-License-Identifier: MIT
 * origin: musl src/math/trunc.c */

library/compiler-builtins/libm/src/math/hypot.rs:2

/* origin: core-math/src/binary64/hypot/hypot.c
 * Copyright (c) 2022 Alexei Sibidanov.
 * Ported to Rust in 2025, TG
 * Approximate CORE-MATH commit: 8ea8ea35c518
 */

library/compiler-builtins/libm/src/math/k_cos.rs:1

// origin: FreeBSD /usr/src/lib/msun/src/k_cos.c
//
// ====================================================
// Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
//
// Developed at SunSoft, a Sun Microsystems, Inc. business.
// Permission to use, copy, modify, and distribute this
// software is freely granted, provided that this notice
// is preserved.
// ====================================================

library/compiler-builtins/libm/src/math/k_sin.rs:1

// origin: FreeBSD /usr/src/lib/msun/src/k_sin.c
//
// ====================================================
// Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
//
// Developed at SunSoft, a Sun Microsystems, Inc. business.
// Permission to use, copy, modify, and distribute this
// software is freely granted, provided that this notice
// is preserved.
// ====================================================

library/compiler-builtins/libm/src/math/k_tan.rs:1

// origin: FreeBSD /usr/src/lib/msun/src/k_tan.c */
//
// ====================================================
// Copyright 2004 Sun Microsystems, Inc.  All Rights Reserved.
//
// Permission to use, copy, modify, and distribute this
// software is freely granted, provided that this notice
// is preserved.
// ====================================================

library/compiler-builtins/libm/src/math/k_tanf.rs:2

/*
 * ====================================================
 * Copyright 2004 Sun Microsystems, Inc.  All Rights Reserved.
 *
 * Permission to use, copy, modify, and distribute this
 * software is freely granted, provided that this notice
 * is preserved.
 * ====================================================
 */

library/compiler-builtins/libm/src/math/rem_pio2.rs:1

// origin: FreeBSD /usr/src/lib/msun/src/e_rem_pio2.c
//
// ====================================================
// Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
//
// Developed at SunPro, a Sun Microsystems, Inc. business.
// Permission to use, copy, modify, and distribute this
// software is freely granted, provided that this notice
// is preserved.
// ====================================================
//
// Optimized by Bruce D. Evans. */

library/compiler-builtins/libm/src/math/sin.rs:1

// origin: FreeBSD /usr/src/lib/msun/src/s_sin.c */
//
// ====================================================
// Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
//
// Developed at SunPro, a Sun Microsystems, Inc. business.
// Permission to use, copy, modify, and distribute this
// software is freely granted, provided that this notice
// is preserved.
// ====================================================

library/compiler-builtins/libm/src/math/tan.rs:1

// origin: FreeBSD /usr/src/lib/msun/src/s_tan.c */
//
// ====================================================
// Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
//
// Developed at SunPro, a Sun Microsystems, Inc. business.
// Permission to use, copy, modify, and distribute this
// software is freely granted, provided that this notice
// is preserved.
// ====================================================

library/core/src/slice/memchr.rs:1

// Original implementation taken from rust-memchr.
// Copyright 2015 Andrew Gallant, bluss and Nicolas Koch

library/vendor/getopts-0.2.24/src/lib.rs:1

// Copyright 2012-2014 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// ignore-lexer-test FIXME #15677

library/std/src/sync/mpmc/mod.rs:113

// This module is used as the implementation for the channels in `sync::mpsc`.
// The implementation comes from the crossbeam-channel crate:
//
// Copyright (c) 2019 The Crossbeam Project Developers
//
// Permission is hereby granted, free of charge, to any
// person obtaining a copy of this software and associated
// documentation files (the "Software"), to deal in the
// Software without restriction, including without
// limitation the rights to use, copy, modify, merge,
// publish, distribute, sublicense, and/or sell copies of
// the Software, and to permit persons to whom the Software
// is furnished to do so, subject to the following
// conditions:
//
// The above copyright notice and this permission notice
// shall be included in all copies or substantial portions
// of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
// ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
// TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
// PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
// SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
// CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
// IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.
