(Hopefully) clarify operator= and copy construction behaviour of the Property hierarc...
[ardour.git] / libs / pbd / pbd / fpu.h
1 #ifndef __pbd_fpu_h__
2 #define __pbd_fpu_h__
3
4 namespace PBD {
5
6
7 class FPU {
8   private:
9         enum Flags {
10                 HasFlushToZero = 0x1,
11                 HasDenormalsAreZero = 0x2,
12                 HasSSE = 0x4,
13                 HasSSE2 = 0x8
14         };
15
16   public:
17         FPU ();
18         ~FPU ();
19
20         bool has_flush_to_zero () const { return _flags & HasFlushToZero; }
21         bool has_denormals_are_zero () const { return _flags & HasDenormalsAreZero; }
22         bool has_sse () const { return _flags & HasSSE; }
23         bool has_sse2 () const { return _flags & HasSSE2; }
24         
25   private:
26         Flags _flags;
27 };
28
29 }
30
31 #endif /* __pbd_fpu_h__ */