Skip to content

Commit

Permalink
put bits macro
Browse files Browse the repository at this point in the history
  • Loading branch information
Tony Hannan committed Nov 27, 2010
1 parent 072097e commit 2ea800c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/bson_binary.hrl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
-define (put_int32 (N), (N):32/signed-little).
-define (put_int64 (N), (N):64/signed-little).
-define (put_float (N), (N):64/float-little).
-define (put_bits32 (B7,B6,B5,B4,B3,B2,B1,B0), (B7):1,(B6):1,(B5):1,(B4):1,(B3):1,(B2):1,(B1):1,(B0):1,0:24).

-define (get_int32 (N), N:32/signed-little).
-define (get_int64 (N), N:64/signed-little).
-define (get_float (N), N:64/float-little).
-define (get_bits32 (B7,B6,B5,B4,B3,B2,B1,B0), B7:1,B6:1,B5:1,B4:1,B3:1,B2:1,B1:1,B0:1,_:24).

0 comments on commit 2ea800c

Please sign in to comment.