Ignore:
Timestamp:
09/28/18 16:32:55 (6 years ago)
Author:
Hal Finkel <hfinkel@…>
Branches:
master, pympi
Children:
e6aa0eb
Parents:
abca157
git-author:
Hal Finkel <hfinkel@…> (09/28/18 16:32:55)
git-committer:
Hal Finkel <hfinkel@…> (09/28/18 16:32:55)
Message:

importing new SZ files

File:
1 edited

Legend:

Unmodified
Added
Removed
  • thirdparty/SZ/sz/src/ByteToolkit.c

    r2c47b73 r9ee2ce3  
    431431 
    432432//the byte to input is in the big-endian format 
    433 float bytesToFloat(unsigned char* bytes) 
     433inline float bytesToFloat(unsigned char* bytes) 
    434434{ 
    435435        lfloat buf; 
     
    440440} 
    441441 
    442 void floatToBytes(unsigned char *b, float num) 
     442inline void floatToBytes(unsigned char *b, float num) 
    443443{ 
    444444        lfloat buf; 
     
    450450 
    451451//the byte to input is in the big-endian format 
    452 double bytesToDouble(unsigned char* bytes) 
     452inline double bytesToDouble(unsigned char* bytes) 
    453453{ 
    454454        ldouble buf; 
     
    459459} 
    460460 
    461 void doubleToBytes(unsigned char *b, double num) 
     461inline void doubleToBytes(unsigned char *b, double num) 
    462462{ 
    463463        ldouble buf; 
     
    508508} 
    509509 
    510 int getMaskRightCode(int m) { 
     510inline int getMaskRightCode(int m) { 
    511511        switch (m) { 
    512512        case 1: 
     
    531531} 
    532532 
    533 int getLeftMovingCode(int kMod8) 
     533inline int getLeftMovingCode(int kMod8) 
    534534{ 
    535535        return getMaskRightCode(8 - kMod8); 
    536536} 
    537537 
    538 int getRightMovingSteps(int kMod8, int resiBitLength) { 
     538inline int getRightMovingSteps(int kMod8, int resiBitLength) { 
    539539        return 8 - kMod8 - resiBitLength; 
    540540} 
    541541 
    542 int getRightMovingCode(int kMod8, int resiBitLength) 
     542inline int getRightMovingCode(int kMod8, int resiBitLength) 
    543543{ 
    544544        int rightMovingSteps = 8 - kMod8 - resiBitLength; 
     
    815815 
    816816 
    817 size_t bytesToSize(unsigned char* bytes) 
     817inline size_t bytesToSize(unsigned char* bytes) 
    818818{ 
    819819        size_t result = 0; 
     
    825825} 
    826826 
    827 void sizeToBytes(unsigned char* outBytes, size_t size) 
     827inline void sizeToBytes(unsigned char* outBytes, size_t size) 
    828828{ 
    829829        if(exe_params->SZ_SIZE_TYPE==4) 
Note: See TracChangeset for help on using the changeset viewer.