@@ -140,7 +140,7 @@ void rand_array_ui32( unsigned int *out, const unsigned int len, const unsigned
140
140
* @param x input array
141
141
* @param len array length
142
142
*/
143
- void ui32_to_f64 ( double * out , unsigned int * x , unsigned int len ) {
143
+ void ui32_to_f64 ( double * out , const unsigned int * x , const unsigned int len ) {
144
144
unsigned int i ;
145
145
146
146
for ( i = 0 ; i < len ; i ++ ) {
@@ -155,7 +155,7 @@ void ui32_to_f64( double *out, unsigned int *x, unsigned int len ) {
155
155
* @param x input array
156
156
* @param len array length
157
157
*/
158
- void f64_to_ui32 ( unsigned int * out , double * x , unsigned int len ) {
158
+ void f64_to_ui32 ( unsigned int * out , const double * x , const unsigned int len ) {
159
159
unsigned int i ;
160
160
161
161
for ( i = 0 ; i < len ; i ++ ) {
@@ -259,7 +259,7 @@ void write_data_as_json( FILE *f, const unsigned int *a, const unsigned int *b,
259
259
* @param len number of values in the domain
260
260
* @param name output filename
261
261
*/
262
- void generate ( unsigned int * a , unsigned int * b , const unsigned int len , const char * name ) {
262
+ void generate ( const unsigned int * a , const unsigned int * b , const unsigned int len , const char * name ) {
263
263
unsigned int i ;
264
264
unsigned int * y ;
265
265
FILE * f ;
0 commit comments