Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
GHC
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
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
Model registry
Operate
Terraform modules
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
Show more breadcrumbs
Gesh
GHC
Commits
7753d428
Commit
7753d428
authored
24 years ago
by
Reuben Thomas
Browse files
Options
Downloads
Patches
Plain Diff
[project @ 2000-07-21 09:11:19 by rrt]
Changed ERTSF_ to EXTFUN_RTS.
parent
03ca0adc
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ghc/includes/PrimOps.h
+48
-48
48 additions, 48 deletions
ghc/includes/PrimOps.h
with
48 additions
and
48 deletions
ghc/includes/PrimOps.h
+
48
−
48
View file @
7753d428
/* -----------------------------------------------------------------------------
* $Id: PrimOps.h,v 1.5
8
2000/07/2
0 17:06:41
rrt Exp $
* $Id: PrimOps.h,v 1.5
9
2000/07/2
1 09:11:19
rrt Exp $
*
* (c) The GHC Team, 1998-1999
*
...
...
@@ -382,24 +382,24 @@ typedef union {
/* The rest are all out-of-line: -------- */
/* Integer arithmetic */
ERTS
F_
(
plusIntegerzh_fast
);
ERTS
F_
(
minusIntegerzh_fast
);
ERTS
F_
(
timesIntegerzh_fast
);
ERTS
F_
(
gcdIntegerzh_fast
);
ERTS
F_
(
quotRemIntegerzh_fast
);
ERTS
F_
(
quotIntegerzh_fast
);
ERTS
F_
(
remIntegerzh_fast
);
ERTS
F_
(
divExactIntegerzh_fast
);
ERTS
F_
(
divModIntegerzh_fast
);
E
XTFUN_
RTS
(
plusIntegerzh_fast
);
E
XTFUN_
RTS
(
minusIntegerzh_fast
);
E
XTFUN_
RTS
(
timesIntegerzh_fast
);
E
XTFUN_
RTS
(
gcdIntegerzh_fast
);
E
XTFUN_
RTS
(
quotRemIntegerzh_fast
);
E
XTFUN_
RTS
(
quotIntegerzh_fast
);
E
XTFUN_
RTS
(
remIntegerzh_fast
);
E
XTFUN_
RTS
(
divExactIntegerzh_fast
);
E
XTFUN_
RTS
(
divModIntegerzh_fast
);
/* Conversions */
ERTS
F_
(
int2Integerzh_fast
);
ERTS
F_
(
word2Integerzh_fast
);
ERTS
F_
(
addr2Integerzh_fast
);
E
XTFUN_
RTS
(
int2Integerzh_fast
);
E
XTFUN_
RTS
(
word2Integerzh_fast
);
E
XTFUN_
RTS
(
addr2Integerzh_fast
);
/* Floating-point decodings */
ERTS
F_
(
decodeFloatzh_fast
);
ERTS
F_
(
decodeDoublezh_fast
);
E
XTFUN_
RTS
(
decodeFloatzh_fast
);
E
XTFUN_
RTS
(
decodeDoublezh_fast
);
/* -----------------------------------------------------------------------------
Word64 PrimOps.
...
...
@@ -445,8 +445,8 @@ ERTSF_(decodeDoublezh_fast);
}
/* Conversions */
ERTS
F_
(
int64ToIntegerzh_fast
);
ERTS
F_
(
word64ToIntegerzh_fast
);
E
XTFUN_
RTS
(
int64ToIntegerzh_fast
);
E
XTFUN_
RTS
(
word64ToIntegerzh_fast
);
/* The rest are (way!) out of line, implemented via C entry points.
*/
...
...
@@ -583,7 +583,7 @@ extern I_ resetGenSymZh(void);
#define unsafeFreezzeByteArrayzh(r,a) r=(a)
ERTS
F_
(
unsafeThawArrayzh_fast
);
E
XTFUN_
RTS
(
unsafeThawArrayzh_fast
);
#define sizzeofByteArrayzh(r,a) \
r = (((StgArrWords *)(a))->words * sizeof(W_))
...
...
@@ -592,14 +592,14 @@ ERTSF_(unsafeThawArrayzh_fast);
/* and the out-of-line ones... */
ERTS
F_
(
newCharArrayzh_fast
);
ERTS
F_
(
newIntArrayzh_fast
);
ERTS
F_
(
newWordArrayzh_fast
);
ERTS
F_
(
newAddrArrayzh_fast
);
ERTS
F_
(
newFloatArrayzh_fast
);
ERTS
F_
(
newDoubleArrayzh_fast
);
ERTS
F_
(
newStablePtrArrayzh_fast
);
ERTS
F_
(
newArrayzh_fast
);
E
XTFUN_
RTS
(
newCharArrayzh_fast
);
E
XTFUN_
RTS
(
newIntArrayzh_fast
);
E
XTFUN_
RTS
(
newWordArrayzh_fast
);
E
XTFUN_
RTS
(
newAddrArrayzh_fast
);
E
XTFUN_
RTS
(
newFloatArrayzh_fast
);
E
XTFUN_
RTS
(
newDoubleArrayzh_fast
);
E
XTFUN_
RTS
(
newStablePtrArrayzh_fast
);
E
XTFUN_
RTS
(
newArrayzh_fast
);
/* encoding and decoding of floats/doubles. */
...
...
@@ -612,10 +612,10 @@ ERTSF_(newArrayzh_fast);
#ifdef FLOATS_AS_DOUBLES
#define decodeFloatzh_fast decodeDoublezh_fast
#else
ERTS
F_
(
decodeFloatzh_fast
);
E
XTFUN_
RTS
(
decodeFloatzh_fast
);
#endif
ERTS
F_
(
decodeDoublezh_fast
);
E
XTFUN_
RTS
(
decodeDoublezh_fast
);
/* grimy low-level support functions defined in StgPrimFloat.c */
...
...
@@ -642,7 +642,7 @@ extern StgInt isFloatNegativeZero(StgFloat f);
newMutVar is out of line.
-------------------------------------------------------------------------- */
ERTS
F_
(
newMutVarzh_fast
);
E
XTFUN_
RTS
(
newMutVarzh_fast
);
#define readMutVarzh(r,a) r=(P_)(((StgMutVar *)(a))->var)
#define writeMutVarzh(a,v) (P_)(((StgMutVar *)(a))->var)=(v)
...
...
@@ -657,26 +657,26 @@ ERTSF_(newMutVarzh_fast);
/* Assume external decl of EMPTY_MVAR_info is in scope by now */
#define isEmptyMVarzh(r,a) r=(I_)((GET_INFO((StgMVar*)(a))) == &EMPTY_MVAR_info )
ERTS
F_
(
newMVarzh_fast
);
ERTS
F_
(
takeMVarzh_fast
);
ERTS
F_
(
tryTakeMVarzh_fast
);
ERTS
F_
(
putMVarzh_fast
);
E
XTFUN_
RTS
(
newMVarzh_fast
);
E
XTFUN_
RTS
(
takeMVarzh_fast
);
E
XTFUN_
RTS
(
tryTakeMVarzh_fast
);
E
XTFUN_
RTS
(
putMVarzh_fast
);
/* -----------------------------------------------------------------------------
Delay/Wait PrimOps
-------------------------------------------------------------------------- */
ERTS
F_
(
waitReadzh_fast
);
ERTS
F_
(
waitWritezh_fast
);
ERTS
F_
(
delayzh_fast
);
E
XTFUN_
RTS
(
waitReadzh_fast
);
E
XTFUN_
RTS
(
waitWritezh_fast
);
E
XTFUN_
RTS
(
delayzh_fast
);
/* -----------------------------------------------------------------------------
Primitive I/O, error-handling PrimOps
-------------------------------------------------------------------------- */
ERTS
F_
(
catchzh_fast
);
ERTS
F_
(
raisezh_fast
);
E
XTFUN_
RTS
(
catchzh_fast
);
E
XTFUN_
RTS
(
raisezh_fast
);
extern
void
stg_exit
(
I_
n
)
__attribute__
((
noreturn
));
...
...
@@ -686,7 +686,7 @@ extern void stg_exit(I_ n) __attribute__ ((noreturn));
#ifndef PAR
ERTS
F_
(
makeStableNamezh_fast
);
E
XTFUN_
RTS
(
makeStableNamezh_fast
);
#define stableNameToIntzh(r,s) (r = ((StgStableName *)s)->sn)
...
...
@@ -710,12 +710,12 @@ ERTSF_(makeStableNamezh_fast);
Concurrency/Exception PrimOps.
-------------------------------------------------------------------------- */
ERTS
F_
(
forkzh_fast
);
ERTS
F_
(
yieldzh_fast
);
ERTS
F_
(
killThreadzh_fast
);
ERTS
F_
(
seqzh_fast
);
ERTS
F_
(
blockAsyncExceptionszh_fast
);
ERTS
F_
(
unblockAsyncExceptionszh_fast
);
E
XTFUN_
RTS
(
forkzh_fast
);
E
XTFUN_
RTS
(
yieldzh_fast
);
E
XTFUN_
RTS
(
killThreadzh_fast
);
E
XTFUN_
RTS
(
seqzh_fast
);
E
XTFUN_
RTS
(
blockAsyncExceptionszh_fast
);
E
XTFUN_
RTS
(
unblockAsyncExceptionszh_fast
);
#define myThreadIdzh(t) (t = CurrentTSO)
...
...
@@ -831,8 +831,8 @@ extern int cmp_thread(const StgTSO *tso1, const StgTSO *tso2);
#ifndef PAR
ERTS
F_
(
mkWeakzh_fast
);
ERTS
F_
(
finalizzeWeakzh_fast
);
E
XTFUN_
RTS
(
mkWeakzh_fast
);
E
XTFUN_
RTS
(
finalizzeWeakzh_fast
);
#define deRefWeakzh(code,val,w) \
if (((StgWeak *)w)->header.info == &WEAK_info) { \
...
...
@@ -855,7 +855,7 @@ ERTSF_(finalizzeWeakzh_fast);
#define ForeignObj_CLOSURE_DATA(c) (((StgForeignObj *)c)->data)
ERTS
F_
(
mkForeignObjzh_fast
);
E
XTFUN_
RTS
(
mkForeignObjzh_fast
);
#define writeForeignObjzh(res,datum) \
(ForeignObj_CLOSURE_DATA(res) = (P_)(datum))
...
...
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