Commit cec10d1 Simon Hosie
committed
1 parent 760f34a commit cec10d1 Copy full SHA for cec10d1
File tree 5 files changed +24
-26
lines changed
5 files changed +24
-26
lines changed Original file line number Diff line number Diff line change @@ -225,8 +225,6 @@ jobs:
225
225
EXTRA_CMAKE_FLAGS="${EXTRA_CMAKE_FLAGS} -DSLEEF_DISABLE_VXE2=ON"
226
226
elif [[ ${{ matrix.arch }} = "riscv64" ]]; then
227
227
EXTRA_CMAKE_FLAGS="${EXTRA_CMAKE_FLAGS} -DSLEEF_ENFORCE_RVVM1=ON -DSLEEF_ENFORCE_RVVM2=ON"
228
- # Disable inline headers, they just don't compile on riscv64
229
- EXTRA_CMAKE_FLAGS="${EXTRA_CMAKE_FLAGS} -DSLEEF_BUILD_INLINE_HEADERS=OFF"
230
228
fi
231
229
232
230
cmake -S . -B _build-${{ matrix.arch }} -GNinja \
Original file line number Diff line number Diff line change 57
57
#include <arm_sve.h>
58
58
#endif
59
59
60
+ #if defined(__riscv ) && defined(__riscv_v )
61
+ #include <riscv_vector.h>
62
+ #endif
63
+
60
64
#if defined(__VSX__ )
61
65
#include <altivec.h>
62
66
#endif
@@ -344,27 +348,35 @@ typedef Sleef_SLEEF_VECTOR_FLOAT_2 vfloat2;
344
348
#endif
345
349
346
350
#ifdef ENABLE_RVVM1
351
+ #include "renamervvm1.h"
352
+ #if !defined(USE_INLINE_HEADER )
347
353
#define CONFIG 1
348
354
#include "helperrvv.h"
349
- #include "renamervvm1.h"
355
+ #endif
350
356
#endif
351
357
352
358
#ifdef ENABLE_RVVM1NOFMA
359
+ #include "renamervvm1nofma.h"
360
+ #if !defined(USE_INLINE_HEADER )
353
361
#define CONFIG 2
354
362
#include "helperrvv.h"
355
- #include "renamervvm1nofma.h"
363
+ #endif
356
364
#endif
357
365
358
366
#ifdef ENABLE_RVVM2
367
+ #include "renamervvm2.h"
368
+ #if !defined(USE_INLINE_HEADER )
359
369
#define CONFIG 1
360
370
#include "helperrvv.h"
361
- #include "renamervvm2.h"
371
+ #endif
362
372
#endif
363
373
364
374
#ifdef ENABLE_RVVM2NOFMA
375
+ #include "renamervvm2nofma.h"
376
+ #if !defined(USE_INLINE_HEADER )
365
377
#define CONFIG 2
366
378
#include "helperrvv.h"
367
- #include "renamervvm2nofma.h"
379
+ #endif
368
380
#endif
369
381
370
382
#ifdef ENABLE_PUREC_SCALAR
Original file line number Diff line number Diff line change @@ -224,51 +224,35 @@ extern const double Sleef_rempitabdp[];
224
224
// RISC-V
225
225
#ifdef ENABLE_RVVM1
226
226
#define CONFIG 1
227
- #if !defined(SLEEF_GENHEADER )
228
227
#define ENABLE_RVV_DP
229
228
#include "helperrvv.h"
230
- #else
231
- #include "macroonlyRVVM1.h"
232
- #endif
233
229
#ifdef DORENAME
234
230
#include "renamervvm1.h"
235
231
#endif
236
232
#endif
237
233
238
234
#ifdef ENABLE_RVVM1NOFMA
239
235
#define CONFIG 2
240
- #if !defined(SLEEF_GENHEADER )
241
236
#define ENABLE_RVV_DP
242
237
#include "helperrvv.h"
243
- #else
244
- #include "macroonlyRVVM1NOFMA.h"
245
- #endif
246
238
#ifdef DORENAME
247
239
#include "renamervvm1nofma.h"
248
240
#endif
249
241
#endif /* ENABLE_RVVM1NOFMA */
250
242
251
243
#ifdef ENABLE_RVVM2
252
244
#define CONFIG 1
253
- #if !defined(SLEEF_GENHEADER )
254
245
#define ENABLE_RVV_DP
255
246
#include "helperrvv.h"
256
- #else
257
- #include "macroonlyRVVM2.h"
258
- #endif
259
247
#ifdef DORENAME
260
248
#include "renamervvm2.h"
261
249
#endif
262
250
#endif
263
251
264
252
#ifdef ENABLE_RVVM2NOFMA
265
253
#define CONFIG 2
266
- #if !defined(SLEEF_GENHEADER )
267
254
#define ENABLE_RVV_DP
268
255
#include "helperrvv.h"
269
- #else
270
- #include "macroonlyRVVM2NOFMA.h"
271
- #endif
272
256
#ifdef DORENAME
273
257
#include "renamervvm2nofma.h"
274
258
#endif
Original file line number Diff line number Diff line change @@ -324,8 +324,8 @@ extern const float Sleef_rempitabsp[];
324
324
// RISC-V
325
325
#ifdef ENABLE_RVVM1
326
326
#define CONFIG 1
327
- #if !defined(SLEEF_GENHEADER )
328
327
#define ENABLE_RVV_SP
328
+ #if !defined(SLEEF_GENHEADER )
329
329
#include "helperrvv.h"
330
330
#else
331
331
#include "macroonlyRVVM1.h"
@@ -337,8 +337,8 @@ extern const float Sleef_rempitabsp[];
337
337
338
338
#ifdef ENABLE_RVVM1NOFMA
339
339
#define CONFIG 2
340
- #if !defined(SLEEF_GENHEADER )
341
340
#define ENABLE_RVV_SP
341
+ #if !defined(SLEEF_GENHEADER )
342
342
#include "helperrvv.h"
343
343
#else
344
344
#include "macroonlyRVVM1NOFMA.h"
@@ -350,8 +350,8 @@ extern const float Sleef_rempitabsp[];
350
350
351
351
#ifdef ENABLE_RVVM2
352
352
#define CONFIG 1
353
- #if !defined(SLEEF_GENHEADER )
354
353
#define ENABLE_RVV_SP
354
+ #if !defined(SLEEF_GENHEADER )
355
355
#include "helperrvv.h"
356
356
#else
357
357
#include "macroonlyRVVM2.h"
@@ -363,8 +363,8 @@ extern const float Sleef_rempitabsp[];
363
363
364
364
#ifdef ENABLE_RVVM2NOFMA
365
365
#define CONFIG 2
366
- #if !defined(SLEEF_GENHEADER )
367
366
#define ENABLE_RVV_SP
367
+ #if !defined(SLEEF_GENHEADER )
368
368
#include "helperrvv.h"
369
369
#else
370
370
#include "macroonlyRVVM2NOFMA.h"
Original file line number Diff line number Diff line change 60
60
#include <arm_sve.h>
61
61
#endif
62
62
63
+ #if defined(__riscv ) && defined(__riscv_v )
64
+ #include <riscv_vector.h>
65
+ #endif
66
+
63
67
#if defined(__VSX__ )
64
68
#include <altivec.h>
65
69
#endif
You can’t perform that action at this time.
0 commit comments