aboutsummaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-benchmark/linpack/linpack/0001-linpack-Define-DP-only-when-SP-is-not-defined.patch
blob: 4eb18e38ca4cd6759586f37d0dbd571dd9104cc2 (plain)
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
From f092d4be22acd09e791187b8e9bff6d312721ce4 Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Wed, 10 Nov 2021 11:36:31 -0800
Subject: [PATCH] linpack: Define DP only when SP is not defined

This helps compiling two versions ( SP/FP ) of the benchmark just by
passing -DSP on compile cmdline

Upstream-Status: Pending

Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 linpacknew.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/linpacknew.c b/linpacknew.c
index 17b2824..c656082 100644
--- a/linpacknew.c
+++ b/linpacknew.c
@@ -28,7 +28,9 @@
 #include <time.h>
 #include <float.h>
 
+#ifndef SP
 #define DP
+#endif
 
 #ifdef SP
 #define ZERO        0.0
-- 
2.33.1