Ignore:
Timestamp:
Mar 3, 2010, 9:44:38 PM (16 years ago)
Author:
ansari
Message:

Prise en charge de float 128 bits (r_16, complex<r_16>) par les NDataBlock<T> et PPersist, controlee par le flag de compilation SO_LDBLE128 defini ds machdefs.h , Reza 03/03/2010

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaLib/BaseTools/ppfbinstream.h

    r2485 r3750  
    142142  void   GetZ8   (complex<r_8> &);
    143143  void   GetZ8s  (complex<r_8> *, size_t);
     144#ifdef SO_LDBLE128
     145  void   GetR16  (r_16&);
     146  void   GetR16s (r_16*, size_t);
     147  void   GetZ16  (complex<r_16> &);
     148  void   GetZ16s (complex<r_16> *, size_t);
     149#endif
    144150 
    145151  inline void   Get(char&   c) {GetByte(c);}
     
    170176  inline void   Get(complex<r_4> * x, size_t n) { GetZ4s(x, n); }
    171177  inline void   Get(complex<r_8> * x, size_t n) { GetZ8s(x, n); }
    172  
     178#ifdef SO_LDBLE128
     179  inline void   Get(r_16&   x) {GetR16(x);}
     180  inline void   Get(r_16*   x, size_t n) {GetR16s(x,n);}
     181  inline void   Get(complex<r_16> & x) {GetZ16(x);}
     182  inline void   Get(complex<r_16> * x, size_t n) { GetZ16s(x, n); }
     183#endif 
    173184  // Reading a list (table) of position tags
    174185  void    GetPosTagTable(int_8*, size_t);
     
    184195  void   SkipItem(bool fgrdi=true, unsigned char itag=0);
    185196
    186   void   CheckTag   (short datasz, short datatype);
    187   void   CheckArrayTag(short datasz, size_t sz, short datatype);
     197  void   CheckTag   (unsigned char datasz, unsigned char datatype);
     198  void   CheckArrayTag(unsigned char datasz, size_t sz, unsigned char datatype);
    188199  void   GetTypeTag (unsigned char& c);
    189200  void   GetRawByte (char& c);
     
    245256  void PutZ8   (complex<r_8>);
    246257  void PutZ8s  (complex<r_8> const*, size_t);
    247  
     258#ifdef SO_LDBLE128
     259  void PutR16  (r_16);
     260  void PutR16s (r_16 const*, size_t);
     261  void PutZ16  (complex<r_16>);
     262  void PutZ16s (complex<r_16> const*, size_t);
     263#endif 
    248264 
    249265  void   Put(char   c) {PutByte(c);}
     
    264280  void   Put(complex<r_4> const*    x, size_t n) {PutZ4s(x,n);}
    265281  void   Put(complex<r_8> const*    x, size_t n) {PutZ8s(x,n);}
     282#ifdef SO_LDBLE128
     283  void   Put(r_16   x) {PutR16(x);}
     284  void   Put(r_16 const*   x, size_t n) {PutR16s(x,n);}
     285  void   Put(complex<r_16>  x) {PutZ16(x);}
     286  void   Put(complex<r_16> const*   x, size_t n) {PutZ16s(x,n);}
     287#endif
    266288  void   Put(uint_1 const* x, size_t n) {PutU1s(x,n);}
    267289  void   Put(int_1 const*  x, size_t n) {PutI1s(x,n);}
     
    284306  void     WriteNameTagTableV2();
    285307
    286   void     PutArrayTag(short datasz, size_t sz, short datatype);
     308  void     PutArrayTag(unsigned char datasz, size_t sz, unsigned char datatype);
    287309  void     PutRawByte (char);
    288310  void     PutRawUByte (unsigned char);
Note: See TracChangeset for help on using the changeset viewer.