[all-commits] [llvm/llvm-project] f4066f: [clang] Use constant rounding mode for floating li...
Serge Pavlov via All-commits
all-commits at lists.llvm.org
Thu May 16 22:06:56 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: f4066fa2dd21c65bf0e24a479634c9a2d276cf8e
https://github.com/llvm/llvm-project/commit/f4066fa2dd21c65bf0e24a479634c9a2d276cf8e
Author: Serge Pavlov <sepavloff at gmail.com>
Date: 2024-05-17 (Fri, 17 May 2024)
Changed paths:
M clang/include/clang/Lex/LiteralSupport.h
M clang/lib/Lex/LiteralSupport.cpp
M clang/lib/Sema/SemaExpr.cpp
M clang/test/AST/const-fpfeatures.c
M clang/test/AST/const-fpfeatures.cpp
Log Message:
-----------
[clang] Use constant rounding mode for floating literals (#90877)
Conversion of floating-point literal to binary representation must be
made using constant rounding mode, which can be changed using pragma
FENV_ROUND. For example, the literal "0.1F" should be representes by
either 0.099999994 or 0.100000001 depending on the rounding direction.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list