Implémentation du raytracing pour Global Memory/Shared Memory/Constant Memory
[GPU.git] / WCudaMSE / BilatTools_CPP / src / core / tools / cpp / LimitsTools.cpp
1 #include <iostream>
2 #include <limits.h>
3
4 #include "LimitsTools.h"
5
6
7 using std::cout;
8 using std::endl;
9
10 /*----------------------------------------------------------------------*\
11 |* Implementation *|
12 \*---------------------------------------------------------------------*/
13
14 /*--------------------------------------*\
15 |* Constructor *|
16 \*-------------------------------------*/
17
18 LimitsTools::LimitsTools()
19 {
20 // rien
21 }
22
23 LimitsTools::~LimitsTools()
24 {
25 // rien
26 }
27
28 /*--------------------------------------*\
29 |* Methodes *|
30 \*-------------------------------------*/
31
32 /*----------------------*\
33 |* static *|
34 \*---------------------*/
35
36
37 void LimitsTools::rappelTypeSize(void)
38 {
39 cout<<endl;
40 cout<<"Rappel type size (from limits.h) "<<endl;
41 cout<<"SHORT_MAX = "<<SHRT_MAX<<" : "<<sizeof(short)<<" Octets"<<endl;
42 cout<<"INT_MAX = "<<INT_MAX<<" : "<<sizeof(int)<<" Octets"<<endl;
43 cout<<"LONG_MAX = "<<LONG_MAX<<" : "<<sizeof(long)<<" Octets"<<endl;
44 cout<<endl;
45 }
46
47 /*----------------------------------------------------------------------*\
48 |* End *|
49 \*---------------------------------------------------------------------*/
50