Compilation fix again

This commit is contained in:
Nekotekina 2014-04-26 00:09:23 +04:00
parent 6facd8d9c6
commit a24cb250d8
4 changed files with 90 additions and 8 deletions

2
asmjit

@ -1 +1 @@
Subproject commit 316812daf0d734f1e3dc3abb05785737513274f0
Subproject commit b76922fde96232030be302b3bdd9673e9bcec568

View File

@ -96,12 +96,12 @@
</ImportGroup>
<PropertyGroup Label="UserMacros" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<OutDir>.\libs\$(Configuration)_x86\</OutDir>
<OutDir>.\libs\$(Configuration)\</OutDir>
<IntDir>
</IntDir>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<OutDir>.\libs\$(Configuration)_x86\</OutDir>
<OutDir>.\libs\$(Configuration)\</OutDir>
<IntDir>
</IntDir>
</PropertyGroup>

View File

@ -393,7 +393,7 @@ public:
}
}
Mem XmmConst(const __m128i data)
Mem XmmConst(const __m128i& data)
{
for (u32 i = 0; i < rec.imm_table.size(); i++)
{
@ -407,11 +407,95 @@ public:
return oword_ptr(*imm_var, shift);
}
Mem XmmConst(const __m128 data)
Mem XmmConst(const __m128& data)
{
return XmmConst((__m128i&)data);
}
__m128i _mm_set1_epi32(u32 v)
{
__m128i res;
for (u32 i = 0; i < 4; i++) res.m128i_u32[i] = v;
return res;
}
__m128i _mm_set1_epi16(u16 v)
{
__m128i res;
for (u32 i = 0; i < 8; i++) res.m128i_u16[i] = v;
return res;
}
__m128i _mm_set1_epi8(u8 v)
{
__m128i res;
for (u32 i = 0; i < 16; i++) res.m128i_u8[i] = v;
return res;
}
__m128 _mm_set1_ps(float v)
{
__m128 res;
for (u32 i = 0; i < 4; i++) res.m128_f32[i] = v;
return res;
}
__m128i _mm_set_epi32(u32 v3, u32 v2, u32 v1, u32 v0)
{
__m128i res;
res.m128i_u32[0] = v0;
res.m128i_u32[1] = v1;
res.m128i_u32[2] = v2;
res.m128i_u32[3] = v3;
return res;
}
__m128i _mm_set_epi16(u16 v7, u16 v6, u16 v5, u16 v4, u16 v3, u16 v2, u16 v1, u16 v0)
{
__m128i res;
res.m128i_u16[0] = v0;
res.m128i_u16[1] = v1;
res.m128i_u16[2] = v2;
res.m128i_u16[3] = v3;
res.m128i_u16[4] = v4;
res.m128i_u16[5] = v5;
res.m128i_u16[6] = v6;
res.m128i_u16[7] = v7;
return res;
}
__m128i _mm_set_epi8(u8 v15, u8 v14, u8 v13, u8 v12, u8 v11, u8 v10, u8 v9, u8 v8, u8 v7, u8 v6, u8 v5, u8 v4, u8 v3, u8 v2, u8 v1, u8 v0)
{
__m128i res;
res.m128i_u8[0] = v0;
res.m128i_u8[1] = v1;
res.m128i_u8[2] = v2;
res.m128i_u8[3] = v3;
res.m128i_u8[4] = v4;
res.m128i_u8[5] = v5;
res.m128i_u8[6] = v6;
res.m128i_u8[7] = v7;
res.m128i_u8[8] = v8;
res.m128i_u8[9] = v9;
res.m128i_u8[10] = v10;
res.m128i_u8[11] = v11;
res.m128i_u8[12] = v12;
res.m128i_u8[13] = v13;
res.m128i_u8[14] = v14;
res.m128i_u8[15] = v15;
return res;
}
__m128 _mm_set_ps(float v3, float v2, float v1, float v0)
{
__m128 res;
res.m128_f32[0] = v0;
res.m128_f32[1] = v1;
res.m128_f32[2] = v2;
res.m128_f32[3] = v3;
return res;
}
private:
//0 - 10
void STOP(u32 code)

View File

@ -152,8 +152,6 @@ void fsAioRead(u32 fd, mem_ptr_t<CellFsAio> aio, int xid, mem_func_ptr_t<void (*
vfsFileBase* orig_file;
if(!sys_fs.CheckId(fd, orig_file)) return;
std::string path = orig_file->GetPath();
u64 nbytes = aio->size;
u32 buf_addr = aio->buf_addr;
@ -207,7 +205,7 @@ fin:
file.Seek(old_pos);
ConLog.Warning("*** fsAioRead(fd=%d, offset=0x%llx, buf_addr=0x%x, size=0x%x, error=0x%x, res=0x%x, xid=0x%x [%s])",
fd, (u64)aio->offset, buf_addr, (u64)aio->size, error, res, xid, path.c_str());
fd, (u64)aio->offset, buf_addr, (u64)aio->size, error, res, xid, orig_file->GetPath().c_str());
if (func) // start callback thread
{