mirror of
https://github.com/alliedmodders/hl2sdk.git
synced 2025-09-19 03:56:10 +08:00
Update libs.
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -103,7 +103,7 @@ DEFINES +=-DX64BITS -DPLATFORM_64BITS -DVPROF_LEVEL=1 -DSWDS -D_finite=finite -D
|
||||
UNDEF = -Usprintf -Ustrncpy -UPROTECTED_THINGS_ENABLE
|
||||
|
||||
BASE_CFLAGS = -fPIC -fno-strict-aliasing -Wall -Wsign-compare -Wno-conversion -Wno-overloaded-virtual -Wno-non-virtual-dtor -Wno-invalid-offsetof \
|
||||
-Wno-unknown-pragmas -Wno-unused
|
||||
-Wno-unknown-pragmas -Wno-unused -Wno-c++11-narrowing
|
||||
SHLIBCFLAGS = -fPIC
|
||||
|
||||
# Clang >= 3 || GCC >= 4.7
|
||||
|
@ -30,7 +30,7 @@ DO_CC += -o $@ -c $<
|
||||
|
||||
LIB_OBJS= \
|
||||
$(LIB_OBJ_DIR)/bitbuf.o \
|
||||
$(LIB_OBJ_DIR)/byteswap.o \
|
||||
$(LIB_OBJ_DIR)/cbyteswap.o \
|
||||
$(LIB_OBJ_DIR)/characterset.o \
|
||||
$(LIB_OBJ_DIR)/checksum_crc.o \
|
||||
$(LIB_OBJ_DIR)/checksum_md5.o \
|
||||
@ -42,7 +42,6 @@ LIB_OBJS= \
|
||||
$(LIB_OBJ_DIR)/mempool.o \
|
||||
$(LIB_OBJ_DIR)/memstack.o \
|
||||
$(LIB_OBJ_DIR)/NetAdr.o \
|
||||
$(LIB_OBJ_DIR)/newbitbuf.o \
|
||||
$(LIB_OBJ_DIR)/processor_detect.o \
|
||||
$(LIB_OBJ_DIR)/rangecheckedvar.o \
|
||||
$(LIB_OBJ_DIR)/stringpool.o \
|
||||
@ -50,9 +49,7 @@ LIB_OBJS= \
|
||||
$(LIB_OBJ_DIR)/tier1.o \
|
||||
$(LIB_OBJ_DIR)/undiff.o \
|
||||
$(LIB_OBJ_DIR)/uniqueid.o \
|
||||
$(LIB_OBJ_DIR)/utlbuffer.o \
|
||||
$(LIB_OBJ_DIR)/utlbufferutil.o \
|
||||
$(LIB_OBJ_DIR)/utlstring.o \
|
||||
$(LIB_OBJ_DIR)/utlsymbol.o \
|
||||
|
||||
all: dirs $(NAME).$(SHLIBEXT)
|
||||
|
@ -22,7 +22,7 @@
|
||||
<ProjectName>mathlib</ProjectName>
|
||||
<ProjectGuid>{884C66F2-7F84-4570-AE6C-B634C1113D69}</ProjectGuid>
|
||||
<RootNamespace>mathlib</RootNamespace>
|
||||
<WindowsTargetPlatformVersion>10.0.22000.0</WindowsTargetPlatformVersion>
|
||||
<WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
|
||||
|
@ -1436,11 +1436,11 @@ public:
|
||||
{
|
||||
while( ! MessageWaiting() )
|
||||
SignalEvent.Wait();
|
||||
QueueAccessMutex.Lock();
|
||||
QueueAccessMutex.Lock( __FILE__, __LINE__ );
|
||||
if (! Head )
|
||||
{
|
||||
// multiple readers could make this null
|
||||
QueueAccessMutex.Unlock();
|
||||
QueueAccessMutex.Unlock( __FILE__, __LINE__ );
|
||||
continue;
|
||||
}
|
||||
*( pMsg ) = Head->Data;
|
||||
@ -1448,7 +1448,7 @@ public:
|
||||
Head = Head->Next;
|
||||
if (! Head) // if empty, fix tail ptr
|
||||
Tail = NULL;
|
||||
QueueAccessMutex.Unlock();
|
||||
QueueAccessMutex.Unlock( __FILE__, __LINE__ );
|
||||
delete remove_this;
|
||||
break;
|
||||
}
|
||||
@ -1459,7 +1459,7 @@ public:
|
||||
MsgNode *new1=new MsgNode;
|
||||
new1->Data=Msg;
|
||||
new1->Next=NULL;
|
||||
QueueAccessMutex.Lock();
|
||||
QueueAccessMutex.Lock( __FILE__, __LINE__ );
|
||||
if ( Tail )
|
||||
{
|
||||
Tail->Next=new1;
|
||||
@ -1471,7 +1471,7 @@ public:
|
||||
Tail = new1;
|
||||
}
|
||||
SignalEvent.Set();
|
||||
QueueAccessMutex.Unlock();
|
||||
QueueAccessMutex.Unlock( __FILE__, __LINE__ );
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -16,6 +16,7 @@
|
||||
|
||||
#include "tier0/dbg.h"
|
||||
#include <string.h>
|
||||
#include <cstdint>
|
||||
#include "tier0/platform.h"
|
||||
|
||||
#include "tier0/memalloc.h"
|
||||
|
@ -1157,7 +1157,7 @@ float bf_read::ReadBitCoordMP( bool bIntegral, bool bLowPrecision )
|
||||
-1.f/(1<<COORD_FRACTIONAL_BITS_MP_LOWPRECISION)
|
||||
};
|
||||
//equivalent to: float multiply = mul_table[ ((flags & SIGN) ? 1 : 0) + bLowPrecision*2 ];
|
||||
float multiply = *(float*)((uintptr_t)&mul_table[0] + (flags & 4) + bLowPrecision*8);
|
||||
float multiply = *(float*)((uintp)&mul_table[0] + (flags & 4) + bLowPrecision*8);
|
||||
|
||||
static const unsigned char numbits_table[8] =
|
||||
{
|
||||
|
@ -22,7 +22,7 @@
|
||||
<ProjectName>tier1</ProjectName>
|
||||
<ProjectGuid>{E1DA8DB8-FB4C-4B14-91A6-98BCED6B9720}</ProjectGuid>
|
||||
<RootNamespace>tier1</RootNamespace>
|
||||
<WindowsTargetPlatformVersion>10.0.18362.0</WindowsTargetPlatformVersion>
|
||||
<WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
|
||||
|
Reference in New Issue
Block a user