mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-03-05 05:20:31 +00:00
Merge branch 'linux' of https://github.com/just-bank/Torque3D into just-bank-linux
This commit is contained in:
commit
2d9fa140ed
45 changed files with 597 additions and 58 deletions
|
|
@ -523,17 +523,17 @@ template<class T,class S> void dCopyArray(T *dst, const S *src, dsize_t size)
|
|||
dst[i] = (T)src[i];
|
||||
}
|
||||
|
||||
extern void* dMemcpy(void *dst, const void *src, dsize_t size);
|
||||
extern void* dMemmove(void *dst, const void *src, dsize_t size);
|
||||
extern void* dMemset(void *dst, int c, dsize_t size);
|
||||
extern int dMemcmp(const void *ptr1, const void *ptr2, dsize_t size);
|
||||
|
||||
// Special case of the above function when the arrays are the same type (use memcpy)
|
||||
template<class T> void dCopyArray(T *dst, const T *src, dsize_t size)
|
||||
{
|
||||
dMemcpy(dst, src, size * sizeof(T));
|
||||
}
|
||||
|
||||
extern void* dMemcpy(void *dst, const void *src, dsize_t size);
|
||||
extern void* dMemmove(void *dst, const void *src, dsize_t size);
|
||||
extern void* dMemset(void *dst, int c, dsize_t size);
|
||||
extern int dMemcmp(const void *ptr1, const void *ptr2, dsize_t size);
|
||||
|
||||
/// The dALIGN macro ensures the passed declaration is
|
||||
/// data aligned at 16 byte boundaries.
|
||||
#if defined( TORQUE_COMPILER_VISUALC )
|
||||
|
|
|
|||
|
|
@ -522,9 +522,9 @@ next:
|
|||
// processors per core
|
||||
|
||||
tblSMTID[j] = GetNzbSubID(apicID, MaxLPPerCore, 0);
|
||||
tblCoreID[j] = GetNzbSubID(apicID,
|
||||
MaxCorePerPhysicalProc(),
|
||||
(unsigned char) find_maskwidth(MaxLPPerCore));
|
||||
unsigned char maxCorePPP = MaxCorePerPhysicalProc();
|
||||
unsigned char maskWidth = find_maskwidth(MaxLPPerCore);
|
||||
tblCoreID[j] = GetNzbSubID(apicID, maxCorePPP, maskWidth);
|
||||
|
||||
// Extract package ID, assume single cluster.
|
||||
// Shift value is the mask width for max Logical per package
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue