]> rtime.felk.cvut.cz Git - orte.git/blobdiff - orte/liborte/conv.c
New ORTE version 0.3.0 committed
[orte.git] / orte / liborte / conv.c
index e0500e1e2d1456ca8c7c2475d269d6b052b9afd8..e79aa70efca7b68f5842e86faa37c2216c03d1d1 100644 (file)
 
 #include "orte_all.h"
 
-/**********************************************************************************/
-void conv_u16(uint16_t *x,char ef) {
-  #if WORDS_BIGENDIAN
-     if(ef) *x=bswap_16(*x);
-  #else
-     if(!ef) *x=bswap_16(*x);
-  #endif
-}
-
-/**********************************************************************************/
-void conv_u32(uint32_t *x,char ef) {
-  #if WORDS_BIGENDIAN
-     if(ef) *x=bswap_32(*x);
-  #else
-     if(!ef) *x=bswap_32(*x);
-  #endif
-}
-
-/**********************************************************************************/
-void conv_sn(SequenceNumber *sn,char ef) {
-  #if WORDS_BIGENDIAN
-     if(ef) {
-       sn->high=bswap_32(sn->high);
-       sn->low=bswap_32(sn->low);
-     }  
-  #else
-     if(!ef) {
-       sn->high=bswap_32(sn->high);
-       sn->low=bswap_32(sn->low);
-     }  
-  #endif
-}
-
-/**********************************************************************************/
-void conv_ntp(NtpTime *ntp,char ef) {
-  #if WORDS_BIGENDIAN
-     if(ef) {
-       ntp->seconds=bswap_32(ntp->seconds);
-       ntp->fraction=bswap_32(ntp->fraction);
-     }  
-  #else
-     if(!ef) {
-       ntp->seconds=bswap_32(ntp->seconds);
-       ntp->fraction=bswap_32(ntp->fraction);
-     }  
-  #endif
-}
-
 /**********************************************************************************/
 //get part of string, div. by semi.
 int