unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
blob 85646fbceee32ffeff34acff4506491a8638dca8 953 bytes (raw)
name: gnu/packages/patches/libofa-1.diff 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
 
Description: fix building over GCC 4.1.
Author: Lukáš Lalinský <lalinsky@gmail.com>
Last-Update: 2006-07-23
Index: libofa-0.9.3/lib/JAMA/tnt_math_utils.h
===================================================================
--- libofa-0.9.3.orig/lib/JAMA/tnt_math_utils.h
+++ libofa-0.9.3/lib/JAMA/tnt_math_utils.h
@@ -20,6 +20,15 @@ inline const _Tp& max(const _Tp& __a, co
 namespace TNT
 {
 /**
+	@returns the absolute value of a real (no-complex) scalar.
+*/
+template <class Real>
+Real abs(const Real &a)
+{
+	return  (a > 0 ? a : -a);
+}
+
+/**
 	@returns hypotenuse of real (non-complex) scalars a and b by 
 	avoiding underflow/overflow
 	using (a * sqrt( 1 + (b/a) * (b/a))), rather than
@@ -56,15 +65,6 @@ Scalar max(const Scalar &a, const Scalar
 }
 */
 
-/**
-	@returns the absolute value of a real (no-complex) scalar.
-*/
-template <class Real>
-Real abs(const Real &a)
-{
-	return  (a > 0 ? a : -a);
-}
-
 }
 #endif
 /* MATH_UTILS_H */

debug log:

solving 85646fbcee ...
found 85646fbcee in https://yhetil.org/guix-devel/b8c0ab3a-857f-c4f0-f614-936e9ffd1e28@disroot.org/

applying [1/1] https://yhetil.org/guix-devel/b8c0ab3a-857f-c4f0-f614-936e9ffd1e28@disroot.org/
diff --git a/gnu/packages/patches/libofa-1.diff b/gnu/packages/patches/libofa-1.diff
new file mode 100644
index 0000000000..85646fbcee

1:27: trailing whitespace, space before tab in indent.
 	@returns hypotenuse of real (non-complex) scalars a and b by 
1:28: space before tab in indent.
 	avoiding underflow/overflow
1:29: space before tab in indent.
 	using (a * sqrt( 1 + (b/a) * (b/a))), rather than
1:33: trailing whitespace.
 
Checking patch gnu/packages/patches/libofa-1.diff...
Applied patch gnu/packages/patches/libofa-1.diff cleanly.
warning: 4 lines add whitespace errors.

index at:
100644 85646fbceee32ffeff34acff4506491a8638dca8	gnu/packages/patches/libofa-1.diff

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).