JuliaSIMD / JuliaSIMD/LoopVectorization.jl

possible to support UInt128?

Open
#234 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Julia
Stars
789
Forks
73
PR merge metrics
No merged PRs in 30d

Description

Hello!

I am trying to `@avx` the following code:
```
function fastmod!(n::Array{UInt32,N},T::Mod) where N
@avx n .= (convert.(UInt128,(T.modulo_inv .* n)) .* T.modulo) .>> 64
end
```
the error I get is

```
MethodError: no method matching UInt128(::VectorizationBase.Vec{8, UInt32})
Closest candidates are:
(::Type{T})(::T) where T<:Number at boot.jl:760
(::Type{T})(::AbstractChar) where T<:Union{AbstractChar, Number} at char.jl:50
(::Type{T})(::BigInt) where T<:Union{UInt128, UInt16, UInt32, UInt64, UInt8} at gmp.jl:347
```
which I assume means that UInt128 conversion is not supported.

It is possible on 64-bit architectures to implement this?

Thanks!

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.