Commit bed34e1d authored by davecromberge's avatar davecromberge Committed by Heinz N. Gies

Align chunk sizes (#40)

* Normalize chunk sizes for all arith funs

* Remove const multiplier from trans funs
parent 524e56b8
......@@ -12,8 +12,8 @@
init([Const]) when is_number(Const), Const /= 0 ->
#state{const = Const}.
chunk(#state{const = Const}) ->
Const * ?RDATA_SIZE.
chunk(#state{}) ->
?RDATA_SIZE.
resolution(_Resolution, State) ->
{1, State}.
......
......@@ -12,8 +12,8 @@
init([Const]) when is_float(Const) ->
#state{const = Const}.
chunk(#state{const = Const}) ->
Const * ?RDATA_SIZE.
chunk(#state{}) ->
?RDATA_SIZE.
resolution(_Resolution, State) ->
{1, State}.
......
......@@ -12,8 +12,8 @@
init([Const]) when is_float(Const) ->
#state{const = Const}.
chunk(#state{const = Const}) ->
Const * ?RDATA_SIZE.
chunk(#state{}) ->
?RDATA_SIZE.
resolution(_Resolution, State) ->
{1, State}.
......
......@@ -12,8 +12,8 @@
init([Const]) when is_number(Const) ->
#state{const = Const}.
chunk(#state{const = Const}) ->
Const * ?RDATA_SIZE.
chunk(#state{}) ->
?RDATA_SIZE.
resolution(_Resolution, State) ->
{1, State}.
......
......@@ -12,8 +12,8 @@
init([Const]) when is_number(Const) ->
#state{const = Const}.
chunk(#state{const = Const}) ->
Const * ?RDATA_SIZE.
chunk(#state{}) ->
?RDATA_SIZE.
resolution(_Resolution, State) ->
{1, State}.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment