summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/clzti2.c
diff options
context:
space:
mode:
authorEdward O'Callaghan <eocallaghan@auroraux.org>2009-09-03 09:12:20 +0000
committerEdward O'Callaghan <eocallaghan@auroraux.org>2009-09-03 09:12:20 +0000
commit665671ec897f2f1ba7fe632895a47330389fda40 (patch)
tree340c656a5ab1da4615e6ccc71476bede340c2629 /compiler-rt/lib/clzti2.c
parentd194e13b8d94c7eec1fcb7242b43860619fe881a (diff)
downloadbcm5719-llvm-665671ec897f2f1ba7fe632895a47330389fda40.tar.gz
bcm5719-llvm-665671ec897f2f1ba7fe632895a47330389fda40.zip
Fix some files that got left behind in early changeset to unnamed unions fix. Credit to Roman Divacky.
llvm-svn: 80913
Diffstat (limited to 'compiler-rt/lib/clzti2.c')
-rw-r--r--compiler-rt/lib/clzti2.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler-rt/lib/clzti2.c b/compiler-rt/lib/clzti2.c
index eb05e2e23fe..805688fbe22 100644
--- a/compiler-rt/lib/clzti2.c
+++ b/compiler-rt/lib/clzti2.c
@@ -25,8 +25,8 @@ __clzti2(ti_int a)
{
twords x;
x.all = a;
- const di_int f = -(x.high == 0);
- return __builtin_clzll((x.high & ~f) | (x.low & f)) +
+ const di_int f = -(x.s.high == 0);
+ return __builtin_clzll((x.s.high & ~f) | (x.s.low & f)) +
((si_int)f & ((si_int)(sizeof(di_int) * CHAR_BIT)));
}
OpenPOWER on IntegriCloud