Skip to content

Commit

Permalink
Version. Comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
sungiant committed Jul 30, 2020
1 parent b428fd6 commit 7b134c6
Show file tree
Hide file tree
Showing 12 changed files with 20 additions and 20 deletions.
2 changes: 1 addition & 1 deletion Abacus.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<metadata>
<id>Abacus</id>
<title>Abacus</title>
<version>1.0.1</version>
<version>1.0.2</version>
<authors>Ash Pook</authors>
<owners>Ash Pook</owners>
<licenseUrl>https://raw.githubusercontent.com/sungiant/abacus/master/LICENSE</licenseUrl>
Expand Down
2 changes: 1 addition & 1 deletion source/abacus/gen/main/Abacus.X.t4
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// │ / /_\ \| __ \\__ \ _/ ___\| | \/ ___/ │ \\
// │ / | \ \_\ \/ __ \\ \___| | /\___ \ │ \\
// │ \____|__ /___ (____ /\___ >____//____ > │ \\
// │ \/ \/ \/ \/ \/ v1.0.1 │ \\
// │ \/ \/ \/ \/ \/ v1.0.2 │ \\
// │ │ \\
// │ Fast, efficient, cross platform, cross precision, maths library. │ \\
// │ │ \\
Expand Down
6 changes: 3 additions & 3 deletions source/abacus/gen/main/Fixed.X.t4
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@
result.numerator = -f.numerator;
<#= ftd.RawTypeName #> sr = result.numerator >> (<#= ftd.BitCount #> - 1); // sign of result
// Branchless saturation - the only input that can overflow is MinValue
// as there is no +ve equivalent, in this case saturate to MaxValue.
// as there is no positive equivalent, in this case saturate to MaxValue.
result.numerator = (result.numerator & ~(sr & s)) | ((sr & s) & <#= ftd.RawTypeName #>.MaxValue);
}

Expand Down Expand Up @@ -229,7 +229,7 @@
result.numerator -= s;
<#= ftd.RawTypeName #> sr = result.numerator >> (<#= ftd.BitCount #> - 1); // sign of result
// Branchless saturation - the only input that can overflow is MinValue
// as there is no +ve equivalent, in this case saturate to MaxValue.
// as there is no positive equivalent, in this case saturate to MaxValue.
result.numerator = (result.numerator & ~(sr & s)) | ((sr & s) & <#= ftd.RawTypeName #>.MaxValue);
}

Expand Down Expand Up @@ -310,7 +310,7 @@
}

