Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Bump up the default cache line size.
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Jan 28, 2011
1 parent 34692e4 commit b05c120
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
8 changes: 5 additions & 3 deletions include/SDL_cpuinfo.h
Expand Up @@ -39,10 +39,12 @@ extern "C" {
/* *INDENT-ON* */
#endif

/* This is a guess for the cacheline size used for padding, and is correct
* for most x86 processors at this point.
/* This is a guess for the cacheline size used for padding.
* 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.
Expand Down
1 change: 1 addition & 0 deletions test/testatomic.c
Expand Up @@ -3,6 +3,7 @@
#include "SDL.h"
#include "SDL_atomic.h"
#include "SDL_assert.h"
#include "SDL_cpuinfo.h"

/*
Absolutely basic tests just to see if we get the expected value
Expand Down

0 comments on commit b05c120

Please sign in to comment.