Skip to content

Commit

Permalink
renaming
Browse files Browse the repository at this point in the history
  • Loading branch information
trentgill committed Nov 15, 2019
1 parent 3c4cc38 commit abe14b1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions wrBlocks.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,27 +16,27 @@ float* b_cp_v( float* dest, float* src, int size ){
return dest;
}

float* b_sub( float* io, float sub, int size ){
float* b_add( float* io, float add, int size ){
float* d = io;
for( int i=0; i<size; i++ ){
*d = *d - sub;
d++;
*d++ += add;
}
return io;
}

float* b_mul( float* io, float mul, int size ){
float* b_sub( float* io, float sub, int size ){
float* d = io;
for( int i=0; i<size; i++ ){
*d++ *= mul;
*d = sub - *d;
d++;
}
return io;
}

float* b_accum( float* io, float add, int size ){
float* b_mul( float* io, float mul, int size ){
float* d = io;
for( int i=0; i<size; i++ ){
*d++ += add;
*d++ *= mul;
}
return io;
}
Expand Down
2 changes: 1 addition & 1 deletion wrBlocks.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@

float* b_cp( float* dest, float src, int size ); // memset
float* b_cp_v( float* dest, float* src, int size );
float* b_add( float* io, float add, int size );
float* b_sub( float* io, float sub, int size );
float* b_mul( float* io, float mul, int size );
float* b_accum( float* io, float add, int size ); // += const
float* b_accum_v( float* dest, float* src, int size ); // += *src
float* b_accum_vv( float** signals, int count, int size ); // reduce(+=)

Expand Down

0 comments on commit abe14b1

Please sign in to comment.