Changeset 815
 Timestamp:
 Dec 13, 2010, 6:20:39 PM (8 years ago)
 Location:
 proto/parabix2
 Files:

 2 edited
Legend:
 Unmodified
 Added
 Removed

proto/parabix2/pablo_template.c
r761 r815 372 372 @block_stmts 373 373 374 if (bitblock_has_bit(simd_or(name_check,name_start_check))) { 375 StreamScan((ScanBlock *) &name_start_check, sizeof(BitBlock)/sizeof(ScanBlock), NameStrt_check); 376 StreamScan((ScanBlock *) &name_check, sizeof(BitBlock)/sizeof(ScanBlock), Name_check); 377 } 378 379 if (bitblock_has_bit(PI_namestarts)){ 380 StreamScan((ScanBlock *) &PI_namestarts, sizeof(BitBlock)/sizeof(ScanBlock), PIName_check); 381 } 382 383 if (bitblock_has_bit(CD_starts)){ 384 StreamScan((ScanBlock *) &CD_starts, sizeof(BitBlock)/sizeof(ScanBlock), CD_check); 385 } 386 387 if (bitblock_has_bit(GenRef2)){ 388 StreamScan((ScanBlock *) &GenRef2, sizeof(BitBlock)/sizeof(ScanBlock), GenRef_check); 389 } 390 391 if (bitblock_has_bit(DecRef3)){ 392 StreamScan((ScanBlock *) &DecRef3, sizeof(BitBlock)/sizeof(ScanBlock), DecRef_check); 393 } 394 395 if (bitblock_has_bit(HexRef4)){ 396 StreamScan((ScanBlock *) &HexRef4, sizeof(BitBlock)/sizeof(ScanBlock), HexRef_check); 397 } 398 399 if (bitblock_has_bit(AttRef)){ 400 StreamScan((ScanBlock *) &AttRef, sizeof(BitBlock)/sizeof(ScanBlock), AttRef_check); 401 } 374 402 375 403 if (bitblock_has_bit(error_mask)) { … … 377 405 fprintf(stderr, "error found at position %i\n",errpos); 378 406 exit(1); 379 }380 381 if (bitblock_has_bit(simd_or(name_check,name_start_check))) {382 StreamScan((ScanBlock *) &name_start_check, sizeof(BitBlock)/sizeof(ScanBlock), NameStrt_check);383 StreamScan((ScanBlock *) &name_check, sizeof(BitBlock)/sizeof(ScanBlock), Name_check);384 }385 386 if (bitblock_has_bit(PI_namestarts)){387 StreamScan((ScanBlock *) &PI_namestarts, sizeof(BitBlock)/sizeof(ScanBlock), PIName_check);388 }389 390 if (bitblock_has_bit(CD_starts)){391 StreamScan((ScanBlock *) &CD_starts, sizeof(BitBlock)/sizeof(ScanBlock), CD_check);392 }393 394 if (bitblock_has_bit(GenRef2)){395 StreamScan((ScanBlock *) &GenRef2, sizeof(BitBlock)/sizeof(ScanBlock), GenRef_check);396 }397 398 if (bitblock_has_bit(DecRef3)){399 StreamScan((ScanBlock *) &DecRef3, sizeof(BitBlock)/sizeof(ScanBlock), DecRef_check);400 }401 402 if (bitblock_has_bit(HexRef4)){403 StreamScan((ScanBlock *) &HexRef4, sizeof(BitBlock)/sizeof(ScanBlock), HexRef_check);404 }405 406 if (bitblock_has_bit(AttRef)){407 StreamScan((ScanBlock *) &AttRef, sizeof(BitBlock)/sizeof(ScanBlock), AttRef_check);408 407 } 409 408 … … 424 423 425 424 @block_stmts 425 426 if (bitblock_has_bit(simd_or(name_check,name_start_check))) { 427 StreamScan((ScanBlock *) &name_start_check, sizeof(BitBlock)/sizeof(ScanBlock), NameStrt_check); 428 StreamScan((ScanBlock *) &name_check, sizeof(BitBlock)/sizeof(ScanBlock), Name_check); 429 } 430 431 if (bitblock_has_bit(PI_namestarts)){ 432 StreamScan((ScanBlock *) &PI_namestarts, sizeof(BitBlock)/sizeof(ScanBlock), PIName_check); 433 } 434 435 if (bitblock_has_bit(CD_starts)){ 436 StreamScan((ScanBlock *) &CD_starts, sizeof(BitBlock)/sizeof(ScanBlock), CD_check); 437 } 438 439 if (bitblock_has_bit(GenRef2)){ 440 StreamScan((ScanBlock *) &GenRef2, sizeof(BitBlock)/sizeof(ScanBlock), GenRef_check); 441 } 442 443 if (bitblock_has_bit(DecRef3)){ 444 StreamScan((ScanBlock *) &DecRef3, sizeof(BitBlock)/sizeof(ScanBlock), DecRef_check); 445 } 446 447 if (bitblock_has_bit(HexRef4)){ 448 StreamScan((ScanBlock *) &HexRef4, sizeof(BitBlock)/sizeof(ScanBlock), HexRef_check); 449 } 450 451 if (bitblock_has_bit(AttRef)){ 452 StreamScan((ScanBlock *) &AttRef, sizeof(BitBlock)/sizeof(ScanBlock), AttRef_check); 453 } 426 454 427 455 if (bitblock_has_bit(error_mask)) { … … 430 458 exit(1); 431 459 } 432 433 if (bitblock_has_bit(simd_or(name_check,name_start_check))) { 434 StreamScan((ScanBlock *) &name_start_check, sizeof(BitBlock)/sizeof(ScanBlock), NameStrt_check); 435 StreamScan((ScanBlock *) &name_check, sizeof(BitBlock)/sizeof(ScanBlock), Name_check); 436 } 437 438 if (bitblock_has_bit(PI_namestarts)){ 439 StreamScan((ScanBlock *) &PI_namestarts, sizeof(BitBlock)/sizeof(ScanBlock), PIName_check); 440 } 441 442 if (bitblock_has_bit(CD_starts)){ 443 StreamScan((ScanBlock *) &CD_starts, sizeof(BitBlock)/sizeof(ScanBlock), CD_check); 444 } 445 446 if (bitblock_has_bit(GenRef2)){ 447 StreamScan((ScanBlock *) &GenRef2, sizeof(BitBlock)/sizeof(ScanBlock), GenRef_check); 448 } 449 450 if (bitblock_has_bit(DecRef3)){ 451 StreamScan((ScanBlock *) &DecRef3, sizeof(BitBlock)/sizeof(ScanBlock), DecRef_check); 452 } 453 454 if (bitblock_has_bit(HexRef4)){ 455 StreamScan((ScanBlock *) &HexRef4, sizeof(BitBlock)/sizeof(ScanBlock), HexRef_check); 456 } 457 458 if (bitblock_has_bit(AttRef)){ 459 StreamScan((ScanBlock *) &AttRef, sizeof(BitBlock)/sizeof(ScanBlock), AttRef_check); 460 } 461 460 462 461 t.store_streams(tag_marks, NameFollows, Misc_mask, chars_avail); 463 462 
proto/parabix2/template.c
r632 r815 367 367 @block_stmts 368 368 369 if (bitblock_has_bit(simd_or(name_check,name_start_check))) { 370 StreamScan((ScanBlock *) &name_start_check, sizeof(BitBlock)/sizeof(ScanBlock), NameStrt_check); 371 StreamScan((ScanBlock *) &name_check, sizeof(BitBlock)/sizeof(ScanBlock), Name_check); 372 } 373 374 if (bitblock_has_bit(PI_namestarts)){ 375 StreamScan((ScanBlock *) &PI_namestarts, sizeof(BitBlock)/sizeof(ScanBlock), PIName_check); 376 } 377 378 if (bitblock_has_bit(CD_starts)){ 379 StreamScan((ScanBlock *) &CD_starts, sizeof(BitBlock)/sizeof(ScanBlock), CD_check); 380 } 381 382 if (bitblock_has_bit(GenRef2)){ 383 StreamScan((ScanBlock *) &GenRef2, sizeof(BitBlock)/sizeof(ScanBlock), GenRef_check); 384 } 385 386 if (bitblock_has_bit(DecRef3)){ 387 StreamScan((ScanBlock *) &DecRef3, sizeof(BitBlock)/sizeof(ScanBlock), DecRef_check); 388 } 389 390 if (bitblock_has_bit(HexRef4)){ 391 StreamScan((ScanBlock *) &HexRef4, sizeof(BitBlock)/sizeof(ScanBlock), HexRef_check); 392 } 393 394 if (bitblock_has_bit(AttRef)){ 395 StreamScan((ScanBlock *) &AttRef, sizeof(BitBlock)/sizeof(ScanBlock), AttRef_check); 396 } 369 397 370 398 if (bitblock_has_bit(error_mask)) { … … 374 402 } 375 403 376 if (bitblock_has_bit(simd_or(name_check,name_start_check))) {377 StreamScan((ScanBlock *) &name_start_check, sizeof(BitBlock)/sizeof(ScanBlock), NameStrt_check);378 StreamScan((ScanBlock *) &name_check, sizeof(BitBlock)/sizeof(ScanBlock), Name_check);379 }380 381 if (bitblock_has_bit(PI_namestarts)){382 StreamScan((ScanBlock *) &PI_namestarts, sizeof(BitBlock)/sizeof(ScanBlock), PIName_check);383 }384 385 if (bitblock_has_bit(CD_starts)){386 StreamScan((ScanBlock *) &CD_starts, sizeof(BitBlock)/sizeof(ScanBlock), CD_check);387 }388 389 if (bitblock_has_bit(GenRef2)){390 StreamScan((ScanBlock *) &GenRef2, sizeof(BitBlock)/sizeof(ScanBlock), GenRef_check);391 }392 393 if (bitblock_has_bit(DecRef3)){394 StreamScan((ScanBlock *) &DecRef3, sizeof(BitBlock)/sizeof(ScanBlock), DecRef_check);395 }396 397 if (bitblock_has_bit(HexRef4)){398 StreamScan((ScanBlock *) &HexRef4, sizeof(BitBlock)/sizeof(ScanBlock), HexRef_check);399 }400 401 if (bitblock_has_bit(AttRef)){402 StreamScan((ScanBlock *) &AttRef, sizeof(BitBlock)/sizeof(ScanBlock), AttRef_check);403 }404 405 404 t.store_streams(tag_marks, NameFollows, Misc_mask, chars_avail); 406 405 … … 419 418 420 419 @block_stmts 420 421 if (bitblock_has_bit(simd_or(name_check,name_start_check))) { 422 StreamScan((ScanBlock *) &name_start_check, sizeof(BitBlock)/sizeof(ScanBlock), NameStrt_check); 423 StreamScan((ScanBlock *) &name_check, sizeof(BitBlock)/sizeof(ScanBlock), Name_check); 424 } 425 426 if (bitblock_has_bit(PI_namestarts)){ 427 StreamScan((ScanBlock *) &PI_namestarts, sizeof(BitBlock)/sizeof(ScanBlock), PIName_check); 428 } 429 430 if (bitblock_has_bit(CD_starts)){ 431 StreamScan((ScanBlock *) &CD_starts, sizeof(BitBlock)/sizeof(ScanBlock), CD_check); 432 } 433 434 if (bitblock_has_bit(GenRef2)){ 435 StreamScan((ScanBlock *) &GenRef2, sizeof(BitBlock)/sizeof(ScanBlock), GenRef_check); 436 } 437 438 if (bitblock_has_bit(DecRef3)){ 439 StreamScan((ScanBlock *) &DecRef3, sizeof(BitBlock)/sizeof(ScanBlock), DecRef_check); 440 } 441 442 if (bitblock_has_bit(HexRef4)){ 443 StreamScan((ScanBlock *) &HexRef4, sizeof(BitBlock)/sizeof(ScanBlock), HexRef_check); 444 } 445 446 if (bitblock_has_bit(AttRef)){ 447 StreamScan((ScanBlock *) &AttRef, sizeof(BitBlock)/sizeof(ScanBlock), AttRef_check); 448 } 421 449 422 450 if (bitblock_has_bit(error_mask)) { … … 425 453 exit(1); 426 454 } 427 428 if (bitblock_has_bit(simd_or(name_check,name_start_check))) { 429 StreamScan((ScanBlock *) &name_start_check, sizeof(BitBlock)/sizeof(ScanBlock), NameStrt_check); 430 StreamScan((ScanBlock *) &name_check, sizeof(BitBlock)/sizeof(ScanBlock), Name_check); 431 } 432 433 if (bitblock_has_bit(PI_namestarts)){ 434 StreamScan((ScanBlock *) &PI_namestarts, sizeof(BitBlock)/sizeof(ScanBlock), PIName_check); 435 } 436 437 if (bitblock_has_bit(CD_starts)){ 438 StreamScan((ScanBlock *) &CD_starts, sizeof(BitBlock)/sizeof(ScanBlock), CD_check); 439 } 440 441 if (bitblock_has_bit(GenRef2)){ 442 StreamScan((ScanBlock *) &GenRef2, sizeof(BitBlock)/sizeof(ScanBlock), GenRef_check); 443 } 444 445 if (bitblock_has_bit(DecRef3)){ 446 StreamScan((ScanBlock *) &DecRef3, sizeof(BitBlock)/sizeof(ScanBlock), DecRef_check); 447 } 448 449 if (bitblock_has_bit(HexRef4)){ 450 StreamScan((ScanBlock *) &HexRef4, sizeof(BitBlock)/sizeof(ScanBlock), HexRef_check); 451 } 452 453 if (bitblock_has_bit(AttRef)){ 454 StreamScan((ScanBlock *) &AttRef, sizeof(BitBlock)/sizeof(ScanBlock), AttRef_check); 455 } 456 455 457 456 t.store_streams(tag_marks, NameFollows, Misc_mask, chars_avail); 458 457
Note: See TracChangeset
for help on using the changeset viewer.