include/memory/SSEPlus_memory_SSE2.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_SSE2_H__
00006 #define __SSEPLUS_MEMORY_SSE2_H__
00007 
00008 #include "../SSEPlus_base.h"
00009 #include <emmintrin.h>  // SSE2
00010 
00018 __m128i ssp_memory_load1_epu8_SSE2( unsigned char a )
00019 {
00020     ssp_m128 A;
00021     
00022     A.u8[0] = a;
00023     A.u8[1] = a;
00024     A.u8[2] = a;
00025     A.u8[3] = a;
00026 
00027     A.u32[1] = A.u32[0];
00028     A.u32[2] = A.u32[0];
00029     A.u32[3] = A.u32[0]; 
00030     
00031     return A.i;
00032 }
00033 
00034 
00039 #endif // __SSEPLUS_MEMORY_SSE2_H__

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