Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libSDL
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PocketInsanity
libSDL
Commits
772009b6
Commit
772009b6
authored
Jan 28, 2011
by
Sam Lantinga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bump up the default cache line size.
parent
fb824f9a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
SDL_cpuinfo.h
include/SDL_cpuinfo.h
+5
-3
testatomic.c
test/testatomic.c
+1
-0
No files found.
include/SDL_cpuinfo.h
View file @
772009b6
...
@@ -39,10 +39,12 @@ extern "C" {
...
@@ -39,10 +39,12 @@ extern "C" {
/* *INDENT-ON* */
/* *INDENT-ON* */
#endif
#endif
/* This is a guess for the cacheline size used for padding, and is correct
/* This is a guess for the cacheline size used for padding.
* for most x86 processors at this point.
* Most x86 processors have a 64 byte cache line.
* The 64-bit PowerPC processors have a 128 byte cache line.
* We'll use the larger value to be generally safe.
*/
*/
#define SDL_CACHELINE_SIZE
64
#define SDL_CACHELINE_SIZE
128
/**
/**
* This function returns the number of CPU cores available.
* This function returns the number of CPU cores available.
...
...
test/testatomic.c
View file @
772009b6
...
@@ -3,6 +3,7 @@
...
@@ -3,6 +3,7 @@
#include "SDL.h"
#include "SDL.h"
#include "SDL_atomic.h"
#include "SDL_atomic.h"
#include "SDL_assert.h"
#include "SDL_assert.h"
#include "SDL_cpuinfo.h"
/*
/*
Absolutely basic tests just to see if we get the expected value
Absolutely basic tests just to see if we get the expected value
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment