This is technically not a breaking change because it won't cause existing code to not compile anymore. However it is an important
semantic change to justify a major release:
The arguments of copysign are now swapped: a.copysign(b) will copy the sign of b into a (the previous
behavior copied the sign of a into b). This change was needed to align with the argument order used by
the standard library, thus avoiding hard-to-debug errors due to mismatching conventions.
The arguments of simd_copysign are now swapped too.
This is technically not a breaking change because it won't cause existing code to not compile anymore. However it is an important semantic change to justify a major release:
copysign
are now swapped:a.copysign(b)
will copy the sign ofb
intoa
(the previous behavior copied the sign ofa
intob
). This change was needed to align with the argument order used by the standard library, thus avoiding hard-to-debug errors due to mismatching conventions.simd_copysign
are now swapped too.