mirror of
				https://github.com/bytecodealliance/wasm-micro-runtime.git
				synced 2025-10-31 05:11:19 +00:00 
			
		
		
		
	 4bc6074273
			
		
	
	
		4bc6074273
		
			
		
	
	
	
	
		
			
			Add scripts to build and run benchmark of coremark, polybench, sightglass and jetstream2. And add documents.
		
			
				
	
	
		
			21 lines
		
	
	
		
			664 B
		
	
	
	
		
			Diff
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
		
			664 B
		
	
	
	
		
			Diff
		
	
	
	
	
	
| diff -urN jetstream-org/HashSet.cpp jetstream/HashSet.cpp
 | |
| --- jetstream-org/HashSet.cpp	2020-10-30 04:12:42.000000000 +0800
 | |
| +++ jetstream/HashSet.cpp	2022-01-24 17:11:08.619831711 +0800
 | |
| @@ -24,6 +24,7 @@
 | |
|  #include <memory>
 | |
|  #include <stdio.h>
 | |
|  #include <stdlib.h>
 | |
| +#include <string.h>
 | |
|  #include <sys/time.h>
 | |
|  
 | |
|  // Compile with: xcrun clang++ -o HashSet HashSet.cpp -O2 -W -framework Foundation -licucore -std=c++11 -fvisibility=hidden -DNDEBUG=1
 | |
| @@ -76,7 +77,7 @@
 | |
|  inline ToType bitwise_cast(FromType from)
 | |
|  {
 | |
|      typename std::remove_const<ToType>::type to { };
 | |
| -    std::memcpy(&to, &from, sizeof(to));
 | |
| +    memcpy(&to, &from, sizeof(to));
 | |
|      return to;
 | |
|  }
 | |
|  
 |