public static void ArcTan (ref <#= ftd.TypeName #> f, out <#= ftd.TypeName #> result) {
// ArcTan approximation implemented using appropriate Tayor series expansion: https://proofwiki.org/wiki/Power_Series_Expansion_for_Real_Arctangent_Function
// ArcTan approximation implemented using appropriate Tayor series expansion: http://people.math.sc.edu/girardi/m142/handouts/10sTaylorPolySeries.pdf
// best accuracy for which falls within the range of -1 <= f <= 1, see: https://spin.atomicobject.com/2012/04/24/implementing-advanced-math-functions/
// Valid input for the ArcTan function falls within the range of -∞ < f < ∞,
// trig identities are used to facilitate performing the approximation within the most accurate range: https://en.wikipedia.org/wiki/Inverse_trigonometric_functions
Expand Down
2 changes: 1 addition & 1 deletion source/abacus/gen/test/Abacus.X.Tests.t4
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// │ / /_\ \| __ \\__ \ _/ ___\| | \/ ___/ │ \\
// │ / | \ \_\ \/ __ \\ \___| | /\___ \ │ \\
// │ \____|__ /___ (____ /\___ >____//____ > │ \\
// │ \/ \/ \/ \/ \/ v1.0.1 │ \\
// │ \/ \/ \/ \/ \/ v1.0.2 │ \\
// │ │ \\
// │ Fast, efficient, cross platform, cross precision, maths library. │ \\
// │ │ \\
Expand Down
2 changes: 1 addition & 1 deletion source/abacus/src/main/Abacus.Double.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// │ / /_\ \| __ \\__ \ _/ ___\| | \/ ___/ │ \\
// │ / | \ \_\ \/ __ \\ \___| | /\___ \ │ \\
// │ \____|__ /___ (____ /\___ >____//____ > │ \\
// │ \/ \/ \/ \/ \/ v1.0.1 │ \\
// │ \/ \/ \/ \/ \/ v1.0.2 │ \\
// │ │ \\
// │ Fast, efficient, cross platform, cross precision, maths library. │ \\
// │ │ \\
Expand Down
8 changes: 4 additions & 4 deletions source/abacus/src/main/Abacus.Fixed32.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// │ / /_\ \| __ \\__ \ _/ ___\| | \/ ___/ │ \\
// │ / | \ \_\ \/ __ \\ \___| | /\___ \ │ \\
// │ \____|__ /___ (____ /\___ >____//____ > │ \\
// │ \/ \/ \/ \/ \/ v1.0.1 │ \\
// │ \/ \/ \/ \/ \/ v1.0.2 │ \\
// │ │ \\
// │ Fast, efficient, cross platform, cross precision, maths library. │ \\
// │ │ \\
Expand Down Expand Up @@ -214,7 +214,7 @@ public static void Negate (ref Fixed32 f, out Fixed32 result) {
result.numerator = -f.numerator;
Int32 sr = result.numerator >> (32 - 1); // sign of result
// Branchless saturation - the only input that can overflow is MinValue
// as there is no +ve equivalent, in this case saturate to MaxValue.
// as there is no positive equivalent, in this case saturate to MaxValue.
result.numerator = (result.numerator & ~(sr & s)) | ((sr & s) & Int32.MaxValue);
}

Expand Down Expand Up @@ -283,7 +283,7 @@ public static void Abs (ref Fixed32 f, out Fixed32 result) {
result.numerator -= s;
Int32 sr = result.numerator >> (32 - 1); // sign of result
// Branchless saturation - the only input that can overflow is MinValue
// as there is no +ve equivalent, in this case saturate to MaxValue.
// as there is no positive equivalent, in this case saturate to MaxValue.
result.numerator = (result.numerator & ~(sr & s)) | ((sr & s) & Int32.MaxValue);
}

Expand Down Expand Up @@ -364,7 +364,7 @@ public static void ArcCos (ref Fixed32 f, out Fixed32 result) {
}

public static void ArcTan (ref Fixed32 f, out Fixed32 result) {
// ArcTan approximation implemented using appropriate Tayor series expansion: https://proofwiki.org/wiki/Power_Series_Expansion_for_Real_Arctangent_Function
// ArcTan approximation implemented using appropriate Tayor series expansion: http://people.math.sc.edu/girardi/m142/handouts/10sTaylorPolySeries.pdf
// best accuracy for which falls within the range of -1 <= f <= 1, see: https://spin.atomicobject.com/2012/04/24/implementing-advanced-math-functions/
// Valid input for the ArcTan function falls within the range of -∞ < f < ∞,
// trig identities are used to facilitate performing the approximation within the most accurate range: https://en.wikipedia.org/wiki/Inverse_trigonometric_functions
Expand Down
8 changes: 4 additions & 4 deletions source/abacus/src/main/Abacus.Fixed64.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// │ / /_\ \| __ \\__ \ _/ ___\| | \/ ___/ │ \\
// │ / | \ \_\ \/ __ \\ \___| | /\___ \ │ \\
// │ \____|__ /___ (____ /\___ >____//____ > │ \\
// │ \/ \/ \/ \/ \/ v1.0.1 │ \\
// │ \/ \/ \/ \/ \/ v1.0.2 │ \\
// │ │ \\
// │ Fast, efficient, cross platform, cross precision, maths library. │ \\
// │ │ \\
Expand Down Expand Up @@ -215,7 +215,7 @@ public static void Negate (ref Fixed64 f, out Fixed64 result) {
result.numerator = -f.numerator;
Int64 sr = result.numerator >> (64 - 1); // sign of result
// Branchless saturation - the only input that can overflow is MinValue
// as there is no +ve equivalent, in this case saturate to MaxValue.
// as there is no positive equivalent, in this case saturate to MaxValue.
result.numerator = (result.numerator & ~(sr & s)) | ((sr & s) & Int64.MaxValue);
}

Expand Down Expand Up @@ -284,7 +284,7 @@ public static void Abs (ref Fixed64 f, out Fixed64 result) {
result.numerator -= s;
Int64 sr = result.numerator >> (64 - 1); // sign of result
// Branchless saturation - the only input that can overflow is MinValue
// as there is no +ve equivalent, in this case saturate to MaxValue.
// as there is no positive equivalent, in this case saturate to MaxValue.
result.numerator = (result.numerator & ~(sr & s)) | ((sr & s) & Int64.MaxValue);
}

Expand Down Expand Up @@ -365,7 +365,7 @@ public static void ArcCos (ref Fixed64 f, out Fixed64 result) {
}

public static void ArcTan (ref Fixed64 f, out Fixed64 result) {
// ArcTan approximation implemented using appropriate Tayor series expansion: https://proofwiki.org/wiki/Power_Series_Expansion_for_Real_Arctangent_Function
// ArcTan approximation implemented using appropriate Tayor series expansion: http://people.math.sc.edu/girardi/m142/handouts/10sTaylorPolySeries.pdf
// best accuracy for which falls within the range of -1 <= f <= 1, see: https://spin.atomicobject.com/2012/04/24/implementing-advanced-math-functions/
// Valid input for the ArcTan function falls within the range of -∞ < f < ∞,
// trig identities are used to facilitate performing the approximation within the most accurate range: https://en.wikipedia.org/wiki/Inverse_trigonometric_functions
Expand Down
2 changes: 1 addition & 1 deletion source/abacus/src/main/Abacus.Single.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// │ / /_\ \| __ \\__ \ _/ ___\| | \/ ___/ │ \\
// │ / | \ \_\ \/ __ \\ \___| | /\___ \ │ \\
// │ \____|__ /___ (____ /\___ >____//____ > │ \\
// │ \/ \/ \/ \/ \/ v1.0.1 │ \\
// │ \/ \/ \/ \/ \/ v1.0.2 │ \\
// │ │ \\
// │ Fast, efficient, cross platform, cross precision, maths library. │ \\
// │ │ \\
Expand Down
2 changes: 1 addition & 1 deletion source/abacus/src/test/Abacus.Double.Tests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// │ / /_\ \| __ \\__ \ _/ ___\| | \/ ___/ │ \\
// │ / | \ \_\ \/ __ \\ \___| | /\___ \ │ \\
// │ \____|__ /___ (____ /\___ >____//____ > │ \\
// │ \/ \/ \/ \/ \/ v1.0.1 │ \\
// │ \/ \/ \/ \/ \/ v1.0.2 │ \\
// │ │ \\
// │ Fast, efficient, cross platform, cross precision, maths library. │ \\
// │ │ \\
Expand Down
2 changes: 1 addition & 1 deletion source/abacus/src/test/Abacus.Fixed32.Tests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// │ / /_\ \| __ \\__ \ _/ ___\| | \/ ___/ │ \\
// │ / | \ \_\ \/ __ \\ \___| | /\___ \ │ \\
// │ \____|__ /___ (____ /\___ >____//____ > │ \\
// │ \/ \/ \/ \/ \/ v1.0.1 │ \\
// │ \/ \/ \/ \/ \/ v1.0.2 │ \\
// │ │ \\
// │ Fast, efficient, cross platform, cross precision, maths library. │ \\
// │ │ \\
Expand Down
2 changes: 1 addition & 1 deletion source/abacus/src/test/Abacus.Fixed64.Tests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// │ / /_\ \| __ \\__ \ _/ ___\| | \/ ___/ │ \\
// │ / | \ \_\ \/ __ \\ \___| | /\___ \ │ \\
// │ \____|__ /___ (____ /\___ >____//____ > │ \\
// │ \/ \/ \/ \/ \/ v1.0.1 │ \\
// │ \/ \/ \/ \/ \/ v1.0.2 │ \\
// │ │ \\
// │ Fast, efficient, cross platform, cross precision, maths library. │ \\
// │ │ \\
Expand Down
2 changes: 1 addition & 1 deletion source/abacus/src/test/Abacus.Single.Tests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// │ / /_\ \| __ \\__ \ _/ ___\| | \/ ___/ │ \\
// │ / | \ \_\ \/ __ \\ \___| | /\___ \ │ \\
// │ \____|__ /___ (____ /\___ >____//____ > │ \\
// │ \/ \/ \/ \/ \/ v1.0.1 │ \\
// │ \/ \/ \/ \/ \/ v1.0.2 │ \\
// │ │ \\
// │ Fast, efficient, cross platform, cross precision, maths library. │ \\
// │ │ \\
Expand Down

0 comments on commit 7b134c6

Please sign in to comment.