Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cpp_introduction
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
Service Desk
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
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Kiril Klein
cpp_introduction
Commits
e8a66070
Commit
e8a66070
authored
5 years ago
by
Kevin Höllring
Browse files
Options
Downloads
Patches
Plain Diff
Fix wrong type of gcc specific types
parent
8d764072
Branches
android-msm-shamrock-3.10-nougat-mr1-release
Tags
android-lego-7.1.1_r0.12
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/sample_2.cpp
+47
-52
47 additions, 52 deletions
src/sample_2.cpp
with
47 additions
and
52 deletions
src/sample_2.cpp
+
47
−
52
View file @
e8a66070
...
@@ -44,10 +44,8 @@ int main(int argc, char** arguments) {
...
@@ -44,10 +44,8 @@ int main(int argc, char** arguments) {
// Special gcc feature: even larger integers
// Special gcc feature: even larger integers
// Warning: These cannot normally be written to cout/cerr
// Warning: These cannot normally be written to cout/cerr
// and many common operations might not be supported
// and many common operations might not be supported
int128_t
var9
;
__int128_t
var9
;
uint128_t
var10
;
__uint128_t
var10
;
// Floating point types
// Floating point types
...
@@ -56,14 +54,11 @@ int main(int argc, char** arguments) {
...
@@ -56,14 +54,11 @@ int main(int argc, char** arguments) {
// FLT_MIN = 1.175494e-38
// FLT_MIN = 1.175494e-38
// FLT_MAX = 3.402823e+38
// FLT_MAX = 3.402823e+38
// 64 bit floating point
// 64 bit floating point
double
fp_number_2
=
1e10
;
double
fp_number_2
=
1e10
;
// DBL_MIN = 2.2250738585072014e-308
// DBL_MIN = 2.2250738585072014e-308
// DBL_MAX = 1.7976931348623157e+308
// DBL_MAX = 1.7976931348623157e+308
// Strings of text
// Strings of text
std
::
string
text_contents
=
"Hello world"
;
std
::
string
text_contents
=
"Hello world"
;
...
...
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