diff options
Diffstat (limited to 'compiler-rt/lib/negdi2.c')
-rw-r--r-- | compiler-rt/lib/negdi2.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/compiler-rt/lib/negdi2.c b/compiler-rt/lib/negdi2.c index db2d865bd8d..2d5cd630159 100644 --- a/compiler-rt/lib/negdi2.c +++ b/compiler-rt/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; } |