From: Bevin Hansson Date: Thu, 23 Jan 2020 08:16:31 +0000 (+0100) Subject: [AST] Compress the FixedPointSemantics type better. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d5d0d8eb7d094f8270721662882c0094fc4fdc29;p=platform%2Fupstream%2Fllvm.git [AST] Compress the FixedPointSemantics type better. Reviewers: rjmccall, leonardchan, bjope Subscribers: cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D73257 --- diff --git a/clang/include/clang/Basic/FixedPoint.h b/clang/include/clang/Basic/FixedPoint.h index fd8bae6..55465c6 100644 --- a/clang/include/clang/Basic/FixedPoint.h +++ b/clang/include/clang/Basic/FixedPoint.h @@ -75,11 +75,11 @@ public: } private: - unsigned Width; - unsigned Scale; - bool IsSigned; - bool IsSaturated; - bool HasUnsignedPadding; + unsigned Width : 16; + unsigned Scale : 13; + unsigned IsSigned : 1; + unsigned IsSaturated : 1; + unsigned HasUnsignedPadding : 1; }; /// The APFixedPoint class works similarly to APInt/APSInt in that it is a