Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
e0a630ed
Commit
e0a630ed
authored
Mar 01, 1999
by
simonm
Browse files
[project @ 1999-03-01 10:25:20 by simonm]
Missing { in mulIntCzh
parent
03b13d39
Changes
1
Hide whitespace changes
Inline
Side-by-side
ghc/includes/PrimOps.h
View file @
e0a630ed
/* -----------------------------------------------------------------------------
* $Id: PrimOps.h,v 1.2
0
1999/0
2/18
1
2
:2
6:11
simonm Exp $
* $Id: PrimOps.h,v 1.2
1
1999/0
3/01
1
0
:2
5:20
simonm Exp $
*
* (c) The GHC Team, 1998-1999
*
...
...
@@ -153,15 +153,16 @@ typedef union {
StgInt32
i
[
2
];
}
long_long_u
;
#define mulIntCzh(r,c,a,b) \
long_long_u z; \
z.l = (StgInt64)a * (StgInt64)b; \
r = z.i[R]; \
c = z.i[C]; \
if (c == 0 || c == -1) { \
c = ((StgWord)((a^b) ^ r)) \
>> (BITS_PER_BYTE * sizeof(I_) - 1); \
} \
#define mulIntCzh(r,c,a,b) \
{ \
long_long_u z; \
z.l = (StgInt64)a * (StgInt64)b; \
r = z.i[R]; \
c = z.i[C]; \
if (c == 0 || c == -1) { \
c = ((StgWord)((a^b) ^ r)) \
>> (BITS_PER_BYTE * sizeof(I_) - 1); \
} \
}
/* Careful: the carry calculation above is extremely delicate. Make sure
* you test it thoroughly after changing it.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment