Comments (4)
There are two sextend: The one you have in mind (which goes from one word size to another word size) and the one currently in here (which ignores the upper bits of the input word). Both have valid use cases.
from coqutil.
I understand, but why is it in the word interface?
from coqutil.
Would you prefer to implement sextend in terms of "more fundamental" operations like testbit, bitwise and, shift, etc? This should work, the question is just whether some day we care about performance of evaluating word expressions and find a super efficient word representation with a native sextend, then it would be better to have it in the interface. Not sure though how relevant that scenario is but that's what I had in mind when I was working on the interface.
from coqutil.
I think my main concern is that sextend does not seem like a natural word operation to me, in that its input is not clearly of the same type of as the output. Thus I would define it as an operation that does work on words, but is not a required part of the word interface.
from coqutil.
Related Issues (20)
- make is very noisy even when there is nothing to be done HOT 2
- Can `word.unsigned_sru
- coqutil.Map.SortedListString.map cannot be extracted HOT 5
- There is no validate target, and if there were one, it would fail
- It would be better if coqutil used no axioms HOT 5
- LittleEndian.combine should not inline tuple.to_list HOT 3
- Compatibility with older versions of Coq HOT 3
- eradicating LittleEndian.combine HOT 2
- Build fails on 8.11 HOT 10
- Merging fiat-crypto utilities into coqutil? HOT 2
- hooking `word` into `lia` HOT 1
- please update `tested` branch HOT 4
- Please stop emailing me when tested fails to update HOT 1
- coqutil.Z.bitblast not found in 8.13 HOT 3
- Weird Makefile logic? HOT 8
- Please pick the version you prefer for Coq 8.16 in Coq Platform 2022.09 HOT 6
- Please pick the version you prefer for Coq 8.17 in Coq Platform 2023.03 HOT 2
- Please pick the version you prefer for Coq 8.18 in Coq Platform 2023.10 HOT 4
- it should be possible to `sudo make install` even when the `sudo` account doesn't have `coq_makefile` in `PATH` HOT 7
- Please create a tag for Coq 8.19 in Coq Platform 2024.01
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from coqutil.