Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

JobCFloatXImp.h

Go to the documentation of this file.
00001 
00002 // $Id: JobCFloatXImp.h,v 1.3 2003/05/13 13:54:48 tagg Exp $
00003 //
00004 // Activate floating point exceptions. Code from Jim Kowalkowski
00005 // <jbk@fnal.gov>.
00006 //
00007 // messier@indiana.edu
00009 #ifndef JOBCFLOATXIMP_H
00010 #define JOBCFLOATXIMP_H
00011 #ifndef __CINT__
00012 
00013 #if defined(linux)
00014 #include <fpu_control.h>
00015 #include <fenv.h>
00016 #endif
00017 
00018 struct JobCFloatXImp
00019 {
00020   JobCFloatXImp(bool activate);
00021   ~JobCFloatXImp();
00022 
00023 #if defined(linux)
00024 #if defined(__GLIBC__)&&(__GLIBC__>2 || __GLIBC__==2 && __GLIBC_MINOR__>=1)
00025   fenv_t old_setting;
00026 #else
00027   fpu_control_t old_setting;
00028 #endif
00029 #endif
00030   bool activate_;
00031   
00032   static bool validate();
00033 };
00034 
00035 #endif // __CINT__
00036 #endif // JOBCFLOATXIMP_H
00037 

Generated on Mon Feb 15 11:06:48 2010 for loon by  doxygen 1.3.9.1