Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Definition of `widemul` in the package

Aperta
#353 5 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
12/100
Tipo di issue
Funzionalità
Chiarezza
Da chiarire
Stato di attività
Attiva
Stack tecnologico
julia
Ambito
backend

Direzione di ricerca

The issue asks for a type-safe definition of the result type of widemul for fixed-point numbers, with integer bits i1 + i2 and fractional bits f1 + f2. Start by reading the two comments on the issue, since the design is still being discussed and no decision is recorded. Work here needs a maintainer decision on the definition before any code change, so it is not a good first contribution.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

enhancement needs comments

This is how multiplication of fractional values works in binary numbers:

  • multiplying two numbers with i1 and i2 (possibly leading zeros, possibly sign-including) integer bits, the result will have at most i1 + i2 integer bits.
  • multiplying two numbers with f1 and f2 (possibly trailing zeros) fractional digits, the result will have at most f1 + f2 fractional bits.

So the only general, type-safe definition (independent of the values) which is aligned to "doubling the number of bits from Base" is the definition of the result type to have i1 + i2 integer bits and f1 + f2 fractional bits.

Lingua principale
Julia
Stelle
95
Fork
38
Merge medio
17h 14m
PR unite (30g)
11

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di JuliaMath/FixedPointNumbers.jl

Tutte le issue di JuliaMath/FixedPointNumbers.jl

Issue simili

Altre issue su Julia

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.