Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
F
fx_s3132
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
battle_c_4
fx_s3132
Commits
731e936a
Commit
731e936a
authored
4 years ago
by
HwangJungmok
Browse files
Options
Downloads
Patches
Plain Diff
Edit Makefile
parent
2a93598b
No related branches found
No related tags found
1 merge request
!10
Edit Makefile
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
Makefile
+2
-2
2 additions, 2 deletions
Makefile
a.exe
+0
-0
0 additions, 0 deletions
a.exe
fx_3132.c
+7
-7
7 additions, 7 deletions
fx_3132.c
fx_s3132.h
+8
-0
8 additions, 0 deletions
fx_s3132.h
test.c
+1
-0
1 addition, 0 deletions
test.c
with
18 additions
and
9 deletions
Makefile
+
2
−
2
View file @
731e936a
SRCS
:=
fx_3132.c
SRCS
:=
test.c
fx_3132.c
OBJS
:=
$(
SRCS:.c
=
.o
)
CC
:=
gcc
CFLAGS
:=
-c
-Wall
fx_3132
:
$(OBJS)
$(
CC
)
-o
$@
$^
$(
CC
)
-o
$@
$^
-lm
clean
:
-
rm
$(
OBJS
)
...
...
This diff is collapsed.
Click to expand it.
a.exe
0 → 100644
+
0
−
0
View file @
731e936a
File added
This diff is collapsed.
Click to expand it.
fx_3132.c
+
7
−
7
View file @
731e936a
...
...
@@ -2,19 +2,19 @@
#include
<math.h>
#include
"fx_s3132.h"
fx_3132
sin
e
(
fx_3132
a
)
{
fx_3132
sin
2
(
fx_3132
a
)
{
return
double_to_fx
(
sin
(
fx_to_double
(
a
)));
};
fx_3132
sqrt
1
(
fx_3132
a
)
{
fx_3132
sqrt
2
(
fx_3132
a
)
{
return
double_to_fx
(
sqrt
(
fx_to_double
(
a
)));
};
fx_3132
power
(
fx_3132
a
,
fx_3132
b
)
{
fx_3132
power
2
(
fx_3132
a
,
fx_3132
b
)
{
return
double_to_fx
(
pow
(
fx_to_double
(
a
),
fx_to_double
(
b
)));
};
fx_3132
pi
()
{
return
double_to_fx
(
fx_to_double
(
fx_
PI
));
fx_3132
pi
2
()
{
return
double_to_fx
(
fx_to_double
(
PI
));
};
fx_3132
piReverse
()
{
return
double_to_fx
((
fx_to_double
(
1
/
fx_
PI
)));
fx_3132
piReverse
2
()
{
return
double_to_fx
((
fx_to_double
(
1
/
PI
)));
};
This diff is collapsed.
Click to expand it.
fx_s3132.h
+
8
−
0
View file @
731e936a
...
...
@@ -18,3 +18,11 @@
#define fx_PI_Reverse() (double_to_fx((1/PI)))
typedef
long
long
fx_3132
;
fx_3132
sin2
(
fx_3132
a
);
fx_3132
sqrt2
(
fx_3132
a
);
fx_3132
power2
(
fx_3132
a
,
fx_3132
b
);
fx_3132
piReverse2
();
fx_3132
pi2
();
This diff is collapsed.
Click to expand it.
test.c
+
1
−
0
View file @
731e936a
#include
<stdio.h>
#include
<math.h>
#include
"fx_s3132.h"
int
main
()
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment