anchor.diff:          end,
       erlang:load_nif(SoName, 0).
   
  -% This is just a simple place holder. It mostly shouldn't ever be called
  -% unless there was an unexpected error loading the NIF shared library.
  -
  -not_loaded(Line) ->
  -    exit({not_loaded, [{module, ?MODULE}, {line, Line}]}).
  -
   %%% ============================================================================
   %%% Benchmarks
   %%% ============================================================================
  
positive.code: %%% ============================================================================
  
  new_counter() ->
      not_loaded(?LINE).
  
  -spec inc(Oneup::oneup()) -> ok.
  inc(_) ->
      not_loaded(?LINE).
  
  
  -spec inc(Oneup::oneup(), Increment::integer()) -> ok.
  inc2(_,_) ->
      not_loaded(?LINE).
  
  %% Increment this counter by `Inc' if the current value is less than
  %% the value of `Threshold'.
  
negative.code:                        Increment::integer(),
                         Threshold::integer()) -> boolean().
  inc_if_less_than(_,_,_) ->
      erlang:nif_error(?LINE).
  
  %%
  -spec get(Oneup::oneup()) -> integer().
  get(_) ->
      erlang:nif_error(?LINE).
  
  %% Check if the underlying atomic implementation for this platform
  %% is actually lock free.
  -spec is_lock_free() -> boolean().
  is_lock_free() ->
      erlang:nif_error(?LINE).
  
  %%% ============================================================================
  %%% Internal functions
  