Skip to content

Commit

Permalink
Merge pull request #159 from munroesj52/float128-addo
Browse files Browse the repository at this point in the history
P9 Float128 add/sub with round to odd, plus P8 equivalent.
  • Loading branch information
munroesj52 authored Jan 25, 2022
2 parents c96cd5d + ba97003 commit ef3aff3
Show file tree
Hide file tree
Showing 8 changed files with 11,995 additions and 6,412 deletions.
1,459 changes: 1,356 additions & 103 deletions src/pveclib/vec_f128_ppc.h

Large diffs are not rendered by default.

15,551 changes: 9,262 additions & 6,289 deletions src/testsuite/arith128_test_f128.c

Large diffs are not rendered by default.

56 changes: 56 additions & 0 deletions src/testsuite/pveclib_perf.c
Original file line number Diff line number Diff line change
Expand Up @@ -850,6 +850,62 @@ test_time_f128 (void)
printf ("\n%s mulqpn_lib tb delta = %lu, sec = %10.6g\n", __FUNCTION__,
t_delta, delta_sec);

printf ("\n%s addqpn_gcc start, ...\n", __FUNCTION__);
t_start = __builtin_ppc_get_timebase ();
for (i = 0; i < TIMING_ITERATIONS; i++)
{
rc += timed_gcc_addqpn_f128 ();
}
t_end = __builtin_ppc_get_timebase ();
t_delta = t_end - t_start;
delta_sec = TimeDeltaSec (t_delta);

printf ("\n%s addqpn_gcc end", __FUNCTION__);
printf ("\n%s addqpn_gcc tb delta = %lu, sec = %10.6g\n", __FUNCTION__,
t_delta, delta_sec);

printf ("\n%s addqpo_lib start, ...\n", __FUNCTION__);
t_start = __builtin_ppc_get_timebase ();
for (i = 0; i < TIMING_ITERATIONS; i++)
{
rc += timed_lib_addqpo_f128 ();
}
t_end = __builtin_ppc_get_timebase ();
t_delta = t_end - t_start;
delta_sec = TimeDeltaSec (t_delta);

printf ("\n%s addqpo_lib end", __FUNCTION__);
printf ("\n%s addqpo_lib tb delta = %lu, sec = %10.6g\n", __FUNCTION__,
t_delta, delta_sec);

printf ("\n%s subqpn_gcc start, ...\n", __FUNCTION__);
t_start = __builtin_ppc_get_timebase ();
for (i = 0; i < TIMING_ITERATIONS; i++)
{
rc += timed_gcc_subqpn_f128 ();
}
t_end = __builtin_ppc_get_timebase ();
t_delta = t_end - t_start;
delta_sec = TimeDeltaSec (t_delta);

printf ("\n%s subqpn_gcc end", __FUNCTION__);
printf ("\n%s subqpn_gcc tb delta = %lu, sec = %10.6g\n", __FUNCTION__,
t_delta, delta_sec);

printf ("\n%s subqpo_lib start, ...\n", __FUNCTION__);
t_start = __builtin_ppc_get_timebase ();
for (i = 0; i < TIMING_ITERATIONS; i++)
{
rc += timed_lib_subqpo_f128 ();
}
t_end = __builtin_ppc_get_timebase ();
t_delta = t_end - t_start;
delta_sec = TimeDeltaSec (t_delta);

printf ("\n%s subqpo_lib end", __FUNCTION__);
printf ("\n%s subqpo_lib tb delta = %lu, sec = %10.6g\n", __FUNCTION__,
t_delta, delta_sec);

return (rc);
}
#endif
Expand Down
Loading

0 comments on commit ef3aff3

Please sign in to comment.