shape_doc 0.1
/Users/mourrain/Devel/mmx/shape/include/shape/ssi_bin_pack.hpp
Go to the documentation of this file.
00001 #ifndef BIN_PACK
00002 #define BIN_PACK
00003 
00004 #define bin_pack2(a,b,n) (((a)<<n)|(b))
00005 #define bin_pack2_1(a,b) bin_pack2(a,b,1)
00006 #define bin_pack2_2(a,b) (((a)<<2)|(b))
00007 #define bin_pack2_3(a,b) (((a)<<3)|(b))
00008 #define bin_pack4_1(a,b,c,d) bin_pack2_2(bin_pack2_1(a,b),bin_pack2_1(c,d))
00009 
00010 #endif