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
Model registry
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
Iris
stdpp
Merge requests
!254
Add little endian encoding of Z
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Add little endian encoding of Z
msammler/little_endian
into
master
Overview
62
Commits
9
Pipelines
0
Changes
1
Merged
Michael Sammler
requested to merge
msammler/little_endian
into
master
3 years ago
Overview
28
Commits
9
Pipelines
0
Changes
1
Expand
0
0
Merge request reports
Viewing commit
cbc474cc
Prev
Next
Show latest version
1 file
+
2
−
2
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
cbc474cc
improve comment
· cbc474cc
Michael Sammler
authored
3 years ago
theories/list_numbers.v
+
2
−
2
Options
@@ -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
.
Loading