Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
F
fx_s1516
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_3
fx_s1516
Commits
bde6d305
Commit
bde6d305
authored
4 years ago
by
joon2974
Browse files
Options
Downloads
Patches
Plain Diff
overflow 문구 추가
parent
090c6001
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
+4
-0
4 additions, 0 deletions
README.md
with
4 additions
and
0 deletions
README.md
+
4
−
0
View file @
bde6d305
...
...
@@ -175,6 +175,8 @@
### 2. Multiplication
두 수를 곱할 때 매우 큰 수끼리 곱하게 되면
**overflow가 발생할 수 있다**
. 하지만 이번 과제에서는 overflow를 무시해도 되기 때문에 별도의 처리는 하지 않았다.
-
**fx_s1516_longlong_mul0(fx_s1516 a, fx_s1516 b)**
-
두 수 a, b를 받아 a를 fixed64(long long)으로 형 변환 한 후 b와 곱하여 16 만큼 오른쪽으로 shift하여 연산한다.
-
**fx_s1516_longlong_mul1(fx_s1516 a, fx_s1516 b)**
...
...
@@ -244,6 +246,7 @@ fx_s1516_longlong_mul3: 22649
fx_s1516_longlong_mul4: 22888
```
-
fx_s1516 30000, 50000에 대해서 곱셈 연산을 한 결과이다.
-
mul0, mul1, mul4는 높은 정확도를 보이는 것으로 보아 overflow가 발생하지 않았고, mul4에서는 shift로 인한 비트 손실이 발생하지 않았음을 알 수 있다.
-
mul2, mul3은 다른 함수에 비해 비교적 낮은 정확도를 보였는데 많은 수의 비트를 shift하다 보니 비트 손실이 발생하여 정확도가 낮아졌음을 예측해 볼 수 있다.
...
...
@@ -256,6 +259,7 @@ fx_s1516_longlong_div1: 131072
fx_s1516_longlong_div2: 142857
```
-
fx_s1516 30000, 50000에 대해서 나눗셈 연산을 한 결과이다.
-
div0, div1은 높은 정확도를 보이며 shift로 인해 a의 값이 손실되지 않았음을 알 수 있다.
-
div2는 비교적 낮은 정확도를 보이는데 b를 shift하며 어느 정도의 데이터가 손실되었음을 예측해 볼 수 있다.
...
...
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