13.07.2014 Views

single PDF file - Madagascar

single PDF file - Madagascar

single PDF file - Madagascar

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>Madagascar</strong> Documentation <strong>Madagascar</strong> programs 41<br />

system/main/add.c<br />

183 for ( nbuf /= s f e s i z e ( in [ 0 ] ) ; n s i z > 0 ; n s i z −= nbuf ) {<br />

184 i f ( nbuf > n s i z ) nbuf=n s i z ;<br />

185<br />

186 for ( j =0; j < nin ; j++) {<br />

187 c o l l e c t = ( bool ) ( j != 0 ) ;<br />

188 switch ( type ) {<br />

189 case SF FLOAT:<br />

190 s f f l o a t r e a d ( ( f l o a t ∗) bufi ,<br />

191 nbuf ,<br />

192 in [ j ] ) ;<br />

193 a d d f l o a t ( c o l l e c t ,<br />

194 nbuf ,<br />

195 ( f l o a t ∗) buf ,<br />

196 ( const f l o a t ∗) bufi ,<br />

197 cmode ,<br />

198 s c a l e [ j ] ,<br />

199 add [ j ] ,<br />

200 a b s f l a g [ j ] ,<br />

201 l o g f l a g [ j ] ,<br />

202 s q r t f l a g [ j ] ,<br />

203 e x p f l a g [ j ] ) ;

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!