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
96a1b3af
Commit
96a1b3af
authored
Aug 28, 1992
by
James Van Artsdalen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(init_decl_processing): Add sin and cos as built-in functions.
From-SVN: r1976
parent
1ba1e2a8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
gcc/c-decl.c
+7
-0
No files found.
gcc/c-decl.c
View file @
96a1b3af
...
...
@@ -2770,6 +2770,11 @@ init_decl_processing ()
BUILT_IN_STRLEN
,
"strlen"
);
builtin_function
(
"__builtin_fsqrt"
,
double_ftype_double
,
BUILT_IN_FSQRT
,
"sqrt"
);
builtin_function
(
"__builtin_sin"
,
double_ftype_double
,
BUILT_IN_SIN
,
"sin"
);
builtin_function
(
"__builtin_cos"
,
double_ftype_double
,
BUILT_IN_COS
,
"cos"
);
/* In an ANSI C program, it is okay to supply built-in meanings
for these functions, since applications cannot validly use them
with any other meaning.
...
...
@@ -2788,6 +2793,8 @@ init_decl_processing ()
NULL_PTR
);
builtin_function
(
"strlen"
,
strlen_ftype
,
BUILT_IN_STRLEN
,
NULL_PTR
);
builtin_function
(
"sqrt"
,
double_ftype_double
,
BUILT_IN_FSQRT
,
NULL_PTR
);
builtin_function
(
"sin"
,
double_ftype_double
,
BUILT_IN_SIN
,
NULL_PTR
);
builtin_function
(
"cos"
,
double_ftype_double
,
BUILT_IN_COS
,
NULL_PTR
);
/* Declare these functions volatile
to avoid spurious "control drops through" warnings. */
...
...
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