Skip to content

Commit

Permalink
Merge pull request #2232 from Joel-Dahne/nfloat_ctx_xxx_real_rec
Browse files Browse the repository at this point in the history
Remove underscore in front of nfloat_ctx_(set/get)_real_prec
  • Loading branch information
fredrik-johansson authored Feb 3, 2025
2 parents 59dea52 + 66ded13 commit 7486570
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)
{
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)
{
*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 7486570

Please sign in to comment.