Skip to content

Commit

Permalink
Remove underscore in front of nfloat_ctx_(set/get)_real_prec
Browse files Browse the repository at this point in the history
It now matches what is in the documentation.
  • Loading branch information
Joel-Dahne committed Feb 3, 2025
1 parent 4a363d0 commit 66ded13
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/nfloat.h
Original file line number Diff line number Diff line change
Expand Up @@ -137,13 +137,13 @@ int nfloat_set(nfloat_ptr res, nfloat_srcptr x, gr_ctx_t ctx);
truth_t nfloat_equal(nfloat_srcptr x, nfloat_srcptr y, gr_ctx_t ctx);

NFLOAT_INLINE
int _nfloat_ctx_set_real_prec(gr_ctx_t ctx, slong prec)
int nfloat_ctx_set_real_prec(gr_ctx_t ctx, slong prec)

Check warning on line 140 in src/nfloat.h

View check run for this annotation

Codecov / codecov/patch

src/nfloat.h#L140

Added line #L140 was not covered by tests
{
return GR_UNABLE;
}

NFLOAT_INLINE
int _nfloat_ctx_get_real_prec(slong * res, gr_ctx_t ctx)
int nfloat_ctx_get_real_prec(slong * res, gr_ctx_t ctx)

Check warning on line 146 in src/nfloat.h

View check run for this annotation

Codecov / codecov/patch

src/nfloat.h#L146

Added line #L146 was not covered by tests
{
*res = NFLOAT_CTX_PREC(ctx);
return GR_SUCCESS;
Expand Down
4 changes: 2 additions & 2 deletions src/nfloat/complex.c
Original file line number Diff line number Diff line change
Expand Up @@ -1698,8 +1698,8 @@ gr_method_tab_input _nfloat_complex_methods_input[] =
(gr_funcptr) gr_generic_ctx_predicate_false},

{GR_METHOD_CTX_HAS_REAL_PREC, (gr_funcptr) gr_generic_ctx_predicate_true},
{GR_METHOD_CTX_SET_REAL_PREC, (gr_funcptr) _nfloat_ctx_set_real_prec},
{GR_METHOD_CTX_GET_REAL_PREC, (gr_funcptr) _nfloat_ctx_get_real_prec},
{GR_METHOD_CTX_SET_REAL_PREC, (gr_funcptr) nfloat_ctx_set_real_prec},
{GR_METHOD_CTX_GET_REAL_PREC, (gr_funcptr) nfloat_ctx_get_real_prec},

{GR_METHOD_INIT, (gr_funcptr) nfloat_complex_init},
{GR_METHOD_CLEAR, (gr_funcptr) nfloat_complex_clear},
Expand Down
4 changes: 2 additions & 2 deletions src/nfloat/ctx.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ gr_method_tab_input _nfloat_methods_input[] =
(gr_funcptr) gr_generic_ctx_predicate_false},

{GR_METHOD_CTX_HAS_REAL_PREC, (gr_funcptr) gr_generic_ctx_predicate_true},
{GR_METHOD_CTX_SET_REAL_PREC, (gr_funcptr) _nfloat_ctx_set_real_prec},
{GR_METHOD_CTX_GET_REAL_PREC, (gr_funcptr) _nfloat_ctx_get_real_prec},
{GR_METHOD_CTX_SET_REAL_PREC, (gr_funcptr) nfloat_ctx_set_real_prec},
{GR_METHOD_CTX_GET_REAL_PREC, (gr_funcptr) nfloat_ctx_get_real_prec},

{GR_METHOD_INIT, (gr_funcptr) nfloat_init},
{GR_METHOD_CLEAR, (gr_funcptr) nfloat_clear},
Expand Down

0 comments on commit 66ded13

Please sign in to comment.