Bug 835646 - remove NS_{GET,PUT}_{FLOAT,DOUBLE}; r=bsmedberg
authorNathan Froyd <froydnj@mozilla.com>
Mon, 28 Jan 2013 21:20:01 -0500
changeset 131654 73e415d1c471f8d66520fcf157178c5ee63e8ed3
parent 131653 bbb9c1daf95d763b3c18b42400976d24bd7d4e45
child 131655 417bc737c6e3f5a5e761aacd5e3fa17b4ac6f938
push id2323
push userbbajaj@mozilla.com
push dateMon, 01 Apr 2013 19:47:02 +0000
treeherdermozilla-beta@7712be144d91 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbsmedberg
bugs835646
milestone21.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 835646 - remove NS_{GET,PUT}_{FLOAT,DOUBLE}; r=bsmedberg
xpcom/io/nsIStreamBufferAccess.idl
--- a/xpcom/io/nsIStreamBufferAccess.idl
+++ b/xpcom/io/nsIStreamBufferAccess.idl
@@ -140,19 +140,15 @@ interface nsIStreamBufferAccess : nsISup
  */
 #define NS_GET_BUFFER(sba,n,a)  ((sba)->GetBuffer(n, a))
 #define NS_PUT_BUFFER(sba,p,n)  ((sba)->PutBuffer(p, n))
 
 #define NS_GET8(p)              (*(uint8_t*)(p))
 #define NS_GET16(p)             NS_SWAP16(*(uint16_t*)(p))
 #define NS_GET32(p)             NS_SWAP32(*(uint32_t*)(p))
 #define NS_GET64(p)             NS_SWAP64(*(uint64_t*)(p))
-#define NS_GET_FLOAT(p)         ((float)NS_SWAP32(*(uint32_t*)(p)))
-#define NS_GET_DOUBLE(p)        ((double)NS_SWAP64(*(uint64_t*)(p)))
 
 #define NS_PUT8(p,x)            (*(uint8_t*)(p) = (x))
 #define NS_PUT16(p,x)           (*(uint16_t*)(p) = NS_SWAP16(x))
 #define NS_PUT32(p,x)           (*(uint32_t*)(p) = NS_SWAP32(x))
 #define NS_PUT64(p,x)           (*(uint64_t*)(p) = NS_SWAP64(x))
-#define NS_PUT_FLOAT(p,x)       (*(uint32_t*)(p) = NS_SWAP32(*(uint32_t*)&(x)))
-#define NS_PUT_DOUBLE(p,x)      (*(uint64_t*)(p) = NS_SWAP64(*(uint64_t*)&(x)))
 
 %}