Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Suyu
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package 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
many-archive
Suyu
Commits
b75ac243
There was an error fetching the commit references. Please try again later.
Commit
b75ac243
authored
10 years ago
by
Yuri Kunde Schlesner
Browse files
Options
Downloads
Patches
Plain Diff
Use std sized types instead of platform specific typedefs
parent
efacd65b
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/common/common_types.h
+11
-32
11 additions, 32 deletions
src/common/common_types.h
src/common/file_util.cpp
+1
-0
1 addition, 0 deletions
src/common/file_util.cpp
with
12 additions
and
32 deletions
src/common/common_types.h
+
11
−
32
View file @
b75ac243
...
@@ -25,42 +25,21 @@
...
@@ -25,42 +25,21 @@
#pragma once
#pragma once
#include
<cmath>
#include
<cmath>
#include
<cstdint>
#include
<xmmintrin.h>
// data_types__m128.cpp
#include
<xmmintrin.h>
// data_types__m128.cpp
#ifdef _WIN32
typedef
std
::
uint8_t
u8
;
///< 8-bit unsigned byte
typedef
std
::
uint16_t
u16
;
///< 16-bit unsigned short
typedef
std
::
uint32_t
u32
;
///< 32-bit unsigned word
typedef
std
::
uint64_t
u64
;
///< 64-bit unsigned int
#include
<tchar.h>
typedef
std
::
int8_t
s8
;
///< 8-bit signed byte
typedef
std
::
int16_t
s16
;
///< 16-bit signed short
typedef
std
::
int32_t
s32
;
///< 32-bit signed word
typedef
std
::
int64_t
s64
;
///< 64-bit signed int
typedef
unsigned
__int8
u8
;
///< 8-bit unsigned byte
typedef
float
f32
;
///< 32-bit floating point
typedef
unsigned
__int16
u16
;
///< 16-bit unsigned short
typedef
double
f64
;
///< 64-bit floating point
typedef
unsigned
__int32
u32
;
///< 32-bit unsigned word
typedef
unsigned
__int64
u64
;
///< 64-bit unsigned int
typedef
signed
__int8
s8
;
///< 8-bit signed byte
typedef
signed
__int16
s16
;
///< 16-bit signed short
typedef
signed
__int32
s32
;
///< 32-bit signed word
typedef
signed
__int64
s64
;
///< 64-bit signed int
#else
typedef
unsigned
char
u8
;
///< 8-bit unsigned byte
typedef
unsigned
short
u16
;
///< 16-bit unsigned short
typedef
unsigned
int
u32
;
///< 32-bit unsigned word
typedef
unsigned
long
long
u64
;
///< 64-bit unsigned int
typedef
signed
char
s8
;
///< 8-bit signed byte
typedef
signed
short
s16
;
///< 16-bit signed short
typedef
signed
int
s32
;
///< 32-bit signed word
typedef
signed
long
long
s64
;
///< 64-bit signed int
// For using windows lock code
#define TCHAR char
#define LONG int
#endif // _WIN32
typedef
float
f32
;
///< 32-bit floating point
typedef
double
f64
;
///< 64-bit floating point
#include
"common/common.h"
#include
"common/common.h"
...
...
This diff is collapsed.
Click to expand it.
src/common/file_util.cpp
+
1
−
0
View file @
b75ac243
...
@@ -13,6 +13,7 @@
...
@@ -13,6 +13,7 @@
#include
<commdlg.h>
// for GetSaveFileName
#include
<commdlg.h>
// for GetSaveFileName
#include
<io.h>
#include
<io.h>
#include
<direct.h>
// getcwd
#include
<direct.h>
// getcwd
#include
<tchar.h>
#else
#else
#include
<sys/param.h>
#include
<sys/param.h>
#include
<dirent.h>
#include
<dirent.h>
...
...
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