-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merged features/perfomance into master
- Loading branch information
Showing
19 changed files
with
761 additions
and
150 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
{ | ||
"skip_files": [ | ||
"lib/mix/*", | ||
"lib/bson/", | ||
"lib/counter_agent/*" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
defmodule BSON.BinaryUtils do | ||
@moduledoc false | ||
|
||
defmacro int64 do | ||
quote do: signed-little-64 | ||
end | ||
|
||
defmacro int32 do | ||
quote do: signed-little-32 | ||
end | ||
|
||
defmacro int16 do | ||
quote do: signed-little-16 | ||
end | ||
|
||
defmacro uint16 do | ||
quote do: unsigned-little-16 | ||
end | ||
|
||
defmacro int8 do | ||
quote do: signed-little-8 | ||
end | ||
|
||
defmacro float64 do | ||
quote do: float-little-64 | ||
end | ||
|
||
defmacro float32 do | ||
quote do: float-little-32 | ||
end | ||
|
||
defmacro binary(size) do | ||
quote do: binary-size(unquote(size)) | ||
end | ||
end |
Oops, something went wrong.