[Tinyos-2-commits] CVS: tinyos-2.x/tos/chips/atm128 atm128hardware.h, 1.10, 1.11

David Gay idgay at users.sourceforge.net
Fri Sep 19 17:10:23 PDT 2008


Update of /cvsroot/tinyos/tinyos-2.x/tos/chips/atm128
In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv7256/atm128

Modified Files:
	atm128hardware.h 
Log Message:
nx_float support

Index: atm128hardware.h
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/tos/chips/atm128/atm128hardware.h,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -d -r1.10 -r1.11
*** atm128hardware.h	19 Sep 2008 23:59:00 -0000	1.10
--- atm128hardware.h	20 Sep 2008 00:10:18 -0000	1.11
***************
*** 136,140 ****
  }
  
! /* Floating-point network-type support */
  typedef float nx_float __attribute__((nx_base_be(afloat)));
  
--- 136,145 ----
  }
  
! /* Floating-point network-type support.
!    These functions must convert to/from a 32-bit big-endian integer that follows
!    the layout of Java's java.lang.float.floatToRawIntBits method.
!    Conveniently, for the AVR family, this is a straight byte copy...
! */
! 
  typedef float nx_float __attribute__((nx_base_be(afloat)));
  



More information about the Tinyos-2-commits mailing list