Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
F
fx_s4716
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_6
fx_s4716
Commits
605c7052
Commit
605c7052
authored
4 years ago
by
Yoon Jieun
Browse files
Options
Downloads
Patches
Plain Diff
Update README.md
parent
e0c3e36e
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+47
-4
47 additions, 4 deletions
README.md
with
47 additions
and
4 deletions
README.md
+
47
−
4
View file @
605c7052
...
...
@@ -84,7 +84,6 @@
-
test.c, fx_s4716_double.c 와 fx_s4716_double.h를 make 명령어 하나로 자동으로 빌드하게 해줌
-
gcc 컴파일러를 사용하였으며 mytest 실행파일과 각 c파일의 목적파일을 자동으로 생성
*
-lm : math.h 라이브러리 추가
-
make clean 명령어를 통해 자신이 지우고 싶은 실행파일과 목적파일을 정하여 삭제할 수 있음
...
...
@@ -253,3 +252,47 @@
!
[
64d
](
./images/64d.PNG
)
DIV연산에서 첫 값에 대한 쉬프트 연산의 크기 순으로 속도가 잘 나오는 것을 알 수 있다. DIV1의 경우 16 DIV2의 경우 8 DIV3의 경우 12 만큼 왼쪽 쉬프트를 해주었기에 1 -> 3 -> 2순이다.
## Project #3 (SRS & Test project with MISRA-C regulation)
### Software Requirement Specification(SRS)
1.
Introduction
*
1.1 Purpose
*
Fixed point arithmetic
*
1.2 Definitions, acronyms, and abbreviations
*
fx : fixed point(고정 소수점 방식 사용)
*
s : signed(부호 1비트 사용)
*
4716 : 정수부 47비트, 소수부 16비트 사용
2.
Overall description
*
2.1 Product functions
*
fx_s4716_add : 덧셈
*
fx_s4716_sub : 뺄셈
*
fx_s4716_mul : 곱셈
*
fx_s4716_div : 나눗셈
*
fx_s4716_sin : a의 sin값
*
fx_s4716_pow : a의 제곱
*
fx_s4716_sqrt : a의 제곱근
*
fx_s4716_pi : pi값
*
2.2 Product execution
```
C
make
./mytest
```
3.
Specific requirements
*
Make first prototype fx_s4716_double.c with double and math.h define macro fx_s4716.
*
Make first product fx_s4716_longlong.c with longlong define macro fx_s4716_longlong.h test program test.c.
*
It assume that 64 bit computer and OS.
*
Ignore overflow.
*
성능 비교
### MISRA-C regulation
*
[
MISRA-C_specific
](
https://git.ajou.ac.kr/battle_c_6/fx_s4716/-/blob/master/MISRA_C_specific.pdf
)
*
[
MISRA-C_summary
](
https://git.ajou.ac.kr/battle_c_6/fx_s4716/-/blob/master/MISRA_C_summary.pdf
)
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