Skip to content

Commit

Permalink
Auto-generated commit
Browse files Browse the repository at this point in the history
  • Loading branch information
stdlib-bot committed Nov 14, 2023
1 parent 5a391ac commit 4ad84c1
Show file tree
Hide file tree
Showing 155 changed files with 799 additions and 799 deletions.
2 changes: 1 addition & 1 deletion base/assert/is-finite/examples/c/example.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#include <stdbool.h>

int main( void ) {
double x[] = { 3.14, -3.14, 1.0/0.0, 0.0/0.0 };
const double x[] = { 3.14, -3.14, 1.0/0.0, 0.0/0.0 };

bool b;
int i;
Expand Down
2 changes: 1 addition & 1 deletion base/assert/is-finitef/examples/c/example.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#include <stdbool.h>

int main( void ) {
float x[] = { 3.14f, -3.14f, 1.0f/0.0f, 0.0f/0.0f };
const float x[] = { 3.14f, -3.14f, 1.0f/0.0f, 0.0f/0.0f };

bool b;
int i;
Expand Down
2 changes: 1 addition & 1 deletion base/assert/is-infinite/examples/c/example.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#include <stdbool.h>

int main( void ) {
double x[] = { 3.14, -3.14, 1.0/0.0, 0.0/0.0 };
const double x[] = { 3.14, -3.14, 1.0/0.0, 0.0/0.0 };

bool b;
int i;
Expand Down
2 changes: 1 addition & 1 deletion base/assert/is-infinitef/examples/c/example.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#include <stdbool.h>

int main( void ) {
float x[] = { 3.14f, -3.14f, 1.0f/0.0f, 0.0f/0.0f };
const float x[] = { 3.14f, -3.14f, 1.0f/0.0f, 0.0f/0.0f };

bool b;
int i;
Expand Down
2 changes: 1 addition & 1 deletion base/assert/is-nan/examples/c/example.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#include <stdbool.h>

int main( void ) {
double x[] = { 3.14, -3.14, 0.0, 0.0/0.0 };
const double x[] = { 3.14, -3.14, 0.0, 0.0/0.0 };

bool b;
int i;
Expand Down
2 changes: 1 addition & 1 deletion base/assert/is-nanf/examples/c/example.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#include <stdbool.h>

int main( void ) {
float x[] = { 3.14, -3.14, 0.0, 0.0/0.0 };
const float x[] = { 3.14f, -3.14f, 0.0f, 0.0f/0.0f };

bool b;
int i;
Expand Down
2 changes: 1 addition & 1 deletion base/assert/is-negative-zero/examples/c/example.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#include <stdbool.h>

int main( void ) {
double x[] = { 0.0, -0.0, 3.14, 0.0/0.0 };
const double x[] = { 0.0, -0.0, 3.14, 0.0/0.0 };

bool b;
int i;
Expand Down
2 changes: 1 addition & 1 deletion base/assert/is-negative-zerof/examples/c/example.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#include <stdbool.h>

int main( void ) {
float x[] = { 0.0, -0.0, 3.14, 0.0/0.0 };
const float x[] = { 0.0f, -0.0f, 3.14f, 0.0f/0.0f };

bool b;
int i;
Expand Down
2 changes: 1 addition & 1 deletion base/assert/is-positive-zero/examples/c/example.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#include <stdbool.h>

int main( void ) {
double x[] = { 0.0, -0.0, 3.14, 0.0/0.0 };
const double x[] = { 0.0, -0.0, 3.14, 0.0/0.0 };

bool b;
int i;
Expand Down
2 changes: 1 addition & 1 deletion base/assert/is-positive-zerof/examples/c/example.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#include <stdbool.h>

int main( void ) {
float x[] = { 0.0, -0.0, 3.14, 0.0/0.0 };
const float x[] = { 0.0f, -0.0f, 3.14f, 0.0f/0.0f };

bool b;
int i;
Expand Down
4 changes: 2 additions & 2 deletions base/ops/add/examples/c/example.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
#include <stdio.h>

int main( void ) {
double x[] = { 3.14, -3.14, 0.0, 0.0/0.0 };
double y[] = { 3.14, -3.14, -0.0, 0.0/0.0 };
const double x[] = { 3.14, -3.14, 0.0, 0.0/0.0 };
const double y[] = { 3.14, -3.14, -0.0, 0.0/0.0 };

double z;
int i;
Expand Down
4 changes: 2 additions & 2 deletions base/ops/addf/examples/c/example.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
#include <stdio.h>

int main( void ) {
float x[] = { 3.14f, -3.14f, 0.0f, 0.0f/0.0f };
float y[] = { 3.14f, -3.14f, -0.0f, 0.0f/0.0f };
const float x[] = { 3.14f, -3.14f, 0.0f, 0.0f/0.0f };
const float y[] = { 3.14f, -3.14f, -0.0f, 0.0f/0.0f };

float z;
int i;
Expand Down
2 changes: 1 addition & 1 deletion base/ops/cadd/examples/c/example.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#include <stdio.h>

int main( void ) {
stdlib_complex128_t x[] = {
const stdlib_complex128_t x[] = {
stdlib_complex128( 3.14, 1.5 ),
stdlib_complex128( -3.14, 1.5 ),
stdlib_complex128( 0.0, -0.0 ),
Expand Down
2 changes: 1 addition & 1 deletion base/ops/caddf/examples/c/example.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#include <stdio.h>

int main( void ) {
stdlib_complex64_t x[] = {
const stdlib_complex64_t x[] = {
stdlib_complex64( 3.14f, 1.5f ),
stdlib_complex64( -3.14f, 1.5f ),
stdlib_complex64( 0.0f, -0.0f ),
Expand Down
2 changes: 1 addition & 1 deletion base/ops/cdiv/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ stdlib_complex128_t stdlib_base_cdiv( const stdlib_complex128_t z1, const stdlib
#include "stdlib/complex/reim.h"
#include <stdio.h>
int main() {
int main( void ) {
const stdlib_complex128_t x[] = {
stdlib_complex128( 3.14, 1.5 ),
stdlib_complex128( -3.14, 1.5 ),
Expand Down
2 changes: 1 addition & 1 deletion base/ops/cdiv/examples/c/example.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#include "stdlib/complex/reim.h"
#include <stdio.h>

int main() {
int main( void ) {
const stdlib_complex128_t x[] = {
stdlib_complex128( 3.14, 1.5 ),
stdlib_complex128( -3.14, 1.5 ),
Expand Down
2 changes: 1 addition & 1 deletion base/ops/cmulf/examples/c/example.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#include <stdio.h>

int main( void ) {
stdlib_complex64_t x[] = {
const stdlib_complex64_t x[] = {
stdlib_complex64( 3.14f, 1.5f ),
stdlib_complex64( -3.14f, 1.5f ),
stdlib_complex64( 0.0f, -0.0f ),
Expand Down
2 changes: 1 addition & 1 deletion base/ops/csub/examples/c/example.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#include <stdio.h>

int main( void ) {
stdlib_complex128_t x[] = {
const stdlib_complex128_t x[] = {
stdlib_complex128( 3.14, 1.5 ),
stdlib_complex128( -3.14, 1.5 ),
stdlib_complex128( 0.0, -0.0 ),
Expand Down
2 changes: 1 addition & 1 deletion base/ops/csubf/examples/c/example.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#include <stdio.h>

int main( void ) {
stdlib_complex64_t x[] = {
const stdlib_complex64_t x[] = {
stdlib_complex64( 3.14f, 1.5f ),
stdlib_complex64( -3.14f, 1.5f ),
stdlib_complex64( 0.0f, -0.0f ),
Expand Down
4 changes: 2 additions & 2 deletions base/ops/mul/examples/c/example.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
#include <stdio.h>

int main( void ) {
double x[] = { 3.14, -3.14, 0.0, 0.0/0.0 };
double y[] = { 3.14, -3.14, -0.0, 0.0/0.0 };
const double x[] = { 3.14, -3.14, 0.0, 0.0/0.0 };
const double y[] = { 3.14, -3.14, -0.0, 0.0/0.0 };

double z;
int i;
Expand Down
4 changes: 2 additions & 2 deletions base/ops/mulf/examples/c/example.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
#include <stdio.h>

int main( void ) {
float x[] = { 3.14f, -3.14f, 0.0f, 0.0f/0.0f };
float y[] = { 3.14f, -3.14f, -0.0f, 0.0f/0.0f };
const float x[] = { 3.14f, -3.14f, 0.0f, 0.0f/0.0f };
const float y[] = { 3.14f, -3.14f, -0.0f, 0.0f/0.0f };

float z;
int i;
Expand Down
4 changes: 2 additions & 2 deletions base/ops/sub/examples/c/example.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
#include <stdio.h>

int main( void ) {
double x[] = { 3.14, -3.14, 0.0, 0.0/0.0 };
double y[] = { 3.14, -3.14, -0.0, 0.0/0.0 };
const double x[] = { 3.14, -3.14, 0.0, 0.0/0.0 };
const double y[] = { 3.14, -3.14, -0.0, 0.0/0.0 };

double z;
int i;
Expand Down
4 changes: 2 additions & 2 deletions base/ops/subf/examples/c/example.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
#include <stdio.h>

int main( void ) {
float x[] = { 3.14f, -3.14f, 0.0f, 0.0f/0.0f };
float y[] = { 3.14f, -3.14f, -0.0f, 0.0f/0.0f };
const float x[] = { 3.14f, -3.14f, 0.0f, 0.0f/0.0f };
const float y[] = { 3.14f, -3.14f, -0.0f, 0.0f/0.0f };

float z;
int i;
Expand Down
12 changes: 6 additions & 6 deletions strided/special/dabs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -200,10 +200,10 @@ Computes the absolute value for each element in a double-precision floating-poin
```c
#include <stdint.h>

double X[] = { -1.0, -2.0, -3.0, -4.0, -5.0, -6.0, -7.0, -8.0 };
const double X[] = { -1.0, -2.0, -3.0, -4.0, -5.0, -6.0, -7.0, -8.0 };
double Y[] = { 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 };

int64_t N = 4;
const int64_t N = 4;

stdlib_strided_dabs( N, X, 2, Y, 2 );
```
Expand Down Expand Up @@ -245,17 +245,17 @@ void stdlib_strided_dabs( const int64_t N, const double *X, const int64_t stride

int main( void ) {
// Create an input strided array:
double X[] = { -1.0, -2.0, -3.0, -4.0, -5.0, -6.0, -7.0, -8.0 };
const double X[] = { -1.0, -2.0, -3.0, -4.0, -5.0, -6.0, -7.0, -8.0 };

// Create an output strided array:
double Y[] = { 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 };

// Specify the number of elements:
int64_t N = 4;
const int64_t N = 4;

// Specify the stride lengths:
int64_t strideX = 2;
int64_t strideY = 2;
const int64_t strideX = 2;
const int64_t strideY = 2;

// Compute the absolute value element-wise:
stdlib_strided_dabs( N, X, strideX, Y, strideY );
Expand Down
8 changes: 4 additions & 4 deletions strided/special/dabs/examples/c/example.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,17 @@

int main( void ) {
// Create an input strided array:
double x[] = { -1.0, -2.0, -3.0, -4.0, -5.0, -6.0, -7.0, -8.0 };
const double x[] = { -1.0, -2.0, -3.0, -4.0, -5.0, -6.0, -7.0, -8.0 };

// Create an output strided array:
double y[] = { 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 };

// Specify the number of elements:
int64_t N = 4;
const int64_t N = 4;

// Specify the stride lengths:
int64_t strideX = 2;
int64_t strideY = 2;
const int64_t strideX = 2;
const int64_t strideY = 2;

// Compute the absolute value element-wise:
stdlib_strided_dabs( N, x, strideX, y, strideY );
Expand Down
8 changes: 4 additions & 4 deletions strided/special/dabs/src/dabs.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,17 @@
* #include <stdint.h>
*
* // Create an input strided array:
* double x[] = { -1.0, -2.0, -3.0, -4.0, -5.0, -6.0, -7.0, -8.0 };
* const double x[] = { -1.0, -2.0, -3.0, -4.0, -5.0, -6.0, -7.0, -8.0 };
*
* // Create an output strided array:
* double y[] = { 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 };
*
* // Specify the number of elements:
* int64_t N = 4;
* const int64_t N = 4;
*
* // Specify the stride lengths:
* int64_t strideX = 2;
* int64_t strideY = 2;
* const int64_t strideX = 2;
* const int64_t strideY = 2;
*
* // Compute the absolute value element-wise:
* stdlib_strided_dabs( N, x, strideX, y, strideY );
Expand Down
12 changes: 6 additions & 6 deletions strided/special/dabs2/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -200,10 +200,10 @@ Computes the squared absolute value for each element in a double-precision float
```c
#include <stdint.h>

double X[] = { -1.0, -2.0, -3.0, -4.0, -5.0, -6.0, -7.0, -8.0 };
const double X[] = { -1.0, -2.0, -3.0, -4.0, -5.0, -6.0, -7.0, -8.0 };
double Y[] = { 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 };

int64_t N = 4;
const int64_t N = 4;

stdlib_strided_dabs2( N, X, 2, Y, 2 );
```
Expand Down Expand Up @@ -245,17 +245,17 @@ void stdlib_strided_dabs2( const int64_t N, const double *X, const int64_t strid

int main( void ) {
// Create an input strided array:
double X[] = { -1.0, -2.0, -3.0, -4.0, -5.0, -6.0, -7.0, -8.0 };
const double X[] = { -1.0, -2.0, -3.0, -4.0, -5.0, -6.0, -7.0, -8.0 };

// Create an output strided array:
double Y[] = { 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 };

// Specify the number of elements:
int64_t N = 4;
const int64_t N = 4;

// Specify the stride lengths:
int64_t strideX = 2;
int64_t strideY = 2;
const int64_t strideX = 2;
const int64_t strideY = 2;

// Compute the squared absolute value element-wise:
stdlib_strided_dabs2( N, X, strideX, Y, strideY );
Expand Down
8 changes: 4 additions & 4 deletions strided/special/dabs2/examples/c/example.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,17 @@

int main( void ) {
// Create an input strided array:
double x[] = { -1.0, -2.0, -3.0, -4.0, -5.0, -6.0, -7.0, -8.0 };
const double x[] = { -1.0, -2.0, -3.0, -4.0, -5.0, -6.0, -7.0, -8.0 };

// Create an output strided array:
double y[] = { 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 };

// Specify the number of elements:
int64_t N = 4;
const int64_t N = 4;

// Specify the stride lengths:
int64_t strideX = 2;
int64_t strideY = 2;
const int64_t strideX = 2;
const int64_t strideY = 2;

// Compute the squared absolute value element-wise:
stdlib_strided_dabs2( N, x, strideX, y, strideY );
Expand Down
8 changes: 4 additions & 4 deletions strided/special/dabs2/src/dabs2.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,17 @@
* #include <stdint.h>
*
* // Create an input strided array:
* double x[] = { -1.0, -2.0, -3.0, -4.0, -5.0, -6.0, -7.0, -8.0 };
* const double x[] = { -1.0, -2.0, -3.0, -4.0, -5.0, -6.0, -7.0, -8.0 };
*
* // Create an output strided array:
* double y[] = { 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 };
*
* // Specify the number of elements:
* int64_t N = 4;
* const int64_t N = 4;
*
* // Specify the stride lengths:
* int64_t strideX = 2;
* int64_t strideY = 2;
* const int64_t strideX = 2;
* const int64_t strideY = 2;
*
* // Compute the squared absolute value element-wise:
* stdlib_strided_dabs2( N, x, strideX, y, strideY );
Expand Down
Loading

0 comments on commit 4ad84c1

Please sign in to comment.