Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WASM SUpport - Take II #1710

Open
wants to merge 10 commits into
base: main
Choose a base branch
from
Open

WASM SUpport - Take II #1710

wants to merge 10 commits into from

Conversation

jfalcou
Copy link
Owner

@jfalcou jfalcou commented Dec 20, 2023

No description provided.

@jfalcou jfalcou force-pushed the feat/wasm-support branch 2 times, most recently from e274494 to 160c38f Compare December 20, 2023 18:51
Copy link
Collaborator

@DenisYaroshevskiy DenisYaroshevskiy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please reply to nits

@@ -11,7 +11,7 @@

#if !defined(EVE_ABI_DETECTED)
# define EVE_CURRENT_ABI ::eve::emulated_
# define EVE_CURRENT_API ::eve::cpu_
# define EVE_CURRENT_API ::eve::undefined_simd_
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why this change?

template<auto Version>
inline bool is_supported(spy::wasm_simd_info<Version> const&) noexcept
{
#if defined(EVE_HW_WASM)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

current_api >= eve::wasm?

{
static constexpr std::size_t general = 2 * sizeof(void *);
static constexpr std::size_t simd = 2 * sizeof(void *);
};
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you remind me what this is? especially * sizeof(void *)? are you being too cute with no comments?

{
using type = wide<T, N>;
return self ^= type {bit_cast(other, as<T> {})};
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why you don't forward to cpu for hese ones

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants