Skip to content

[FEATURE] multiply int64s as int32s #2185

@DenisYaroshevskiy

Description

@DenisYaroshevskiy

on x86 while _mm256_mullo_epi32 exists, _mm256_mullo_epi64 does not.

Clang has some scheme to do it though: https://godbolt.org/z/K8rvrroPT

We should do like clang.

(p.s. _mm256_mullo_epi64 also seems missing from our code)

If this is actually a first issue for someone

Should be fixed somewhere here

if constexpr( c == category::float64x8 ) return _mm512_mul_pd(a, b);

Here is how to build https://jfalcou.github.io/eve/dev_cmake.html

Some tests https://github.com/jfalcou/eve/blob/main/test/unit/module/core/mul.cpp
unit.core.mul.exe is the target

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions