projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
df11b54
)
Fix getSwappedBytes for double.
author
Pawel Bylica
<chfast@gmail.com>
Tue, 19 May 2015 08:44:15 +0000
(08:44 +0000)
committer
Pawel Bylica
<chfast@gmail.com>
Tue, 19 May 2015 08:44:15 +0000
(08:44 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@237673
91177308
-0d34-0410-b5e6-
96231b3b80d8
include/llvm/Support/SwapByteOrder.h
patch
|
blob
|
history
diff --git
a/include/llvm/Support/SwapByteOrder.h
b/include/llvm/Support/SwapByteOrder.h
index 70564be890ee90c3e900fc42d53a24fdba7d7508..7761fa1d7e01499045b494aa4679da7aa2dff989 100644
(file)
--- a/
include/llvm/Support/SwapByteOrder.h
+++ b/
include/llvm/Support/SwapByteOrder.h
@@
-104,7
+104,7
@@
inline float getSwappedBytes(float C) {
return out.f;
}
-inline
float
getSwappedBytes(double C) {
+inline
double
getSwappedBytes(double C) {
union {
uint64_t i;
double d;