mirror of
				https://github.com/PurpleI2P/i2pd.git
				synced 2025-11-04 08:30:46 +00:00 
			
		
		
		
	use builtin __AVX__ and __AES__ macros and reduce code duplication
This commit is contained in:
		
							parent
							
								
									fc16e76af1
								
							
						
					
					
						commit
						dec848f072
					
				
					 9 changed files with 104 additions and 149 deletions
				
			
		| 
						 | 
				
			
			@ -39,7 +39,7 @@ include_directories(${LIBI2PD_CLIENT_SRC_DIR})
 | 
			
		|||
set (LIBI2PD_SRC
 | 
			
		||||
  "${LIBI2PD_SRC_DIR}/BloomFilter.cpp"
 | 
			
		||||
  "${LIBI2PD_SRC_DIR}/Config.cpp"
 | 
			
		||||
  "${LIBI2PD_SRC_DIR}/CPU.cpp"  
 | 
			
		||||
  "${LIBI2PD_SRC_DIR}/CPU.cpp"
 | 
			
		||||
  "${LIBI2PD_SRC_DIR}/Crypto.cpp"
 | 
			
		||||
  "${LIBI2PD_SRC_DIR}/CryptoKey.cpp"
 | 
			
		||||
  "${LIBI2PD_SRC_DIR}/Garlic.cpp"
 | 
			
		||||
| 
						 | 
				
			
			@ -77,10 +77,10 @@ set (LIBI2PD_SRC
 | 
			
		|||
  "${LIBI2PD_SRC_DIR}/api.cpp"
 | 
			
		||||
  "${LIBI2PD_SRC_DIR}/Event.cpp"
 | 
			
		||||
  "${LIBI2PD_SRC_DIR}/Gost.cpp"
 | 
			
		||||
  "${LIBI2PD_SRC_DIR}/ChaCha20.cpp"	
 | 
			
		||||
  "${LIBI2PD_SRC_DIR}/ChaCha20.cpp"
 | 
			
		||||
  "${LIBI2PD_SRC_DIR}/Poly1305.cpp"
 | 
			
		||||
  "${LIBI2PD_SRC_DIR}/Ed25519.cpp"
 | 
			
		||||
  "${LIBI2PD_SRC_DIR}/NTCP2.cpp"		
 | 
			
		||||
  "${LIBI2PD_SRC_DIR}/NTCP2.cpp"
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
if (WITH_WEBSOCKETS)
 | 
			
		||||
| 
						 | 
				
			
			@ -234,7 +234,6 @@ endif ()
 | 
			
		|||
 | 
			
		||||
if (WITH_AESNI)
 | 
			
		||||
  set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -maes" )
 | 
			
		||||
  add_definitions ( -DAESNI )
 | 
			
		||||
endif()
 | 
			
		||||
 | 
			
		||||
if (WITH_AVX)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue