Skip to content

Commit

Permalink
Fix mac build (#693)
Browse files Browse the repository at this point in the history
# Pull Request

## What problem does this PR solve?

Issue Number: Fixed #

## Possible side effects?

- Performance:

- Backward compatibility:
  • Loading branch information
tpppppub committed May 17, 2024
1 parent d1a6e8d commit 5f10ab1
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions libspu/kernel/hal/fxp_approx_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -413,12 +413,14 @@ TEST(FxpTest, Atan2) {
// as plaintext for -0.0 can not be distinguished in fixed-point.
xt::xarray<float> y = {
{34.1, 0.234, 34.1, 0.234, -34.1, -0.234, -34.1, -0.234},
{0, 0, 1.0, -1.0, 0, std::pow<float>(2.0, 17.0),
std::pow<float>(2.0, 17.0), std::pow<float>(2.0, -17.0)}};
{0, 0, 1.0, -1.0, 0, static_cast<float>(std::pow(2.0, 17.0)),
static_cast<float>(std::pow(2.0, 17.0)),
static_cast<float>(std::pow(2.0, -17.0))}};
xt::xarray<float> x = {
{23.2, 23.2, -23.2, -23.2, -23.2, -23.2, 23.2, 23.2},
{1.0, -1.0, 0, 0, 0, std::pow<float>(2.0, 17.0),
std::pow<float>(2.0, -17.0), std::pow<float>(2.0, 17.0)}};
{1.0, -1.0, 0, 0, 0, static_cast<float>(std::pow(2.0, 17.0)),
static_cast<float>(std::pow(2.0, -17.0)),
static_cast<float>(std::pow(2.0, 17.0))}};

// public atan2
{
Expand Down

0 comments on commit 5f10ab1

Please sign in to comment.