Changeset 16350 for branches/2915-AbsoluteSymbol/HeuristicLab.ExtLibs/HeuristicLab.NativeInterpreter/0.1
- Timestamp:
- 12/07/18 23:18:54 (6 years ago)
- Location:
- branches/2915-AbsoluteSymbol
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2915-AbsoluteSymbol
- Property svn:mergeinfo changed
/trunk merged: 16333-16334,16341-16343
- Property svn:mergeinfo changed
-
branches/2915-AbsoluteSymbol/HeuristicLab.ExtLibs
- Property svn:mergeinfo changed
/trunk/HeuristicLab.ExtLibs merged: 16333-16334,16343
- Property svn:mergeinfo changed
-
branches/2915-AbsoluteSymbol/HeuristicLab.ExtLibs/HeuristicLab.NativeInterpreter/0.1/HeuristicLab.NativeInterpreter-0.1/DllImporter.cs
r16274 r16350 15 15 } 16 16 17 public class NativeWrapper {17 public static class NativeWrapper { 18 18 private const string x86dll = "hl-native-interpreter-msvc-x86.dll"; 19 19 private const string x64dll = "hl-native-interpreter-msvc-x64.dll"; -
branches/2915-AbsoluteSymbol/HeuristicLab.ExtLibs/HeuristicLab.NativeInterpreter/0.1/NativeInterpreter-0.1/CMakeLists.txt
r16274 r16350 17 17 18 18 if(MSVC) 19 target_compile_options(hl-native-interpreter PRIVATE "/W4" "/Qvec-report:2" " $<$<CONFIG:Release>:/O2>")20 target_compile_options(hl-native-interpreter-vdt PRIVATE "/W4" "/Qvec-report:2" " $<$<CONFIG:Release>:/O2>")19 target_compile_options(hl-native-interpreter PRIVATE "/W4" "/Qvec-report:2" "/MT" "$<$<CONFIG:Release>:/O2>") 20 target_compile_options(hl-native-interpreter-vdt PRIVATE "/W4" "/Qvec-report:2" "/MT" "$<$<CONFIG:Release>:/O2>") 21 21 target_compile_definitions(hl-native-interpreter-vdt PRIVATE "USE_VDT") 22 22 else() -
branches/2915-AbsoluteSymbol/HeuristicLab.ExtLibs/HeuristicLab.NativeInterpreter/0.1/NativeInterpreter-0.1/src/interpreter.cpp
r16274 r16350 50 50 if (remainingRows > 0) 51 51 { 52 for (int rowIndex = total; rowIndex < totalRows; rowIndex += remainingRows) 53 { 54 evaluate(code, codeLength, rows, rowIndex, remainingRows); 55 std::memcpy(result + rowIndex, code[0].buf, remainingRows * sizeof(double)); 56 } 52 evaluate(code, codeLength, rows, total, remainingRows); 53 std::memcpy(result + total, code[0].buf, remainingRows * sizeof(double)); 57 54 } 58 55 _aligned_free(buffer); -
branches/2915-AbsoluteSymbol/HeuristicLab.ExtLibs/HeuristicLab.NativeInterpreter/0.1/NativeInterpreter-0.1/src/interpreter.h
r16349 r16350 101 101 break; 102 102 } 103 case OpCodes::Square: 104 { 105 in.value = std::pow(code[in.childIndex].value, 2.); 106 break; 107 } 103 108 case OpCodes::Sqrt: 104 109 { … … 257 262 case OpCodes::Sqrt: 258 263 { 259 pow(in.buf, code[in.childIndex].buf, 1./2.);264 sqrt(in.buf, code[in.childIndex].buf); 260 265 break; 261 266 }
Note: See TracChangeset
for help on using the changeset viewer.