1 2 #include "bits/bit2pow.h" 3 #include "bits/bitlow.h" 4 #include "bits/bitlow-edge.h" 5 #include "bits/bithigh.h" 6 #include "bits/bithigh-edge.h" 7 8 #include "./bitdemos.h" // ugly, very ugly (just for the demo) 9 10 #include "fxttypes.h" 11 //#include "bits/bitsperlong.h" 12 13 //% Operations on the low and high bits of binary words. 14 15 // Output dependent on BITS_PER_LONG 16 17 void do_the_show(ulong v)18do_the_show(ulong v) 19 { 20 ulong t; 21 22 print_sep(); 23 24 WORD; 25 26 27 SHWBIN( highest_one ); 28 SHWBIN( highest_one_01edge ); 29 SHWBIN( highest_one_10edge ); 30 SHWDEC( highest_one_idx ); 31 32 SHWDEC( ld ); 33 34 SHWBIN( low_zeros ); 35 SHWBIN( low_ones ); 36 37 SHWBIN( lowest_one ); 38 SHWBIN( lowest_one_01edge ); 39 SHWBIN( lowest_one_10edge ); 40 SHWDEC( lowest_one_idx ); 41 42 SHWBIN( lowest_block ); 43 44 SHWBIN( clear_lowest_one ); 45 46 SHWBIN( lowest_zero ); 47 SHWBIN( set_lowest_zero ); 48 49 SHWBIN( high_ones ); 50 SHWBIN( high_zeros ); 51 SHWBIN( highest_zero ); 52 SHWBIN( set_highest_zero ); 53 54 55 cout << endl; 56 } 57 // ------------------------- 58 59 /// Emacs: 60 /// Local Variables: 61 /// MyRelDir: "demo/bits" 62 /// makefile-dir: "../../" 63 /// make-target: "1demo DSRC=demo/bits/bithilo-demo.cc" 64 /// make-target2: "1demo DSRC=demo/bits/bithilo-demo.cc DEMOFLAGS=-DTIMING" 65 /// End: 66 67