Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
f2f4e976
Commit
f2f4e976
authored
Mar 06, 2004
by
Kaveh R. Ghazi
Committed by
Kaveh Ghazi
Mar 06, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* builtins.c: Consistently use logN not log* in comments.
From-SVN: r79009
parent
2b3493c8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
+8
-4
gcc/ChangeLog
+4
-0
gcc/builtins.c
+4
-4
No files found.
gcc/ChangeLog
View file @
f2f4e976
2004-03-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* builtins.c: Consistently use logN not log* in comments.
2004-03-05 Andreas Krebbel <krebbel1@de.ibm.com>
* rtl.h (mem_expr_equal_p): Function prototype added.
...
...
gcc/builtins.c
View file @
f2f4e976
...
...
@@ -6172,8 +6172,8 @@ real_dconstp (tree expr, const REAL_VALUE_TYPE *value)
}
/* A subroutine of fold_builtin to fold the various logarithmic
functions. EXP is the CALL_EXPR of a call to a builtin log
*
function. VALUE is the base of the log
*
function. */
functions. EXP is the CALL_EXPR of a call to a builtin log
N
function. VALUE is the base of the log
N
function. */
static
tree
fold_builtin_logarithm
(
tree
exp
,
const
REAL_VALUE_TYPE
*
value
)
...
...
@@ -6187,7 +6187,7 @@ fold_builtin_logarithm (tree exp, const REAL_VALUE_TYPE *value)
tree
arg
=
TREE_VALUE
(
arglist
);
const
enum
built_in_function
fcode
=
builtin_mathfn_code
(
arg
);
/* Optimize log
*
(1.0) = 0.0. */
/* Optimize log
N
(1.0) = 0.0. */
if
(
real_onep
(
arg
))
return
build_real
(
type
,
dconst0
);
...
...
@@ -6218,7 +6218,7 @@ fold_builtin_logarithm (tree exp, const REAL_VALUE_TYPE *value)
||
fcode
==
BUILT_IN_EXP10L
))))
return
convert
(
type
,
TREE_VALUE
(
TREE_OPERAND
(
arg
,
1
)));
/* Optimize log
*
(func()) for various exponential functions. We
/* Optimize log
N
(func()) for various exponential functions. We
want to determine the value "x" and the power "exponent" in
order to transform logN(x**exponent) into exponent*logN(x). */
if
(
flag_unsafe_math_optimizations
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment