| 695 | struct SquareRoot { |
| 696 | template <typename T, typename Arg> |
| 697 | static enable_if_floating_value<Arg, T> Call(KernelContext*, Arg arg, Status*) { |
| 698 | static_assert(std::is_same<T, Arg>::value, ""); |
| 699 | if (arg < 0.0) { |
| 700 | return std::numeric_limits<T>::quiet_NaN(); |
| 701 | } |
| 702 | return std::sqrt(arg); |
| 703 | } |
| 704 | }; |
| 705 | |
| 706 | struct SquareRootChecked { |
nothing calls this directly
no outgoing calls
no test coverage detected