// Copyright © 2026 Mikhail Hogrefe
//
// Uses code adopted from the FLINT Library.
//
// Copyright © 2008-2011 William Hart
//
// This file is part of Malachite.
//
// Malachite is free software: you can redistribute it and/or modify it under the terms of the GNU
// Lesser General Public License (LGPL) as published by the Free Software Foundation; either version
// 3 of the License, or (at your option) any later version. See <https://www.gnu.org/licenses/>.
use cratePolynomialCoefficient;
use crate*;
// Sets `out` to the lowest `out.len()` coefficients of the square of the polynomial with
// coefficients `xs`, which is nonempty, by Schönhage–Strassen multiplication. `out.len()` must
// be positive and less than `2 * xs.len()`.
//
// This is equivalent to `_fmpz_poly_mullow_SS` from `fmpz_poly/mullow_SS.c`, FLINT 3.6.0, where
// both factors are the same, as `_fmpz_poly_sqrlow` calls it.
crate_test_fn!