Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
I
integer-gmp
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Glasgow Haskell Compiler
Packages
integer-gmp
Commits
f2c99316
Commit
f2c99316
authored
13 years ago
by
Simon Marlow
Browse files
Options
Downloads
Patches
Plain Diff
Track changes to the way we reference CCCS in GHC (was: W_[CCCS], now: CCCS)
parent
5cc9b63a
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
cbits/gmp-wrappers.cmm
+5
-5
5 additions, 5 deletions
cbits/gmp-wrappers.cmm
with
5 additions
and
5 deletions
cbits/gmp-wrappers.cmm
+
5
−
5
View file @
f2c99316
...
@@ -66,7 +66,7 @@ integer_cmm_int2Integerzh
...
@@ -66,7 +66,7 @@ integer_cmm_int2Integerzh
ALLOC_PRIM
(
SIZEOF_StgArrWords
+
WDS
(
1
),
NO_PTRS
,
integer_cmm_int2Integerzh
);
ALLOC_PRIM
(
SIZEOF_StgArrWords
+
WDS
(
1
),
NO_PTRS
,
integer_cmm_int2Integerzh
);
p
=
Hp
-
SIZEOF_StgArrWords
;
p
=
Hp
-
SIZEOF_StgArrWords
;
SET_HDR
(
p
,
stg_ARR_WORDS_info
,
W_
[
CCCS
]
);
SET_HDR
(
p
,
stg_ARR_WORDS_info
,
CCCS
);
StgArrWords_bytes
(
p
)
=
SIZEOF_W
;
StgArrWords_bytes
(
p
)
=
SIZEOF_W
;
/* mpz_set_si is inlined here, makes things simpler */
/* mpz_set_si is inlined here, makes things simpler */
...
@@ -100,7 +100,7 @@ integer_cmm_word2Integerzh
...
@@ -100,7 +100,7 @@ integer_cmm_word2Integerzh
ALLOC_PRIM
(
SIZEOF_StgArrWords
+
WDS
(
1
),
NO_PTRS
,
integer_cmm_word2Integerzh
);
ALLOC_PRIM
(
SIZEOF_StgArrWords
+
WDS
(
1
),
NO_PTRS
,
integer_cmm_word2Integerzh
);
p
=
Hp
-
SIZEOF_StgArrWords
;
p
=
Hp
-
SIZEOF_StgArrWords
;
SET_HDR
(
p
,
stg_ARR_WORDS_info
,
W_
[
CCCS
]
);
SET_HDR
(
p
,
stg_ARR_WORDS_info
,
CCCS
);
StgArrWords_bytes
(
p
)
=
SIZEOF_W
;
StgArrWords_bytes
(
p
)
=
SIZEOF_W
;
if
(
val
!=
0
)
{
if
(
val
!=
0
)
{
...
@@ -147,7 +147,7 @@ integer_cmm_int64ToIntegerzh
...
@@ -147,7 +147,7 @@ integer_cmm_int64ToIntegerzh
NO_PTRS
,
integer_cmm_int64ToIntegerzh
);
NO_PTRS
,
integer_cmm_int64ToIntegerzh
);
p
=
Hp
-
SIZEOF_StgArrWords
-
WDS
(
words_needed
)
+
WDS
(
1
);
p
=
Hp
-
SIZEOF_StgArrWords
-
WDS
(
words_needed
)
+
WDS
(
1
);
SET_HDR
(
p
,
stg_ARR_WORDS_info
,
W_
[
CCCS
]
);
SET_HDR
(
p
,
stg_ARR_WORDS_info
,
CCCS
);
StgArrWords_bytes
(
p
)
=
WDS
(
words_needed
);
StgArrWords_bytes
(
p
)
=
WDS
(
words_needed
);
if
(
%lt
(
hi
,
0
)
)
{
if
(
%lt
(
hi
,
0
)
)
{
...
@@ -202,7 +202,7 @@ integer_cmm_word64ToIntegerzh
...
@@ -202,7 +202,7 @@ integer_cmm_word64ToIntegerzh
NO_PTRS
,
integer_cmm_word64ToIntegerzh
);
NO_PTRS
,
integer_cmm_word64ToIntegerzh
);
p
=
Hp
-
SIZEOF_StgArrWords
-
WDS
(
words_needed
)
+
WDS
(
1
);
p
=
Hp
-
SIZEOF_StgArrWords
-
WDS
(
words_needed
)
+
WDS
(
1
);
SET_HDR
(
p
,
stg_ARR_WORDS_info
,
W_
[
CCCS
]
);
SET_HDR
(
p
,
stg_ARR_WORDS_info
,
CCCS
);
StgArrWords_bytes
(
p
)
=
WDS
(
words_needed
);
StgArrWords_bytes
(
p
)
=
WDS
(
words_needed
);
if
(
hi
!=
0
)
{
if
(
hi
!=
0
)
{
...
@@ -532,7 +532,7 @@ integer_cmm_decodeDoublezh
...
@@ -532,7 +532,7 @@ integer_cmm_decodeDoublezh
/* Be prepared to tell Lennart-coded integer_cbits_decodeDouble
/* Be prepared to tell Lennart-coded integer_cbits_decodeDouble
where mantissa.d can be put (it does not care about the rest) */
where mantissa.d can be put (it does not care about the rest) */
p
=
Hp
-
ARR_SIZE
+
WDS
(
1
);
p
=
Hp
-
ARR_SIZE
+
WDS
(
1
);
SET_HDR
(
p
,
stg_ARR_WORDS_info
,
W_
[
CCCS
]
);
SET_HDR
(
p
,
stg_ARR_WORDS_info
,
CCCS
);
StgArrWords_bytes
(
p
)
=
DOUBLE_MANTISSA_SIZE
;
StgArrWords_bytes
(
p
)
=
DOUBLE_MANTISSA_SIZE
;
MP_INT__mp_d
(
mp_tmp1
)
=
BYTE_ARR_CTS
(
p
);
MP_INT__mp_d
(
mp_tmp1
)
=
BYTE_ARR_CTS
(
p
);
...
...
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