diff options
Diffstat (limited to 'lib/negdi2.c')
-rw-r--r-- | lib/negdi2.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/negdi2.c b/lib/negdi2.c index db2d865bd..2d5cd6301 100644 --- a/lib/negdi2.c +++ b/lib/negdi2.c @@ -18,5 +18,7 @@ di_int __negdi2(di_int a) { - return ~a + 1; + // Note: this routine is here for API compatibility; any sane compiler + // should expand it inline. + return -a; } |