Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
ajou_fx_team5
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
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
battle_C_5
ajou_fx_team5
Commits
77400b94
Commit
77400b94
authored
4 years ago
by
Choi Jinyoung
Browse files
Options
Downloads
Patches
Plain Diff
update readme and makefile
parent
49ec25c0
No related branches found
No related tags found
1 merge request
!2
Test3
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
.gitignore
+1
-0
1 addition, 0 deletions
.gitignore
Makefile
+24
-0
24 additions, 0 deletions
Makefile
README.md
+38
-2
38 additions, 2 deletions
README.md
a.out
+0
-0
0 additions, 0 deletions
a.out
fx_s1615_longlong.c
+1
-1
1 addition, 1 deletion
fx_s1615_longlong.c
with
64 additions
and
3 deletions
.gitignore
+
1
−
0
View file @
77400b94
*.o
*.out
*.exe
.vscode/
This diff is collapsed.
Click to expand it.
Makefile
0 → 100644
+
24
−
0
View file @
77400b94
SRCS
=
calculator.c
OBJS
:=
${
SRCS:.c
=
.o
}
CC
:=
gcc
SYSTEM
:=
TYPE
:=
CFLAGS
:=
-c
-Wall
ajou_fx
:
${OBJS}
$(
CC
)
-o
$@
$^
-lm
.c.o
:
${
CC
}
-D
${
SYSTEM
}
-D
${
TYPE
}
${
CFLAGS
}
$<
clean
:
-
rm
*
.o
rm
ajou_fx
dep
:
gccmakedep
${
SRCS
}
This diff is collapsed.
Click to expand it.
README.md
+
38
−
2
View file @
77400b94
...
...
@@ -53,9 +53,45 @@ gcc Compiler
연산의 정확도는 입력하는 숫자의 범위에 따라 차이가 있지만 보편적으로 가장 정확한 연산을 하는 함수를 진한 색으로 표시하였다.
### 6. 실행 방법
```
make SYSTEM=_FX_(XXYY) TYPE=_FX_(TYPE)
```
```
./ajou_fx
```
### 7. 예시
-
double
```
make SYSTEM=_FX_2308 TYPE=_FX_DOUBLE
./ajou_fx
```
```
1. ADD 2. SUB 3. MUL 4. DIV 5. EXIT : 3
Enter the two number : 23 34
Result = 3
1. ADD 2. SUB 3. MUL 4. DIV 5. EXIT : 5
Program terminated
```
```
make clean
```
-
long long
```
make SYSTEM=_FX_2308 TYPE=_FX_LONGLONG
./ajou_fx
```
```
1. MUL1 2. MUL2 3. MUL3 4. MUL4 5. DIV1 6. DIV2 7. EXIT : 4
Enter the two number : 34 56
6
1. MUL1 2. MUL2 3. MUL3 4. MUL4 5. DIV1 6. DIV2 7. EXIT : 7
Program terminated
```
```
make clean
```
### Reference
[
FX_S1516
](
https://git.ajou.ac.kr/battle_c_3/fx_s1516
)
[
FX_S1615
](
https://git.ajou.ac.kr/realcoding2_team1/battle_c_1
)
...
...
This diff is collapsed.
Click to expand it.
a.out
deleted
100755 → 0
+
0
−
0
View file @
49ec25c0
File deleted
This diff is collapsed.
Click to expand it.
fx_s1615_longlong.c
+
1
−
1
View file @
77400b94
#include
"fx_s1615_double.h"
#include
"fx_1615_longlong.h"
#include
"fx_
s
1615_longlong.h"
#define FX32_90 0x002D0000
#define FX32_180 0x00590000
...
...
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