JuliaMath / JuliaMath/FixedPointNumbers.jl

[Feature Request] shifting with << and >>

Open
#250 1 comment 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Julia
Stars
95
Forks
38
Avg merge
13m
Merged PRs (30d)
2

Description

I would like to use `<<` and `>>` to shift bits of fixed point numbers.

For example, suppose `x` is a fixed point, then I want

`x >> 1`

to be something like

`reinterpret(typeof(x), reinterpret(Int, x) >> 1)`

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.