Skip to content

Commit

Permalink
Test
Browse files Browse the repository at this point in the history
  • Loading branch information
jslee02 committed May 2, 2020
1 parent 939e650 commit 3df7f25
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,6 @@ jobs:
mkdir build
cd build
cmake .. -G "$(CMAKE_GENERATOR)" -A x64 -DCMAKE_BUILD_TYPE=$(CONFIGURATION) -Wno-dev -T "v$(BUILD_TOOLSET_VERSION),host=x64" -DVCPKG_TARGET_TRIPLET=$(VCPKG_ARCH) -DCMAKE_TOOLCHAIN_FILE="$(VCPKG_INSTALL_ROOT)/scripts/buildsystems/vcpkg.cmake" -DCMAKE_INSTALL_PREFIX="$(Build.BinariesDirectory)/$(REPO_NAME)" -DDART_MSVC_DEFAULT_OPTIONS=ON -DDART_VERBOSE=ON
cmake --build . --target ALL_BUILD --config $(CONFIGURATION) -- /maxcpucount:4
cmake --build . --target ALL_BUILD --config $(CONFIGURATION)
displayName: 'Build'
workingDirectory: '$(Build.SourcesDirectory)'
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,9 @@ if(MSVC)
add_compile_options(/wd4305)
add_compile_options(/wd4838)
add_compile_options(/bigobj)

add_compile_options(/wd4005) # TODO(JS): Check if necessary

add_compile_definitions(_ENABLE_EXTENDED_ALIGNED_STORAGE)

elseif(CMAKE_COMPILER_IS_GNUCXX)
Expand Down
10 changes: 5 additions & 5 deletions unittests/unit/GeneratedWamIkFast.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -329,13 +329,13 @@ inline double IKatan2Simple(double fy, double fx)
}
inline double IKatan2(double fy, double fx)
{
if (std::isnan(fy))
if (isnan(fy))
{
IKFAST_ASSERT(!std::isnan(
IKFAST_ASSERT(!isnan(
fx)); // if both are nan, probably wrong value will be returned
return IKPI_2;
}
else if (std::isnan(fx))
else if (isnan(fx))
{
return 0;
}
Expand All @@ -355,7 +355,7 @@ inline CheckValue<T> IKatan2WithCheck(T fy, T fx, T epsilon)
CheckValue<T> ret;
ret.valid = false;
ret.value = 0;
if (!std::isnan(fy) && !std::isnan(fx))
if (!isnan(fy) && !isnan(fx))
{
if (IKabs(fy) >= IKFAST_ATAN2_MAGTHRESH
|| IKabs(fx) > IKFAST_ATAN2_MAGTHRESH)
Expand Down Expand Up @@ -32374,7 +32374,7 @@ class IKSolver
j11array[1] = -j11array[0];
sj11array[1] = -sj11array[0];
}
else if (std::isnan(cj11array[0]))
else if (isnan(cj11array[0]))
{
// probably any value will work
j11valid[0] = true;
Expand Down

0 comments on commit 3df7f25

Please sign in to comment.