Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
pcc004
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
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
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
Nayoung Kim
pcc004
Commits
34a44afb
Commit
34a44afb
authored
3 years ago
by
Nayoung Kim
Browse files
Options
Downloads
Patches
Plain Diff
editing
parent
5104cf2f
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
+5
-3
5 additions, 3 deletions
README.md
with
5 additions
and
3 deletions
README.md
+
5
−
3
View file @
34a44afb
...
...
@@ -1252,14 +1252,16 @@ int main()
* -O2 코드보다 빠르다는 보장은 없음
* 인라인 함수 (inline)

* 호출 없이 함수의 코드를 그 자리에서 실행
* 컴파일러는 함수를 사용하는 부분에 함수의 코드를 복제해서 넣어줌
* 함수 호출 과정이 없어 속도가 비교적 빠름
```
inline 반환값자료형 함수이름(매개변수자료형 매개변수이름)
{
}
```
* 호출 없이 함수의 코드를 그 자리에서 실행
* 컴파일러는 함수를 사용하는 부분에 함수의 코드를 복제해서 넣어줌
* 함수 호출 과정이 없어 속도가 비교적 빠름
```
#include <stdio.h>
inline int add(int a, int b)
...
...
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