Text archives Help
- From: bigler@sci.utah.edu
- To: manta@sci.utah.edu
- Subject: [MANTA] r1459 - trunk/Core/Math
- Date: Tue, 10 Jul 2007 10:54:21 -0600 (MDT)
Author: bigler
Date: Tue Jul 10 10:54:21 2007
New Revision: 1459
Modified:
trunk/Core/Math/Noise.cc
trunk/Core/Math/Noise.h
Log:
Core/Math/Noise.cc
Core/Math/Noise.h
Removed SSE Noise sub functions. No longer needed for testing.
Made internal SSE noise sub functions static inline.
Modified: trunk/Core/Math/Noise.cc
==============================================================================
--- trunk/Core/Math/Noise.cc (original)
+++ trunk/Core/Math/Noise.cc Tue Jul 10 10:54:21 2007
@@ -330,13 +330,13 @@
}
#if MANTA_SSE
- __m128i CheapRNG(const __m128i& val)
+ static inline __m128i CheapRNG(const __m128i& val)
{
return _mm_and_si128(_mm_set1_epi32(0xFF),
_mm_add_epi32(_mm_set1_epi32(1013904223),
_mm_mullo_epi32(_mm_set1_epi32(1664525), val)));
}
- __m128i DissolveRNG(const __m128i& val)
+ static inline __m128i DissolveRNG(const __m128i& val)
{
// val = val & 255;
// if (val & 1)
@@ -348,7 +348,7 @@
_mm_and_si128(ifmask, _mm_set1_epi32(0xB8)));
}
- __m128i PermutationTable(const __m128i& index)
+ static inline __m128i PermutationTable(const __m128i& index)
{
union {
unsigned int i[4];
@@ -361,7 +361,7 @@
}
// This will return a random hash number from 0 to 255
- /*static inline*/ __m128i permutationSSE(const __m128i& index)
+ static inline __m128i permutationSSE(const __m128i& index)
{
__m128i index_masked = _mm_and_si128(index, _mm_set1_epi32(0xFF));
__m128i result;
@@ -381,7 +381,7 @@
return result;
}
- /*static inline*/ __m128i ssehash(const __m128i& x, const __m128i& y,
const __m128i& z)
+ static inline __m128i ssehash(const __m128i& x, const __m128i& y, const
__m128i& z)
{
#if 0
__m128i xx = _mm_mullo_epi32(x, _mm_set1_epi32(741103597));
@@ -403,7 +403,7 @@
#endif
}
- /*static inline*/ __m128 grad(const __m128i& hash,
+ static inline __m128 grad(const __m128i& hash,
const __m128 & x,
const __m128 & y,
const __m128 & z)
Modified: trunk/Core/Math/Noise.h
==============================================================================
--- trunk/Core/Math/Noise.h (original)
+++ trunk/Core/Math/Noise.h Tue Jul 10 10:54:21 2007
@@ -29,14 +29,6 @@
__m128 ScalarNoiseSSE( const __m128& location_x,
const __m128& location_y,
const __m128& location_z);
- __m128 grad(const __m128i& hash,
- const __m128 & x,
- const __m128 & y,
- const __m128 & z);
- __m128i permutationSSE(const __m128i& index);
- __m128i CheapRNG(const __m128i& val);
- __m128i DissolveRNG(const __m128i& val);
- __m128i PermutationTable(const __m128i& index);
#endif
/**
- [MANTA] r1459 - trunk/Core/Math, bigler, 07/10/2007
Archive powered by MHonArc 2.6.16.