Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ void rand_array_ui32( unsigned int *out, const unsigned int len, const unsigned
* @param x input array
* @param len array length
*/
void ui32_to_f64( double *out, unsigned int *x, unsigned int len ) {
void ui32_to_f64( double *out, const unsigned int *x, const unsigned int len ) {
unsigned int i;

for ( i = 0; i < len; i++ ) {
Expand All @@ -155,7 +155,7 @@ void ui32_to_f64( double *out, unsigned int *x, unsigned int len ) {
* @param x input array
* @param len array length
*/
void f64_to_ui32( unsigned int *out, double *x, unsigned int len ) {
void f64_to_ui32( unsigned int *out, const double *x, const unsigned int len ) {
unsigned int i;

for ( i = 0; i < len; i++ ) {
Expand Down Expand Up @@ -259,7 +259,7 @@ void write_data_as_json( FILE *f, const unsigned int *a, const unsigned int *b,
* @param len number of values in the domain
* @param name output filename
*/
void generate( unsigned int *a, unsigned int *b, const unsigned int len, const char *name ) {
void generate( const unsigned int *a, const unsigned int *b, const unsigned int len, const char *name ) {
unsigned int i;
unsigned int *y;
FILE *f;
Expand Down