From 0b57cec536236d46e3dba9bd041533462f33dbb7 Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Fri, 20 Dec 2019 19:53:05 +0000 Subject: Move all sources from the llvm project into contrib/llvm-project. This uses the new layout of the upstream repository, which was recently migrated to GitHub, and converted into a "monorepo". That is, most of the earlier separate sub-projects with their own branches and tags were consolidated into one top-level directory, and are now branched and tagged together. Updating the vendor area to match this layout is next. --- contrib/libc++/src/valarray.cpp | 57 ----------------------------------------- 1 file changed, 57 deletions(-) delete mode 100644 contrib/libc++/src/valarray.cpp (limited to 'contrib/libc++/src/valarray.cpp') diff --git a/contrib/libc++/src/valarray.cpp b/contrib/libc++/src/valarray.cpp deleted file mode 100644 index 7bf0b4175889..000000000000 --- a/contrib/libc++/src/valarray.cpp +++ /dev/null @@ -1,57 +0,0 @@ -//===------------------------ valarray.cpp --------------------------------===// -// -// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -// See https://llvm.org/LICENSE.txt for license information. -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#include "valarray" - -_LIBCPP_BEGIN_NAMESPACE_STD - -// These two symbols are part of the v1 ABI but not part of the >=v2 ABI. -#if _LIBCPP_ABI_VERSION == 1 -template valarray::valarray(size_t); -template valarray::~valarray(); -#endif - -template void valarray::resize(size_t, size_t); - -void -gslice::__init(size_t __start) -{ - valarray __indices(__size_.size()); - size_t __k = __size_.size() != 0; - for (size_t __i = 0; __i < __size_.size(); ++__i) - __k *= __size_[__i]; - __1d_.resize(__k); - if (__1d_.size()) - { - __k = 0; - __1d_[__k] = __start; - while (true) - { - size_t __i = __indices.size() - 1; - while (true) - { - if (++__indices[__i] < __size_[__i]) - { - ++__k; - __1d_[__k] = __1d_[__k-1] + __stride_[__i]; - for (size_t __j = __i + 1; __j != __indices.size(); ++__j) - __1d_[__k] -= __stride_[__j] * (__size_[__j] - 1); - break; - } - else - { - if (__i == 0) - return; - __indices[__i--] = 0; - } - } - } - } -} - -_LIBCPP_END_NAMESPACE_STD -- cgit v1.2.3