include/memory/SSEPlus_memory_REF.h

Go to the documentation of this file.
00001 //
00002 // Copyright (c) 2006-2008 Advanced Micro Devices, Inc. All Rights Reserved.
00003 // This software is subject to the Apache v2.0 License.
00004 //
00005 #ifndef __SSEPLUS_MEMORY_REF_H__
00006 #define __SSEPLUS_MEMORY_REF_H__
00007 
00008 #include "../SSEPlus_base.h"
00009 
00015 __m128i ssp_memory_load1_epu8_REF( unsigned char a )
00016 {
00017     ssp_m128 A;
00018     
00019     A.u8[0] = a;
00020     A.u8[1] = a;
00021     A.u8[2] = a;
00022     A.u8[3] = a;
00023 
00024     A.u32[1] = A.u32[0];
00025     A.u32[2] = A.u32[0];
00026     A.u32[3] = A.u32[0]; 
00027     
00028     return A.i;
00029 }
00030 
00031 
00036 #endif // __SSEPLUS_MEMORY_SSE2_H__

Generated on Wed May 21 13:44:11 2008 for "SSEPlus" by  doxygen 1.5.4