File indexing completed on 2026-04-09 07:49:22
0001
0002
0003 #include <cassert>
0004 #include <iostream>
0005 #include "stag.h"
0006
0007 int main()
0008 {
0009 stagr r = {} ;
0010
0011 std::cout << stagc::Desc() << std::endl ;
0012
0013 for(int i=0 ; i < 24 ; i++ )
0014 {
0015 float u = float(i)/float(24) ;
0016 r.add(i, u);
0017 std::cout << r.desc() << std::endl ;
0018 }
0019
0020 std::cout << " sizeof(stag) " << sizeof(stag) << std::endl ;
0021 std::cout << " sizeof(r.tag) " << sizeof(r.tag) << std::endl ;
0022 std::cout << " sizeof(unsigned long long)*stag::NSEQ " << sizeof(unsigned long long)*stag::NSEQ << std::endl << std::endl ;
0023 assert( sizeof(stag) == sizeof(unsigned long long)*stag::NSEQ );
0024
0025 std::cout << " sizeof(r.flat) " << sizeof(r.flat) << std::endl ;
0026 std::cout << " sizeof(float)*stag::SLOTS " << sizeof(float)*stag::SLOTS << std::endl ;
0027 assert( sizeof(r.flat) == sizeof(float)*stag::SLOTS );
0028
0029
0030 return 0 ;
0031 }