Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(17)

Unified Diff: src/IceAPFloat.h

Issue 1484003003: Clean up implementation reading literal constants. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Fix bad references to llvm::APInt. Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/IceAPInt.h » ('j') | src/PNaClTranslator.cpp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/IceAPFloat.h
diff --git a/src/IceAPFloat.h b/src/IceAPFloat.h
deleted file mode 100644
index 9aed889225f3cd618a2de14f237b4d97cac6c504..0000000000000000000000000000000000000000
--- a/src/IceAPFloat.h
+++ /dev/null
@@ -1,40 +0,0 @@
-//===-- subzero/src/IceAPFloat.h - Constant float conversions --*- C++ -*--===//
-//
-// The LLVM Compiler Infrastructure
-//
-// This file is distributed under the University of Illinois Open Source
-// License. See LICENSE.TXT for details.
-//
-//===----------------------------------------------------------------------===//
-///
-/// \file
-/// \brief This file implements a class to represent Subzero float and double
-/// values.
-///
-/// Note: This is a simplified version of llvm/include/llvm/ADT/APFloat.h for
-/// use with Subzero.
-//===----------------------------------------------------------------------===//
-
-#ifndef SUBZERO_SRC_ICEAPFLOAT_H
-#define SUBZERO_SRC_ICEAPFLOAT_H
-
-#include "IceAPInt.h"
-
-namespace Ice {
-
-template <typename IntType, typename FpType>
-inline FpType convertAPIntToFp(const APInt &Int) {
- static_assert(sizeof(IntType) == sizeof(FpType),
- "IntType and FpType should be the same width");
- assert(Int.getBitWidth() == sizeof(IntType) * CHAR_BIT);
- union {
- IntType IntValue;
- FpType FpValue;
- } Converter;
- Converter.IntValue = static_cast<IntType>(Int.getRawData());
- return Converter.FpValue;
-}
-
-} // end of namespace Ice
-
-#endif // SUBZERO_SRC_ICEAPFLOAT_H
« no previous file with comments | « no previous file | src/IceAPInt.h » ('j') | src/PNaClTranslator.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698