Skip to content

Commit

Permalink
MAINT: updated instructions to get MachAr byte pattern (#26415)
Browse files Browse the repository at this point in the history
* MAINT: updated instructions to get MachAr byte pattern
  • Loading branch information
andyfaff committed May 10, 2024
1 parent 766ee27 commit 300096d
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions numpy/_core/getlimits.py
Expand Up @@ -146,10 +146,12 @@ def _float_to_str(self, value):
title = _title_fmt.format('half'))}

# Key to identify the floating point type. Key is result of
# ftype('-0.1').newbyteorder('<').tobytes()
#
# 20230201 - use (ftype(-1.0) / ftype(10.0)).newbyteorder('<').tobytes()
# instead because stold may have deficiencies on some platforms.
# ftype = np.longdouble # or float64, float32, etc.
# v = (ftype(-1.0) / ftype(10.0))
# v.view(v.dtype.newbyteorder('<')).tobytes()
#
# Uses division to work around deficiencies in strtold on some platforms.
# See:
# https://perl5.git.perl.org/perl.git/blob/3118d7d684b56cbeb702af874f4326683c45f045:/Configure

Expand Down

0 comments on commit 300096d

Please sign in to comment.