GCC Code Coverage Report
Directory: ./ Exec Total Coverage
File: TESTS/TEST_ASSUME_ALIGNED/main.cpp Lines: 13 13 100.0 %
Date: 2026-03-27 22:08:32 Branches: 13 13 100.0 %

Line Branch Exec Source
1
/***************************************
2
	Auteur : Pierre Aubert
3
	Mail : pierre.aubert@lapp.in2p3.fr
4
	Licence : CeCILL-C
5
****************************************/
6
7
#include "PTensor.h"
8
9
10
///Test the PTensor
11
1
void testPTensor(){
12
2
	PTensor<float> alignedTensor;
13
1
	alignedTensor.resize(AllocMode::ALIGNED, 4lu, 5lu);
14
1
	alignedTensor.fill(1.0f);
15
1
	std::cout << "alignedTensor : " << alignedTensor << std::endl;
16
1
	const float * tabAlignedConst = phoenix_assume_aligned(alignedTensor.getData());
17
1
	std::cout << "tabAlignedConst : " << tabAlignedConst << std::endl;
18
1
	float * tabAligned = phoenix_assume_aligned(alignedTensor.getData());
19
1
	std::cout << "tabAligned : " << tabAligned << std::endl;
20
1
}
21
22
1
int main(int argc, char** argv){
23
1
	testPTensor();
24
1
	return 0;
25
}
26
27