Skip to content

Commit

Permalink
adding Apple M2 silicon results
Browse files Browse the repository at this point in the history
  • Loading branch information
Ravenwater committed Aug 31, 2024
1 parent dc174a4 commit 70e83d4
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion static/qd/api/constants.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ qd_1_sqrt2 : 7.07106781186547524400844362104849e-01 vs 7.071067811865475244
std::cout << "2 / sqrtpi " << to_quad(2.0 / a) << '\n';
}
/*
AMD x86
Debug build
sqrt(2.0) ( 1.4142135623730951, -9.6672933134529135e-17, 4.1386753086994136e-33, 4.9355469914683509e-50)
sqrt(3.0) ( 1.7320508075688772, 1.0035084221806903e-16, -1.4959542475733896e-33, 5.3061475632961675e-50)
Expand All @@ -389,6 +389,20 @@ qd_1_sqrt2 : 7.07106781186547524400844362104849e-01 vs 7.071067811865475244
difference 1_sqrt2 : -2.54639133258339414062837196323682e-25
difference 2_sqrtpi : +6.41419091181394536188494115009207e-25
Apple M2
Debug build
sqrt(2.0) ( 1.4142135623730951, -9.6672933134529135e-17, 4.1386753086994136e-33, 4.9355469914683509e-50)
sqrt(3.0) ( 1.7320508075688772, 1.0035084221806903e-16, -1.4959542475733896e-33, 5.3061475632961675e-50)
sqrt(5.0) ( 2.2360679774997898, -1.0864230407365012e-16, 5.3086504167631309e-33, -6.6099839950042175e-50)
1/sqrt(2.0) ( 0.70710678118654757, -4.8336466567264567e-17, 2.0693376543497068e-33, 2.4677734957341755e-50)
2 / sqrtpi ( 1.1283791670955126, 1.5335459613165881e-17, -4.7656845966936863e-34, -2.0077946616552625e-50)
Release build
sqrt(2.0) ( 1.4142135623730951, -9.6672933134529135e-17, 4.1386753086994136e-33, 4.9355469914683509e-50)
sqrt(3.0) ( 1.7320508075688772, 1.0035084221806903e-16, -1.4959542475733896e-33, 5.3061475632961675e-50)
sqrt(5.0) ( 2.2360679774997898, -1.0864230407365012e-16, 5.3086504167631309e-33, -6.6099839950042175e-50)
1/sqrt(2.0) ( 0.70710678118654757, -4.8336466567264567e-17, 2.0693376543497068e-33, 2.4677734957341755e-50)
2 / sqrtpi ( 1.1283791670955126, 1.5335459613165881e-17, -4.7656845966936863e-34, -2.0077946616552625e-50)
*/

{
Expand Down

0 comments on commit 70e83d4

Please sign in to comment.