1 | //===-- Unittests for uksqrtui --------------------------------------------===// |
2 | // |
3 | // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. |
4 | // See https://llvm.org/LICENSE.txt for license information. |
5 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
6 | // |
7 | //===----------------------------------------------------------------------===// |
8 | |
9 | #include "ISqrtTest.h" |
10 | |
11 | #include "src/__support/fixed_point/sqrt.h" |
12 | #include "src/stdfix/uksqrtui.h" |
13 | |
14 | unsigned accum uksqrtui_fast(unsigned int x) { |
15 | return LIBC_NAMESPACE::fixed_point::isqrt_fast(x); |
16 | } |
17 | |
18 | LIST_ISQRT_TESTS(UI, unsigned int, LIBC_NAMESPACE::uksqrtui); |
19 | |
20 | LIST_ISQRT_TESTS(UIFast, unsigned int, uksqrtui_fast); |
21 | |