diff options
author | Pirama Arumuga Nainar <pirama@google.com> | 2016-09-19 23:00:23 -0700 |
---|---|---|
committer | Pirama Arumuga Nainar <pirama@google.com> | 2016-10-25 09:36:15 -0700 |
commit | c58a43648cd6121c51a2e795a28e2ef90d7813e6 (patch) | |
tree | 57439d6c56ca9d40484dda480dc5ea3bc46d6e31 /test/builtins | |
parent | 45fe08687e5fb295ceeca1990af95a7d2ed3215f (diff) | |
download | compiler-rt-c58a43648cd6121c51a2e795a28e2ef90d7813e6.tar.gz |
Update aosp/master compiler-rt for rebase to r275480
Bug: http://b/31320715
This merges commit db963a21048fd7242daae74666cb221f796f33c3 from
aosp/dev.
Test: Build AOSP and run RenderScript tests (host tests for slang and
libbcc, RsTest, CTS)
Change-Id: I8bdd651c1759c4306d62c34edec1d8d9536c9715
Diffstat (limited to 'test/builtins')
-rw-r--r-- | test/builtins/Unit/fp_test.h | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/test/builtins/Unit/fp_test.h b/test/builtins/Unit/fp_test.h index ea101ccf8..1f0e7be6d 100644 --- a/test/builtins/Unit/fp_test.h +++ b/test/builtins/Unit/fp_test.h @@ -54,11 +54,6 @@ static inline uint16_t toRep16(uint16_t x) return x; } -static inline uint16_t toRep16(uint16_t x) -{ - return x; -} - static inline uint32_t toRep32(float x) { uint32_t ret; @@ -100,24 +95,6 @@ static inline int compareResultH(uint16_t result, return 1; } -static inline int compareResultH(uint16_t result, - uint16_t expected) -{ - uint16_t rep = toRep16(result); - - if (rep == expected){ - return 0; - } - // test other posible NaN representation(signal NaN) - else if (expected == 0x7e00U){ - if ((rep & 0x7c00U) == 0x7c00U && - (rep & 0x3ffU) > 0){ - return 0; - } - } - return 1; -} - static inline int compareResultF(float result, uint32_t expected) { @@ -262,11 +239,6 @@ static inline uint16_t makeNaN16(uint16_t rand) return fromRep16(0x7c00U | (rand & 0x7fffU)); } -static inline uint16_t makeNaN16(uint16_t rand) -{ - return fromRep16(0x7c00U | (rand & 0x7fffU)); -} - static inline float makeNaN32(uint32_t rand) { return fromRep32(0x7f800000U | (rand & 0x7fffffU)); @@ -289,11 +261,6 @@ static inline uint16_t makeInf16() return fromRep16(0x7c00U); } -static inline uint16_t makeInf16() -{ - return fromRep16(0x7c00U); -} - static inline float makeInf32() { return fromRep32(0x7f800000U); |