Skip to content

Commit

Permalink
aix: add work around for f16 type
Browse files Browse the repository at this point in the history
AIX builds started to fail after this commit https://chromium.googlesource.com/v8/v8.git/+/d057564707d3a5df074b7f49a12a2f1e96638f94.

Change-Id: I25a5c4ae3b4fe5c27a9fb9e35e2bcd2bbed40351
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/5789180
Reviewed-by: Clemens Backes <[email protected]>
Reviewed-by: Nico Hartmann <[email protected]>
Commit-Queue: Clemens Backes <[email protected]>
Cr-Commit-Position: refs/heads/main@{#95952}
  • Loading branch information
abmusse authored and V8 LUCI CQ committed Sep 4, 2024
1 parent e9256f2 commit 97199f6
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/utils/utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@

#if defined(V8_OS_AIX)
#include <fenv.h> // NOLINT(build/c++11)

#include "src/wasm/float16.h"
#endif

#ifdef _MSC_VER
Expand Down Expand Up @@ -814,6 +816,13 @@ T FpOpWorkaround(T input, T value) {
}
return value;
}

template <>
inline Float16 FpOpWorkaround(Float16 input, Float16 value) {
float result = FpOpWorkaround(input.ToFloat32(), value.ToFloat32());
return Float16::FromFloat32(result);
}

#endif

V8_EXPORT_PRIVATE bool PassesFilter(base::Vector<const char> name,
Expand Down

0 comments on commit 97199f6

Please sign in to comment.