File indexing completed on 2026-04-09 07:49:20
0001
0002
0003 #include <iostream>
0004 #include <iomanip>
0005
0006 #include "scuda.h"
0007 #include "squad.h"
0008
0009 #include "squadx.h"
0010 #include "stamp.h"
0011 #include "NP.hh"
0012
0013 void test_quadx_0()
0014 {
0015 quadx q[2] ;
0016
0017 q[1].w.x = stamp::Now();
0018
0019 q[0].w.x = 0xffffffffeeeeeeee ;
0020 q[0].w.y = 0xddddddddcccccccc ;
0021
0022 std::cout << "q[0].w.x " << std::hex << q[0].w.x << std::dec << std::endl ;
0023 std::cout << "q[0].w.y " << std::hex << q[0].w.y << std::dec << std::endl ;
0024
0025 std::cout << "q[0].u.x " << std::hex << q[0].u.x << std::dec << std::endl ;
0026 std::cout << "q[0].u.y " << std::hex << q[0].u.y << std::dec << std::endl ;
0027 std::cout << "q[0].u.z " << std::hex << q[0].u.z << std::dec << std::endl ;
0028 std::cout << "q[0].u.w " << std::hex << q[0].u.w << std::dec << std::endl ;
0029
0030 q[1].w.y = stamp::Now();
0031
0032
0033 NP* a = NP::Make<float>(2,4) ;
0034 a->read2<float>( &q[0].f.x );
0035 a->save("$SQUADX_TEST_PATH") ;
0036 }
0037
0038
0039 void test_quadx_1()
0040 {
0041 quad4 q ;
0042 q.zero();
0043
0044 quadx4& qx = (quadx4&)q ;
0045 qx.q3.w.x = stamp::Now();
0046 qx.q3.w.y = stamp::Now();
0047
0048
0049 NP* a = NP::Make<float>(4,4) ;
0050 a->read2<float>( &qx.q0.f.x );
0051 a->save("$SQUADX_TEST_PATH") ;
0052 }
0053
0054
0055
0056 int main()
0057 {
0058
0059
0060
0061 test_quadx_1();
0062
0063 return 0 ;
0064 }