Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
stdpp
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Adam
stdpp
Commits
cbc474cc
"git-rts@gitlab.mpi-sws.org:proux/iris.git" did not exist on "cdaf74c3be05efdf43a81741383d81e951f8ba56"
Commit
cbc474cc
authored
3 years ago
by
Michael Sammler
Browse files
Options
Downloads
Patches
Plain Diff
improve comment
parent
2554d103
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
theories/list_numbers.v
+2
-2
2 additions, 2 deletions
theories/list_numbers.v
with
2 additions
and
2 deletions
theories/list_numbers.v
+
2
−
2
View file @
cbc474cc
...
...
@@ -30,8 +30,8 @@ Notation max_list := (max_list_with id).
(** [Z_to_little_endian m n z] converts [z] into a list of [m] [n]-bit
integers in the little endian format. A negative [z] is encoded using
two's-complement. If [z] uses more than [m * n] bits, these additional
bits are discarded (see [Z_to_little_endian_to_Z]). [n] should be
non-negative.
*)
bits are discarded (see [Z_to_little_endian_to_Z]).
[m] and
[n] should be
non-negative.
*)
Definition
Z_to_little_endian
(
m
n
:
Z
)
:
Z
→
list
Z
:=
Z
.
iter
m
(
λ
rec
z
,
Z
.
land
z
(
Z
.
ones
n
)
::
rec
(
z
≫
n
)
%
Z
)
(
λ
_,
[])
.
Global
Arguments
Z_to_little_endian
:
simpl
never
.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment