Skip to content

Commit

Permalink
Improved intrinsics wrappers - they do not require additional memory …
Browse files Browse the repository at this point in the history
…anymore, pure header implementation
  • Loading branch information
sopyer committed Sep 4, 2011
1 parent 46de5bc commit 639a2bb
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 11 deletions.
4 changes: 2 additions & 2 deletions SDK/include/vi.inl
Expand Up @@ -66,7 +66,7 @@ __forceinline vec4 vi_load_zero()

__forceinline vec4 vi_load_one()
{
return _vi_c_zero;
return _mm_set_ps1(1.0f);
}

#ifdef USE_SSE4
Expand Down Expand Up @@ -247,7 +247,7 @@ __forceinline vec4 vi_cvt_ubyte4_to_vec4(__int32 ub4)

vec4 res = _mm_cvtepi32_ps(tmp);

res = _mm_div_ps(res, _vi_c_255);
res = _mm_div_ps(res, _mm_set_ps1(255.0f));

return res;
}
Expand Down
1 change: 0 additions & 1 deletion SDK/utils/Utils.vcxproj
Expand Up @@ -72,7 +72,6 @@
<ItemGroup>
<ClCompile Include="ml.cpp" />
<ClCompile Include="utils.cpp" />
<ClCompile Include="vi.cpp" />
</ItemGroup>
<ItemGroup>
<ClInclude Include="..\include\vi.h" />
Expand Down
3 changes: 0 additions & 3 deletions SDK/utils/Utils.vcxproj.filters
Expand Up @@ -14,9 +14,6 @@
<ClCompile Include="utils.cpp">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="vi.cpp">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="ml.cpp">
<Filter>Source Files</Filter>
</ClCompile>
Expand Down
5 changes: 0 additions & 5 deletions SDK/utils/vi.cpp

This file was deleted.

0 comments on commit 639a2bb

Please sign in to comment.