public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Milan Bouchet-Valat <nalimilan@club.fr>
To: git-commits@fedoraproject.org
Subject: [rpms/dSFMT] epel10: Initial import
Date: Thu, 05 Nov 2026 09:21:57 GMT [thread overview]
Message-ID: <179387051726.1.666166907903240134.rpms-dSFMT-3a6e6c6bdff3@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/dSFMT
Branch : epel10
Commit : 3a6e6c6bdff3e383b1b5616212ac93d3be5325f8
Author : Milan Bouchet-Valat <nalimilan@club.fr>
Date : 2014-09-17T15:29:18+02:00
Stats : +837/-0 in 6 file(s)
URL : https://src.fedoraproject.org/rpms/dSFMT/c/3a6e6c6bdff3e383b1b5616212ac93d3be5325f8?branch=epel10
Log:
Initial import
---
diff --git a/.gitignore b/.gitignore
index e69de29..6e2e27e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/dSFMT-src-2.2.3.tar.gz
diff --git a/dSFMT-2.2.3_exportfuns.patch b/dSFMT-2.2.3_exportfuns.patch
new file mode 100644
index 0000000..901cc4d
--- /dev/null
+++ b/dSFMT-2.2.3_exportfuns.patch
@@ -0,0 +1,449 @@
+--- dSFMT-src-2.2.3/dSFMT.h 2013-12-19 05:37:46.000000000 +0100
++++ dSFMT-src-2.2.3/dSFMT.h 2014-06-28 17:42:33.575799782 +0200
+@@ -40,6 +40,7 @@
+
+ #include <stdio.h>
+ #include <assert.h>
++#include <stddef.h>
+
+ #if !defined(DSFMT_MEXP)
+ #ifdef __GNUC__
+@@ -180,16 +181,17 @@
+ extern const int dsfmt_global_mexp;
+
+ void dsfmt_gen_rand_all(dsfmt_t *dsfmt);
+-void dsfmt_fill_array_open_close(dsfmt_t *dsfmt, double array[], int size);
+-void dsfmt_fill_array_close_open(dsfmt_t *dsfmt, double array[], int size);
+-void dsfmt_fill_array_open_open(dsfmt_t *dsfmt, double array[], int size);
+-void dsfmt_fill_array_close1_open2(dsfmt_t *dsfmt, double array[], int size);
++void dsfmt_fill_array_open_close(dsfmt_t *dsfmt, double array[], ptrdiff_t size);
++void dsfmt_fill_array_close_open(dsfmt_t *dsfmt, double array[], ptrdiff_t size);
++void dsfmt_fill_array_open_open(dsfmt_t *dsfmt, double array[], ptrdiff_t size);
++void dsfmt_fill_array_close1_open2(dsfmt_t *dsfmt, double array[], ptrdiff_t size);
+ void dsfmt_chk_init_gen_rand(dsfmt_t *dsfmt, uint32_t seed, int mexp);
+ void dsfmt_chk_init_by_array(dsfmt_t *dsfmt, uint32_t init_key[],
+ int key_length, int mexp);
+ const char *dsfmt_get_idstring(void);
+ int dsfmt_get_min_array_size(void);
+
++/*
+ #if defined(__GNUC__)
+ # define DSFMT_PRE_INLINE inline static
+ # define DSFMT_PST_INLINE __attribute__((always_inline))
+@@ -200,6 +202,10 @@
+ # define DSFMT_PRE_INLINE inline static
+ # define DSFMT_PST_INLINE
+ #endif
++*/
++#define DSFMT_PRE_INLINE
++#define DSFMT_PST_INLINE
++
+ DSFMT_PRE_INLINE uint32_t dsfmt_genrand_uint32(dsfmt_t *dsfmt) DSFMT_PST_INLINE;
+ DSFMT_PRE_INLINE double dsfmt_genrand_close1_open2(dsfmt_t *dsfmt)
+ DSFMT_PST_INLINE;
+@@ -214,13 +220,13 @@
+ DSFMT_PRE_INLINE double dsfmt_gv_genrand_close_open(void) DSFMT_PST_INLINE;
+ DSFMT_PRE_INLINE double dsfmt_gv_genrand_open_close(void) DSFMT_PST_INLINE;
+ DSFMT_PRE_INLINE double dsfmt_gv_genrand_open_open(void) DSFMT_PST_INLINE;
+-DSFMT_PRE_INLINE void dsfmt_gv_fill_array_open_close(double array[], int size)
++DSFMT_PRE_INLINE void dsfmt_gv_fill_array_open_close(double array[], ptrdiff_t size)
+ DSFMT_PST_INLINE;
+-DSFMT_PRE_INLINE void dsfmt_gv_fill_array_close_open(double array[], int size)
++DSFMT_PRE_INLINE void dsfmt_gv_fill_array_close_open(double array[], ptrdiff_t size)
+ DSFMT_PST_INLINE;
+-DSFMT_PRE_INLINE void dsfmt_gv_fill_array_open_open(double array[], int size)
++DSFMT_PRE_INLINE void dsfmt_gv_fill_array_open_open(double array[], ptrdiff_t size)
+ DSFMT_PST_INLINE;
+-DSFMT_PRE_INLINE void dsfmt_gv_fill_array_close1_open2(double array[], int size)
++DSFMT_PRE_INLINE void dsfmt_gv_fill_array_close1_open2(double array[], ptrdiff_t size)
+ DSFMT_PST_INLINE;
+ DSFMT_PRE_INLINE void dsfmt_gv_init_gen_rand(uint32_t seed) DSFMT_PST_INLINE;
+ DSFMT_PRE_INLINE void dsfmt_gv_init_by_array(uint32_t init_key[],
+@@ -238,7 +244,7 @@
+ * @param dsfmt dsfmt internal state date
+ * @return double precision floating point pseudorandom number
+ */
+-inline static uint32_t dsfmt_genrand_uint32(dsfmt_t *dsfmt) {
++uint32_t dsfmt_genrand_uint32(dsfmt_t *dsfmt) {
+ uint32_t r;
+ uint64_t *psfmt64 = &dsfmt->status[0].u[0];
+
+@@ -259,7 +265,7 @@
+ * @param dsfmt dsfmt internal state date
+ * @return double precision floating point pseudorandom number
+ */
+-inline static double dsfmt_genrand_close1_open2(dsfmt_t *dsfmt) {
++double dsfmt_genrand_close1_open2(dsfmt_t *dsfmt) {
+ double r;
+ double *psfmt64 = &dsfmt->status[0].d[0];
+
+@@ -278,7 +284,7 @@
+ * before this function. This function uses \b global variables.
+ * @return double precision floating point pseudorandom number
+ */
+-inline static uint32_t dsfmt_gv_genrand_uint32(void) {
++uint32_t dsfmt_gv_genrand_uint32(void) {
+ return dsfmt_genrand_uint32(&dsfmt_global_data);
+ }
+
+@@ -289,7 +295,7 @@
+ * before this function. This function uses \b global variables.
+ * @return double precision floating point pseudorandom number
+ */
+-inline static double dsfmt_gv_genrand_close1_open2(void) {
++double dsfmt_gv_genrand_close1_open2(void) {
+ return dsfmt_genrand_close1_open2(&dsfmt_global_data);
+ }
+
+@@ -301,7 +307,7 @@
+ * @param dsfmt dsfmt internal state date
+ * @return double precision floating point pseudorandom number
+ */
+-inline static double dsfmt_genrand_close_open(dsfmt_t *dsfmt) {
++double dsfmt_genrand_close_open(dsfmt_t *dsfmt) {
+ return dsfmt_genrand_close1_open2(dsfmt) - 1.0;
+ }
+
+@@ -312,7 +318,7 @@
+ * before this function. This function uses \b global variables.
+ * @return double precision floating point pseudorandom number
+ */
+-inline static double dsfmt_gv_genrand_close_open(void) {
++double dsfmt_gv_genrand_close_open(void) {
+ return dsfmt_gv_genrand_close1_open2() - 1.0;
+ }
+
+@@ -324,7 +330,7 @@
+ * @param dsfmt dsfmt internal state date
+ * @return double precision floating point pseudorandom number
+ */
+-inline static double dsfmt_genrand_open_close(dsfmt_t *dsfmt) {
++double dsfmt_genrand_open_close(dsfmt_t *dsfmt) {
+ return 2.0 - dsfmt_genrand_close1_open2(dsfmt);
+ }
+
+@@ -335,7 +341,7 @@
+ * before this function. This function uses \b global variables.
+ * @return double precision floating point pseudorandom number
+ */
+-inline static double dsfmt_gv_genrand_open_close(void) {
++double dsfmt_gv_genrand_open_close(void) {
+ return 2.0 - dsfmt_gv_genrand_close1_open2();
+ }
+
+@@ -347,7 +353,7 @@
+ * @param dsfmt dsfmt internal state date
+ * @return double precision floating point pseudorandom number
+ */
+-inline static double dsfmt_genrand_open_open(dsfmt_t *dsfmt) {
++double dsfmt_genrand_open_open(dsfmt_t *dsfmt) {
+ double *dsfmt64 = &dsfmt->status[0].d[0];
+ union {
+ double d;
+@@ -370,7 +376,7 @@
+ * before this function. This function uses \b global variables.
+ * @return double precision floating point pseudorandom number
+ */
+-inline static double dsfmt_gv_genrand_open_open(void) {
++double dsfmt_gv_genrand_open_open(void) {
+ return dsfmt_genrand_open_open(&dsfmt_global_data);
+ }
+
+@@ -385,7 +391,7 @@
+ * @param size the number of pseudorandom numbers to be generated.
+ * see also \sa dsfmt_fill_array_close1_open2()
+ */
+-inline static void dsfmt_gv_fill_array_close1_open2(double array[], int size) {
++void dsfmt_gv_fill_array_close1_open2(double array[], ptrdiff_t size) {
+ dsfmt_fill_array_close1_open2(&dsfmt_global_data, array, size);
+ }
+
+@@ -401,7 +407,7 @@
+ * see also \sa dsfmt_fill_array_close1_open2() and \sa
+ * dsfmt_gv_fill_array_close1_open2()
+ */
+-inline static void dsfmt_gv_fill_array_open_close(double array[], int size) {
++void dsfmt_gv_fill_array_open_close(double array[], ptrdiff_t size) {
+ dsfmt_fill_array_open_close(&dsfmt_global_data, array, size);
+ }
+
+@@ -417,7 +423,7 @@
+ * see also \sa dsfmt_fill_array_close1_open2() \sa
+ * dsfmt_gv_fill_array_close1_open2()
+ */
+-inline static void dsfmt_gv_fill_array_close_open(double array[], int size) {
++void dsfmt_gv_fill_array_close_open(double array[], ptrdiff_t size) {
+ dsfmt_fill_array_close_open(&dsfmt_global_data, array, size);
+ }
+
+@@ -433,7 +439,7 @@
+ * see also \sa dsfmt_fill_array_close1_open2() \sa
+ * dsfmt_gv_fill_array_close1_open2()
+ */
+-inline static void dsfmt_gv_fill_array_open_open(double array[], int size) {
++void dsfmt_gv_fill_array_open_open(double array[], ptrdiff_t size) {
+ dsfmt_fill_array_open_open(&dsfmt_global_data, array, size);
+ }
+
+@@ -443,7 +449,7 @@
+ * @param dsfmt dsfmt state vector.
+ * @param seed a 32-bit integer used as the seed.
+ */
+-inline static void dsfmt_init_gen_rand(dsfmt_t *dsfmt, uint32_t seed) {
++void dsfmt_init_gen_rand(dsfmt_t *dsfmt, uint32_t seed) {
+ dsfmt_chk_init_gen_rand(dsfmt, seed, DSFMT_MEXP);
+ }
+
+@@ -453,7 +459,7 @@
+ * @param seed a 32-bit integer used as the seed.
+ * see also \sa dsfmt_init_gen_rand()
+ */
+-inline static void dsfmt_gv_init_gen_rand(uint32_t seed) {
++void dsfmt_gv_init_gen_rand(uint32_t seed) {
+ dsfmt_init_gen_rand(&dsfmt_global_data, seed);
+ }
+
+@@ -464,7 +470,7 @@
+ * @param init_key the array of 32-bit integers, used as a seed.
+ * @param key_length the length of init_key.
+ */
+-inline static void dsfmt_init_by_array(dsfmt_t *dsfmt, uint32_t init_key[],
++void dsfmt_init_by_array(dsfmt_t *dsfmt, uint32_t init_key[],
+ int key_length) {
+ dsfmt_chk_init_by_array(dsfmt, init_key, key_length, DSFMT_MEXP);
+ }
+@@ -477,7 +483,7 @@
+ * @param key_length the length of init_key.
+ * see also \sa dsfmt_init_by_array()
+ */
+-inline static void dsfmt_gv_init_by_array(uint32_t init_key[], int key_length) {
++void dsfmt_gv_init_by_array(uint32_t init_key[], int key_length) {
+ dsfmt_init_by_array(&dsfmt_global_data, init_key, key_length);
+ }
+
+@@ -491,13 +497,13 @@
+ DSFMT_PRE_INLINE double genrand_close_open(void) DSFMT_PST_INLINE;
+ DSFMT_PRE_INLINE double genrand_open_close(void) DSFMT_PST_INLINE;
+ DSFMT_PRE_INLINE double genrand_open_open(void) DSFMT_PST_INLINE;
+-DSFMT_PRE_INLINE void fill_array_open_close(double array[], int size)
++DSFMT_PRE_INLINE void fill_array_open_close(double array[], ptrdiff_t size)
+ DSFMT_PST_INLINE;
+-DSFMT_PRE_INLINE void fill_array_close_open(double array[], int size)
++DSFMT_PRE_INLINE void fill_array_close_open(double array[], ptrdiff_t size)
+ DSFMT_PST_INLINE;
+-DSFMT_PRE_INLINE void fill_array_open_open(double array[], int size)
++DSFMT_PRE_INLINE void fill_array_open_open(double array[], ptrdiff_t size)
+ DSFMT_PST_INLINE;
+-DSFMT_PRE_INLINE void fill_array_close1_open2(double array[], int size)
++DSFMT_PRE_INLINE void fill_array_close1_open2(double array[], ptrdiff_t size)
+ DSFMT_PST_INLINE;
+
+ /**
+@@ -505,7 +511,7 @@
+ * @return id string.
+ * see also \sa dsfmt_get_idstring()
+ */
+-inline static const char *get_idstring(void) {
++const char *get_idstring(void) {
+ return dsfmt_get_idstring();
+ }
+
+@@ -514,7 +520,7 @@
+ * @return minimum size of array used for fill_array functions.
+ * see also \sa dsfmt_get_min_array_size()
+ */
+-inline static int get_min_array_size(void) {
++int get_min_array_size(void) {
+ return dsfmt_get_min_array_size();
+ }
+
+@@ -523,7 +529,7 @@
+ * @param seed a 32-bit integer used as the seed.
+ * see also \sa dsfmt_gv_init_gen_rand(), \sa dsfmt_init_gen_rand().
+ */
+-inline static void init_gen_rand(uint32_t seed) {
++void init_gen_rand(uint32_t seed) {
+ dsfmt_gv_init_gen_rand(seed);
+ }
+
+@@ -533,7 +539,7 @@
+ * @param key_length the length of init_key.
+ * see also \sa dsfmt_gv_init_by_array(), \sa dsfmt_init_by_array().
+ */
+-inline static void init_by_array(uint32_t init_key[], int key_length) {
++void init_by_array(uint32_t init_key[], int key_length) {
+ dsfmt_gv_init_by_array(init_key, key_length);
+ }
+
+@@ -543,7 +549,7 @@
+ * see also \sa dsfmt_genrand_close1_open2() \sa
+ * dsfmt_gv_genrand_close1_open2()
+ */
+-inline static double genrand_close1_open2(void) {
++double genrand_close1_open2(void) {
+ return dsfmt_gv_genrand_close1_open2();
+ }
+
+@@ -553,7 +559,7 @@
+ * see also \sa dsfmt_genrand_close_open() \sa
+ * dsfmt_gv_genrand_close_open()
+ */
+-inline static double genrand_close_open(void) {
++double genrand_close_open(void) {
+ return dsfmt_gv_genrand_close_open();
+ }
+
+@@ -563,7 +569,7 @@
+ * see also \sa dsfmt_genrand_open_close() \sa
+ * dsfmt_gv_genrand_open_close()
+ */
+-inline static double genrand_open_close(void) {
++double genrand_open_close(void) {
+ return dsfmt_gv_genrand_open_close();
+ }
+
+@@ -573,7 +579,7 @@
+ * see also \sa dsfmt_genrand_open_open() \sa
+ * dsfmt_gv_genrand_open_open()
+ */
+-inline static double genrand_open_open(void) {
++double genrand_open_open(void) {
+ return dsfmt_gv_genrand_open_open();
+ }
+
+@@ -586,7 +592,7 @@
+ * dsfmt_fill_array_close1_open2(), \sa
+ * dsfmt_gv_fill_array_close1_open2()
+ */
+-inline static void fill_array_open_close(double array[], int size) {
++void fill_array_open_close(double array[], ptrdiff_t size) {
+ dsfmt_gv_fill_array_open_close(array, size);
+ }
+
+@@ -599,7 +605,7 @@
+ * dsfmt_fill_array_close1_open2(), \sa
+ * dsfmt_gv_fill_array_close1_open2()
+ */
+-inline static void fill_array_close_open(double array[], int size) {
++void fill_array_close_open(double array[], ptrdiff_t size) {
+ dsfmt_gv_fill_array_close_open(array, size);
+ }
+
+@@ -612,7 +618,7 @@
+ * dsfmt_fill_array_close1_open2(), \sa
+ * dsfmt_gv_fill_array_close1_open2()
+ */
+-inline static void fill_array_open_open(double array[], int size) {
++void fill_array_open_open(double array[], ptrdiff_t size) {
+ dsfmt_gv_fill_array_open_open(array, size);
+ }
+
+@@ -624,7 +630,7 @@
+ * see also \sa dsfmt_fill_array_close1_open2(), \sa
+ * dsfmt_gv_fill_array_close1_open2()
+ */
+-inline static void fill_array_close1_open2(double array[], int size) {
++void fill_array_close1_open2(double array[], ptrdiff_t size) {
+ dsfmt_gv_fill_array_close1_open2(array, size);
+ }
+ #endif /* DSFMT_DO_NOT_USE_OLD_NAMES */
+--- dSFMT-src-2.2.3/dSFMT.c 2012-06-29 03:24:27.000000000 -0400
++++ dSFMT-src-2.2.3/dSFMT-patched.c 2012-12-20 12:45:45.000000000 -0500
+@@ -32,13 +32,13 @@
+ inline static uint32_t ini_func1(uint32_t x);
+ inline static uint32_t ini_func2(uint32_t x);
+ inline static void gen_rand_array_c1o2(dsfmt_t *dsfmt, w128_t *array,
+- int size);
++ ptrdiff_t size);
+ inline static void gen_rand_array_c0o1(dsfmt_t *dsfmt, w128_t *array,
+- int size);
++ ptrdiff_t size);
+ inline static void gen_rand_array_o0c1(dsfmt_t *dsfmt, w128_t *array,
+- int size);
++ ptrdiff_t size);
+ inline static void gen_rand_array_o0o1(dsfmt_t *dsfmt, w128_t *array,
+- int size);
++ ptrdiff_t size);
+ inline static int idxof(int i);
+ static void initial_mask(dsfmt_t *dsfmt);
+ static void period_certification(dsfmt_t *dsfmt);
+@@ -142,8 +142,8 @@
+ * @param size number of 128-bit pseudorandom numbers to be generated.
+ */
+ inline static void gen_rand_array_c1o2(dsfmt_t *dsfmt, w128_t *array,
+- int size) {
+- int i, j;
++ ptrdiff_t size) {
++ ptrdiff_t i, j;
+ w128_t lung;
+
+ lung = dsfmt->status[DSFMT_N];
+@@ -180,8 +180,8 @@
+ * @param size number of 128-bit pseudorandom numbers to be generated.
+ */
+ inline static void gen_rand_array_c0o1(dsfmt_t *dsfmt, w128_t *array,
+- int size) {
+- int i, j;
++ ptrdiff_t size) {
++ ptrdiff_t i, j;
+ w128_t lung;
+
+ lung = dsfmt->status[DSFMT_N];
+@@ -223,8 +223,8 @@
+ * @param size number of 128-bit pseudorandom numbers to be generated.
+ */
+ inline static void gen_rand_array_o0o1(dsfmt_t *dsfmt, w128_t *array,
+- int size) {
+- int i, j;
++ ptrdiff_t size) {
++ ptrdiff_t i, j;
+ w128_t lung;
+
+ lung = dsfmt->status[DSFMT_N];
+@@ -266,8 +266,8 @@
+ * @param size number of 128-bit pseudorandom numbers to be generated.
+ */
+ inline static void gen_rand_array_o0c1(dsfmt_t *dsfmt, w128_t *array,
+- int size) {
+- int i, j;
++ ptrdiff_t size) {
++ ptrdiff_t i, j;
+ w128_t lung;
+
+ lung = dsfmt->status[DSFMT_N];
+@@ -453,7 +453,7 @@
+ * memory. Mac OSX doesn't have these functions, but \b malloc of OSX
+ * returns the pointer to the aligned memory block.
+ */
+-void dsfmt_fill_array_close1_open2(dsfmt_t *dsfmt, double array[], int size) {
++void dsfmt_fill_array_close1_open2(dsfmt_t *dsfmt, double array[], ptrdiff_t size) {
+ assert(size % 2 == 0);
+ assert(size >= DSFMT_N64);
+ gen_rand_array_c1o2(dsfmt, (w128_t *)array, size / 2);
+@@ -471,7 +471,7 @@
+ * @param size the number of pseudorandom numbers to be generated.
+ * see also \sa fill_array_close1_open2()
+ */
+-void dsfmt_fill_array_open_close(dsfmt_t *dsfmt, double array[], int size) {
++void dsfmt_fill_array_open_close(dsfmt_t *dsfmt, double array[], ptrdiff_t size) {
+ assert(size % 2 == 0);
+ assert(size >= DSFMT_N64);
+ gen_rand_array_o0c1(dsfmt, (w128_t *)array, size / 2);
+@@ -489,7 +489,7 @@
+ * @param size the number of pseudorandom numbers to be generated.
+ * see also \sa fill_array_close1_open2()
+ */
+-void dsfmt_fill_array_close_open(dsfmt_t *dsfmt, double array[], int size) {
++void dsfmt_fill_array_close_open(dsfmt_t *dsfmt, double array[], ptrdiff_t size) {
+ assert(size % 2 == 0);
+ assert(size >= DSFMT_N64);
+ gen_rand_array_c0o1(dsfmt, (w128_t *)array, size / 2);
+@@ -507,7 +507,7 @@
+ * @param size the number of pseudorandom numbers to be generated.
+ * see also \sa fill_array_close1_open2()
+ */
+-void dsfmt_fill_array_open_open(dsfmt_t *dsfmt, double array[], int size) {
++void dsfmt_fill_array_open_open(dsfmt_t *dsfmt, double array[], ptrdiff_t size) {
+ assert(size % 2 == 0);
+ assert(size >= DSFMT_N64);
+ gen_rand_array_o0o1(dsfmt, (w128_t *)array, size / 2);
diff --git a/dSFMT-2.2.3_pkgconfig.patch b/dSFMT-2.2.3_pkgconfig.patch
new file mode 100644
index 0000000..fa5298e
--- /dev/null
+++ b/dSFMT-2.2.3_pkgconfig.patch
@@ -0,0 +1,14 @@
+--- /dev/null 2014-05-26 12:52:26.157396990 +0200
++++ dSFMT.pc 2014-06-05 17:18:04.357570200 +0200
+@@ -0,0 +1,11 @@
++prefix=/usr
++exec_prefix=${prefix}
++libdir=${prefix}/lib64
++includedir=${prefix}/include
++
++Name: dSFMT
++Description: dSFMT library
++Version: 2.2.3
++Libs: -L${libdir} -ldSFMT
++Libs.private: -lpthread
++Cflags: -I${includedir}
diff --git a/dSFMT-2.2.3_sharedlib.patch b/dSFMT-2.2.3_sharedlib.patch
new file mode 100644
index 0000000..dfd0091
--- /dev/null
+++ b/dSFMT-2.2.3_sharedlib.patch
@@ -0,0 +1,276 @@
+--- dSFMT-src-2.2.3/Makefile.orig 2013-12-19 05:37:46.000000000 +0100
++++ dSFMT-src-2.2.3/Makefile 2014-09-03 17:17:48.032841290 +0200
+@@ -17,35 +17,56 @@
+ # We could comple test-alti-Mxxx using gcc 3.3 of osx.
+ # We could comple test-alti-Mxxx using gcc 4.0 of osx.
+
++V_MAJOR = 2
++V_MINOR = 2
++V_RELEASE = 3
++SONAME = $(V_MAJOR).$(V_MINOR)
++VERSION = $(V_MAJOR).$(V_MINOR).$(V_RELEASE)
++
++prefix = /usr
++includedir = $(prefix)/include
++libdir = $(prefix)/lib
++SSE2_libdir = $(libdir)/sse2
++DESTDIR = .
++
++SFMT_MEXP = 19937
+ WARN = -Wmissing-prototypes -Wall #-Winline
+ #WARN = -Wmissing-prototypes -Wall -W
+ #WARN = /Wall
+-OPTI = -O3 -finline-functions -fomit-frame-pointer -DNDEBUG \
+--fno-strict-aliasing --param max-inline-insns-single=1800
+-#--param inline-unit-growth=500 --param large-function-growth=900 #for gcc 4
+-#OPTI = /Ot /Ob2 /Oy /Ox /Oi /GL /G6
+-#STD =
+-#STD = -std=c89 -pedantic
+-#STD = -std=c99 -pedantic
+-STD = -std=c99
+-CC = gcc
+-CCFLAGS = $(OPTI) $(WARN) $(STD)
+-ALTIFLAGS = -mabi=altivec -maltivec -DHAVE_ALTIVEC
+-OSXALTIFLAGS = -faltivec -maltivec -DHAVE_ALTIVEC
+-SSE2FLAGS = -msse2 -DHAVE_SSE2
+-#SSE2FLAGS = /arch:SSE2 /DHAVE_SSE2
+-STD_TARGET = test-std-M19937
+-ALL_STD_TARGET = test-std-M521 test-std-M1279 test-std-M2203 test-std-M4253 \
+-test-std-M11213 test-std-M19937 test-std-M44497 test-std-M86243 \
+-test-std-M132049 test-std-M216091
+-ALTI_TARGET = $(STD_TARGET) test-alti-M19937
+-ALL_ALTI_TARGET = test-alti-M521 test-alti-M1279 test-alti-M2203 \
+-test-alti-M4253 test-alti-M11213 test-alti-M19937 test-alti-M44497 \
+-test-alti-M86243 test-alti-M132049 test-alti-M216091
+-SSE2_TARGET = $(STD_TARGET) test-sse2-M19937
+-ALL_SSE2_TARGET = test-sse2-M521 test-sse2-M1279 test-sse2-M2203 \
+-test-sse2-M4253 test-sse2-M11213 test-sse2-M19937 test-sse2-M44497 \
+-test-sse2-M86243 test-sse2-M132049 test-sse2-M216091
++OPTI = -O3 -finline-functions -fomit-frame-pointer -DNDEBUG \
++--param inline-unit-growth=500 --param large-function-growth=900 #for gcc 4
++#-fno-strict-aliasing --param max-inline-insns-single=1800
++#OPTI = /Ot /Ob2 /Oy /Ox /Oi /GL /G6
++STD = -std=c99
++CC = gcc
++LINK = gcc
++CCFLAGS = -fPIC $(OPTI) $(WARN) $(STD)
++INCPATH = -I$(includedir)
++LIBS = -L$(libdir) -L. -lpthread
++LDFLAGS = -Wl,--no-undefined -Wl,-z,noexecstack -shared
++ALTIFLAGS = -mabi=altivec -maltivec -DHAVE_ALTIVEC
++OSXALTIFLAGS = -faltivec -maltivec -DHAVE_ALTIVEC
++SSE2FLAGS = -msse2 -DHAVE_SSE2
++#SSE2FLAGS = /arch:SSE2 /DHAVE_SSE2
++STRIP =
++COPY_FILE = cp -f
++COPY_DIR = $(COPY_FILE) -R
++INSTALL_FILE = @install -m 644 -p
++INSTALL_DIR = $(COPY_DIR)
++SYMLINK = ln -f -s
++DEL_FILE = rm -rf
++MOVE = mv -f
++CHK_DIR_EXISTS = test -d
++CHK_FILE_EXISTS = test ! -f
++MKDIR = mkdir -p
++
++TARGET = dSFMT
++STD_TARGET = test-std
++ALTI_TARGET = $(STD_TARGET) test-alti
++SSE2_TARGET = $(STD_TARGET) test-sse2
++
++HEADERS = $(TARGET).h $(TARGET)-params.h $(TARGET)-common.h
++
+ # ==========================================================
+ # comment out or EDIT following lines to get max performance
+ # ==========================================================
+@@ -78,121 +99,88 @@
+ # -----------------
+ #CCFLAGS += -march=athlon64
+
+-.PHONY: std-check sse2-check alti-check
+-
+-std: $(STD_TARGET)
+-
+-sse2: $(SSE2_TARGET)
+-
+-alti: $(ALTI_TARGET)
+-
+-osx-alti:
+- $(MAKE) "ALTIFLAGS=$(OSXALTIFLAGS)" alti
+-
+-std-check: $(ALL_STD_TARGET)
+- ./check.sh test-std
+-
+-sse2-check: $(ALL_SSE2_TARGET)
+- ./check.sh test-sse2
+-
+-alti-check: $(ALL_ALTI_TARGET)
+- ./check.sh test-alti
+-
+-osx-alti-check:
+- make "ALTIFLAGS=$(OSXALTIFLAGS)" alti-check
+-
+-test-std-M521: test.c dSFMT.c dSFMT.h
+- $(CC) $(CCFLAGS) -DDSFMT_MEXP=521 -o $@ dSFMT.c test.c
+-
+-test-alti-M521: test.c dSFMT.c dSFMT.h
+- $(CC) $(CCFLAGS) $(ALTIFLAGS) -DDSFMT_MEXP=521 -o $@ dSFMT.c test.c
+-
+-test-sse2-M521: test.c dSFMT.c dSFMT.h
+- $(CC) $(CCFLAGS) $(SSE2FLAGS) -DDSFMT_MEXP=521 -o $@ dSFMT.c test.c
+-
+-test-std-M1279: test.c dSFMT.c dSFMT.h
+- $(CC) $(CCFLAGS) -DDSFMT_MEXP=1279 -o $@ dSFMT.c test.c
++DEFINES = -DDSFMT_MEXP=$(SFMT_MEXP)
+
+-test-alti-M1279: test.c dSFMT.c dSFMT.h
+- $(CC) $(CCFLAGS) $(ALTIFLAGS) -DDSFMT_MEXP=1279 -o $@ dSFMT.c test.c
++SHARED_TARGET = lib$(TARGET).so.$(VERSION)
++SHARED_TARGET0 = lib$(TARGET).so
++SHARED_TARGET1 = lib$(TARGET).so.$(V_MAJOR)
++SHARED_TARGET2 = lib$(TARGET).so.$(SONAME)
++SHARED_TARGETS = $(SHARED_TARGET) $(SHARED_TARGET0) $(SHARED_TARGET1) $(SHARED_TARGET2)
+
+-test-sse2-M1279: test.c dSFMT.c dSFMT.h
+- $(CC) $(CCFLAGS) $(SSE2FLAGS) -DDSFMT_MEXP=1279 -o $@ dSFMT.c test.c
++SOURCE = $(TARGET).c $(HEADERS)
++OBJECT = $(TARGET).o
+
+-test-std-M2203: test.c dSFMT.c dSFMT.h
+- $(CC) $(CCFLAGS) -DDSFMT_MEXP=2203 -o $@ dSFMT.c test.c
++.PHONY: sharedlib std-check sse2-check alti-check
+
+-test-alti-M2203: test.c dSFMT.c dSFMT.h
+- $(CC) $(CCFLAGS) $(ALTIFLAGS) -DDSFMT_MEXP=2203 -o $@ dSFMT.c test.c
++test-std: test.c sharedlib dSFMT.h
++ $(CC) $(CCFLAGS) $(DEFINES) -o $@ lib$(TARGET).so test.c
+
+-test-sse2-M2203: test.c dSFMT.c dSFMT.h
+- $(CC) $(CCFLAGS) $(SSE2FLAGS) -DDSFMT_MEXP=2203 -o $@ dSFMT.c test.c
++test-alti: test.c sharedlib dSFMT.h
++ $(CC) $(CCFLAGS) $(ALTIFLAGS) $(DEFINES) -o $@ lib$(TARGET).so test.c
+
+-test-std-M4253: test.c dSFMT.c dSFMT.h
+- $(CC) $(CCFLAGS) -DDSFMT_MEXP=4253 -o $@ dSFMT.c test.c
++test-sse2: test.c sharedlib dSFMT.h
++ $(CC) $(CCFLAGS) $(SSE2FLAGS) $(DEFINES) -o $@ lib$(TARGET).so test.c
+
+-test-alti-M4253: test.c dSFMT.c dSFMT.h
+- $(CC) $(CCFLAGS) $(ALTIFLAGS) -DDSFMT_MEXP=4253 -o $@ dSFMT.c test.c
++std-check: test-std
++ LD_LIBRARY_PATH=. ./test-std > test-std-M$(SFMT_MEXP).txt
++ diff -w test-std-M$(SFMT_MEXP).txt dSFMT.$(SFMT_MEXP).out.txt || exit 1
+
+-test-sse2-M4253: test.c dSFMT.c dSFMT.h
+- $(CC) $(CCFLAGS) $(SSE2FLAGS) -DDSFMT_MEXP=4253 -o $@ dSFMT.c test.c
++alti-check: test-alti
++ LD_LIBRARY_PATH=. ./test-alti > test-alti-M$(SFMT_MEXP).txt
++ diff -w test-alti-M$(SFMT_MEXP).txt dSFMT.$(SFMT_MEXP).out.txt || exit 1
+
+-test-std-M11213: test.c dSFMT.c dSFMT.h
+- $(CC) $(CCFLAGS) -DDSFMT_MEXP=11213 -o $@ dSFMT.c test.c
++sse2-check: test-sse2
++ LD_LIBRARY_PATH=. ./test-sse2 > test-sse2-M$(SFMT_MEXP).txt
++ diff -w test-sse2-M$(SFMT_MEXP).txt dSFMT.$(SFMT_MEXP).out.txt || exit 1
+
+-test-alti-M11213: test.c dSFMT.c dSFMT.h
+- $(CC) $(CCFLAGS) $(ALTIFLAGS) -DDSFMT_MEXP=11213 -o $@ dSFMT.c test.c
++.SUFFIXES: .o .c
+
+-test-sse2-M11213: test.c dSFMT.c dSFMT.h
+- $(CC) $(CCFLAGS) $(SSE2FLAGS) -DDSFMT_MEXP=11213 -o $@ dSFMT.c test.c
+-
+-test-std-M19937: test.c dSFMT.c dSFMT.h
+- $(CC) $(CCFLAGS) -DDSFMT_MEXP=19937 -o $@ dSFMT.c test.c
+-
+-test-alti-M19937: test.c dSFMT.c dSFMT.h
+- $(CC) $(CCFLAGS) $(ALTIFLAGS) -DDSFMT_MEXP=19937 -o $@ dSFMT.c test.c
+-
+-test-sse2-M19937: test.c dSFMT.c dSFMT.h
+- $(CC) $(CCFLAGS) $(SSE2FLAGS) -DDSFMT_MEXP=19937 -o $@ dSFMT.c test.c
+-
+-test-std-M44497: test.c dSFMT.c dSFMT.h
+- $(CC) $(CCFLAGS) -DDSFMT_MEXP=44497 -o $@ dSFMT.c test.c
+-
+-test-alti-M44497: test.c dSFMT.c dSFMT.h
+- $(CC) $(CCFLAGS) $(ALTIFLAGS) -DDSFMT_MEXP=44497 -o $@ dSFMT.c test.c
+-
+-test-sse2-M44497: test.c dSFMT.c dSFMT.h
+- $(CC) $(CCFLAGS) $(SSE2FLAGS) -DDSFMT_MEXP=44497 -o $@ dSFMT.c test.c
+-
+-test-std-M86243: test.c dSFMT.c dSFMT.h
+- $(CC) $(CCFLAGS) -DDSFMT_MEXP=86243 -o $@ dSFMT.c test.c
+-
+-test-alti-M86243: test.c dSFMT.c dSFMT.h
+- $(CC) $(CCFLAGS) $(ALTIFLAGS) -DDSFMT_MEXP=86243 -o $@ dSFMT.c test.c
+-
+-test-sse2-M86243: test.c dSFMT.c dSFMT.h
+- $(CC) $(CCFLAGS) $(SSE2FLAGS) -DDSFMT_MEXP=86243 -o $@ dSFMT.c test.c
+-
+-test-std-M132049: test.c dSFMT.c dSFMT.h
+- $(CC) $(CCFLAGS) -DDSFMT_MEXP=132049 -o $@ dSFMT.c test.c
+-
+-test-alti-M132049: test.c dSFMT.c dSFMT.h
+- $(CC) $(CCFLAGS) $(ALTIFLAGS) -DDSFMT_MEXP=132049 -o $@ dSFMT.c test.c
+-
+-test-sse2-M132049: test.c dSFMT.c dSFMT.h
+- $(CC) $(CCFLAGS) $(SSE2FLAGS) -DDSFMT_MEXP=132049 -o $@ dSFMT.c test.c
+-
+-test-std-M216091: test.c dSFMT.c dSFMT.h
+- $(CC) $(CCFLAGS) -DDSFMT_MEXP=216091 -o $@ dSFMT.c test.c
++.c.o:
++ @echo $(CCFLAGS)
++ $(CC) $(CCFLAGS) $(DEFINES) -c $<
+
+-test-alti-M216091: test.c dSFMT.c dSFMT.h
+- $(CC) $(CCFLAGS) $(ALTIFLAGS) -DDSFMT_MEXP=216091 -o $@ dSFMT.c test.c
+
+-test-sse2-M216091: test.c dSFMT.c dSFMT.h
+- $(CC) $(CCFLAGS) $(SSE2FLAGS) -DDSFMT_MEXP=216091 -o $@ dSFMT.c test.c
++sse2_shared: $(SOURCE)
++ $(CC) $(CCFLAGS) $(SSE2FLAGS) $(DEFINES) -c $<
+
+-.c.o:
+- $(CC) $(CCFLAGS) -c $<
++sharedlib: $(OBJECT)
++ @echo $(LDFLAGS)
++ $(DEL_FILE) $(SHARED_TARGETS)
++ $(LINK) $(LDFLAGS) -Wl,-soname,$(SHARED_TARGET2) -o $(SHARED_TARGET) $<
++ $(SYMLINK) $(SHARED_TARGET) $(SHARED_TARGET0)
++ $(SYMLINK) $(SHARED_TARGET) $(SHARED_TARGET1)
++ $(SYMLINK) $(SHARED_TARGET) $(SHARED_TARGET2)
++
++install: install_headers
++
++install_shared: $(libdir)
++ @echo $(CCFLAGS)
++ @echo $(DESTDIR)
++ @echo $(libdir)
++ $(CHK_DIR_EXISTS) $(DESTDIR)$< || $(MKDIR) $(DESTDIR)$<
++ $(CHK_FILE_EXISTS) $(DESTDIR)$</$(SHARED_TARGET) || $(DEL_FILE) $(DESTDIR)$</$(SHARED_TARGET)
++ $(CHK_FILE_EXISTS) $(DESTDIR)$</$(SHARED_TARGET0) || $(DEL_FILE) $(DESTDIR)$</$(SHARED_TARGET0)
++ $(CHK_FILE_EXISTS) $(DESTDIR)$</$(SHARED_TARGET1) || $(DEL_FILE) $(DESTDIR)$</$(SHARED_TARGET1)
++ $(CHK_FILE_EXISTS) $(DESTDIR)$</$(SHARED_TARGET2) || $(DEL_FILE) $(DESTDIR)$</$(SHARED_TARGET2)
++ $(MOVE) $(SHARED_TARGETS) $(DESTDIR)$</
++
++install_sse2_shared: $(SSE2_libdir)
++ @echo $(DESTDIR)
++ @echo $(libdir)
++ $(CHK_DIR_EXISTS) $(DESTDIR)$< || $(MKDIR) $(DESTDIR)$<
++ $(CHK_FILE_EXISTS) $(DESTDIR)$</$(SHARED_TARGET) || $(DEL_FILE) $(DESTDIR)$</$(SHARED_TARGET)
++ $(CHK_FILE_EXISTS) $(DESTDIR)$</$(SHARED_TARGET0) || $(DEL_FILE) $(DESTDIR)$</$(SHARED_TARGET0)
++ $(CHK_FILE_EXISTS) $(DESTDIR)$</$(SHARED_TARGET1) || $(DEL_FILE) $(DESTDIR)$</$(SHARED_TARGET1)
++ $(CHK_FILE_EXISTS) $(DESTDIR)$</$(SHARED_TARGET2) || $(DEL_FILE) $(DESTDIR)$</$(SHARED_TARGET2)
++ $(MOVE) $(SHARED_TARGETS) $(DESTDIR)$</
++
++install_headers: install_shared
++ @echo $(DESTDIR)
++ $(CHK_DIR_EXISTS) $(DESTDIR)$(includedir) || $(MKDIR) $(DESTDIR)$(includedir)
++ $(CHK_DIR_EXISTS) $(DESTDIR)$(libdir)/pkgconfig || $(MKDIR) $(DESTDIR)$(libdir)/pkgconfig
++ $(INSTALL_FILE) $(HEADERS) $(DESTDIR)$(includedir)
++ @sed -e 's|libdir=%{prefix}/lib64|libdir=$(libdir)|g' -i $(TARGET).pc
++ $(INSTALL_FILE) $(TARGET).pc $(DESTDIR)$(libdir)/pkgconfig
+
+ clean:
+- rm -f *.o *~ test-*-M*
++ $(DEL_FILE) *.o *~ test-*-M*
diff --git a/dSFMT.spec b/dSFMT.spec
new file mode 100644
index 0000000..bfcb685
--- /dev/null
+++ b/dSFMT.spec
@@ -0,0 +1,96 @@
+Name: dSFMT
+Version: 2.2.3
+Release: 4%{?dist}
+Summary: Double precision SIMD-oriented Fast Mersenne Twister
+
+License: BSD
+URL: http://www.math.sci.hiroshima-u.ac.jp/~%20m-mat/MT/SFMT/index.html
+Source0: http://www.math.sci.hiroshima-u.ac.jp/~%20m-mat/MT/SFMT/%{name}-src-%{version}.tar.gz
+
+Patch0: %{name}-%{version}_sharedlib.patch
+Patch1: %{name}-%{version}_pkgconfig.patch
+Patch2: %{name}-%{version}_exportfuns.patch
+
+%description
+The purpose of dSFMT is to speed up the generation by avoiding
+the expensive conversion of integer to double (floating point).
+dSFMT directly generates double precision floating point
+pseudo-random numbers which have the IEEE Standard for Binary
+Floating-Point Arithmetic (ANSI/IEEE Std 754-1985) format.
+
+dSFMT is only available on the CPUs which use IEEE 754 format
+double precision floating point numbers.
+
+dSFMT doesn't support integer outputs.
+dSFMT supports the output of double precision floating point
+pseudo-random numbers which distribute in the range of
+[1, 2), [0, 1), (0, 1] and (0, 1).
+And it also supports the various periods form 2607-1 to 2132049-1.
+
+%package devel
+Summary: Development files for %{name}
+Requires: %{name}%{?_isa} = %{version}-%{release}
+
+%description devel
+The %{name}-devel package contains libraries and header files for
+developing applications that use %{name}.
+
+%package devel-doc
+Summary: Development documentation files for %{name}
+BuildArch: noarch
+
+%description devel-doc
+The %{name}-devel-doc package contains API documentation for
+developing applications that use %{name}.
+
+%prep
+%setup -q -n %{name}-src-%{version}
+%patch0 -p 1
+%patch1 -p 0
+%patch2 -p 1
+
+%build
+make %{?_smp_mflags} \
+ sharedlib \
+ libdir=%{_libdir} CCFLAGS="-fPIC %{optflags}"
+
+%install
+%make_install \
+ DESTDIR=$RPM_BUILD_ROOT libdir=%{_libdir}
+
+install -pm644 %{name}.pc $RPM_BUILD_ROOT%{_libdir}/pkgconfig/
+
+%check
+make std-check
+
+%post -p /sbin/ldconfig
+
+%postun -p /sbin/ldconfig
+
+%files
+%doc ./CHANGE-LOG.txt ./LICENSE.txt
+%doc README.txt README.jp.txt
+%{_libdir}/*.so.*
+
+%files devel
+%{_libdir}/*.so
+%{_libdir}/pkgconfig/%{name}.pc
+%{_includedir}/*.h
+
+%files devel-doc
+%doc html/
+
+%changelog
+* Wed Sep 3 2014 Milan Bouchet-Valat <nalimilan@club.fr> - 2.2.3-4
+- Move documentation to -devel-doc package.
+- Run tests (modify and simplify Makefile patch to do this).
+
+* Sat Jun 28 2014 Milan Bouchet-Valat <nalimilan@club.fr> - 2.2.3-3
+- Add patch to export functions required to use the library.
+
+* Tue Jun 17 2014 Xavier Lamien <laxathom@fedoraproject.org> - 2.2.3-2
+- Update license.
+- lower variable into Makefile.
+
+* Thu Jun 5 2014 Xavier Lamien <laxathom@fedoraproject.org> - 2.2.3-1
+- Initial RPM release.
diff --git a/sources b/sources
index e69de29..e54f568 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+057c5a11d28296825fba584f561a4369 dSFMT-src-2.2.3.tar.gz
reply other threads:[~2026-11-05 9:21 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=179387051726.1.666166907903240134.rpms-dSFMT-3a6e6c6bdff3@fedoraproject.org \
--to=nalimilan@club.fr \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox