Skip to content

Commit

Permalink
Now it does not work
Browse files Browse the repository at this point in the history
  • Loading branch information
eggrobin committed Dec 30, 2024
1 parent 84754d4 commit 121bced
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 19 deletions.
9 changes: 9 additions & 0 deletions numerics/numerics.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,15 @@
<Import Project="..\shared\geometry.vcxitems" Label="Shared" />
<Import Project="..\shared\testing_utilities.vcxitems" Label="Shared" />
</ImportGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<ClCompile />
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<ClCompile />
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release_LLVM|x64'">
<ClCompile />
</ItemDefinitionGroup>
<ItemGroup>
<ClInclude Include="angle_reduction.hpp" />
<ClInclude Include="angle_reduction_body.hpp" />
Expand Down
37 changes: 18 additions & 19 deletions numerics/sin_cos.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,25 +16,24 @@

#if PRINCIPIA_USE_OSACA_SIN || PRINCIPIA_USE_OSACA_COS
#include "intel/iacaMarks.h"
static bool iaca_breaker = false;
#define IACA_FUNCTION_DOUBLE(arg) \
volatile double iaca_result = arg; \
IACA_VC64_START; \
IACA_LOOP: \
arg = iaca_result
#define IACA_RETURN(result) \
iaca_result = result; \
if (iaca_breaker) { \
goto IACA_END_LOOP; \
} else { \
goto IACA_LOOP; \
}
#define IACA_FUNCTION_END \
goto IACA_LOOP; \
IACA_END_LOOP: \
IACA_VC64_END; \
return iaca_result
#define IACA_IF(condition) \
static bool const iaca_loop_terminator = false;
#define IACA_FUNCTION_DOUBLE(arg) \
double iaca_result = arg; \
IACA_VC64_START; \
IACA_LOOP : \
arg = iaca_result
#define IACA_RETURN(result) IACA_RETURN_AT(__LINE__, result)
#define IACA_RETURN_AT(line, result) IACA_RETURN_AT2(line, result)
#define IACA_RETURN_AT2(line, result) \
if (iaca_loop_terminator) { \
goto IACA_END_LOOP_##line; \
} \
iaca_result = (result); \
goto IACA_LOOP; \
IACA_VC64_END; \
IACA_END_LOOP_##line : return iaca_result
#define IACA_FUNCTION_END
#define IACA_IF(condition) \
if constexpr (volatile bool IACA_computed_condition = (condition); \
[] { UNDER_IACA_HYPOTHESES(return (condition)); }())

Expand Down

0 comments on commit 121bced

Please sign in to comment.