xref: /llvm-project/libc/test/src/stdfix/uhksqrtus_test.cpp (revision ad33fe12812a07c80d5b988e99bea11d5f73414b)
1 //===-- Unittests for uhksqrtus -------------------------------------------===//
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/uhksqrtus.h"
13 
uhksqrtus_fast(unsigned short x)14 unsigned short accum uhksqrtus_fast(unsigned short x) {
15   return LIBC_NAMESPACE::fixed_point::isqrt_fast(x);
16 }
17 
18 LIST_ISQRT_TESTS(US, unsigned short, LIBC_NAMESPACE::uhksqrtus);
19 
20 LIST_ISQRT_TESTS(USFast, unsigned short, uhksqrtus_fast);
21