[PATCH] D46926: Conversion between Fixed Point and Floating Point Numbers
Leonard Chan via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue May 15 19:58:49 PDT 2018
leonardchan created this revision.
leonardchan added reviewers: phosek, mcgrathr, jakehehrlich.
leonardchan added a project: clang.
This patch has the implementation and tests for converting between fixed point and floating point numbers.
The conversion process is simply dividing the fixed point value, as an integer, by 2^(# of fractional bits) as a float.
This is a parent of https://reviews.llvm.org/D46925
Repository:
rC Clang
https://reviews.llvm.org/D46926
Files:
include/clang/AST/OperationKinds.def
include/clang/Basic/DiagnosticSemaKinds.td
lib/AST/Expr.cpp
lib/AST/ExprConstant.cpp
lib/CodeGen/CGExpr.cpp
lib/CodeGen/CGExprAgg.cpp
lib/CodeGen/CGExprComplex.cpp
lib/CodeGen/CGExprConstant.cpp
lib/CodeGen/CGExprScalar.cpp
lib/Edit/RewriteObjCFoundationAPI.cpp
lib/Sema/SemaCast.cpp
lib/Sema/SemaExpr.cpp
lib/StaticAnalyzer/Core/ExprEngineC.cpp
test/Frontend/fixed_point_validation.c
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D46926.146986.patch
Type: text/x-patch
Size: 11733 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180516/c5fef8c3/attachment.bin>
More information about the cfe-commits
mailing list