summaryrefslogtreecommitdiff
path: root/numpy/core/src
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2018-01-05 11:31:22 -0700
committerGitHub <noreply@github.com>2018-01-05 11:31:22 -0700
commit11912050adfa87c0bd1a8495d70c845636d9a037 (patch)
tree9cfa9183f8185cfd380bc17c8d44e2b075f96989 /numpy/core/src
parent7cb22f954ed50217f7eb483f4fbdb67953f6482d (diff)
downloadnumpy-11912050adfa87c0bd1a8495d70c845636d9a037.tar.gz
MAINT: Fix incorrect corrections of `half` to `halves`.
[ci skip]
Diffstat (limited to 'numpy/core/src')
-rw-r--r--numpy/core/src/npymath/halffloat.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/core/src/npymath/halffloat.c b/numpy/core/src/npymath/halffloat.c
index 9fef2cef7..128d1dbc4 100644
--- a/numpy/core/src/npymath/halffloat.c
+++ b/numpy/core/src/npymath/halffloat.c
@@ -281,7 +281,7 @@ npy_uint16 npy_floatbits_to_halfbits(npy_uint32 f)
if (f_exp <= 0x38000000u) {
/*
* Signed zeros, subnormal floats, and floats with small
- * exponents all convert to signed zero halves.
+ * exponents all convert to signed zero half-float.
*/
if (f_exp < 0x33000000u) {
#if NPY_HALF_GENERATE_UNDERFLOW
@@ -396,7 +396,7 @@ npy_uint16 npy_doublebits_to_halfbits(npy_uint64 d)
if (d_exp <= 0x3f00000000000000ULL) {
/*
* Signed zeros, subnormal floats, and floats with small
- * exponents all convert to signed zero halves.
+ * exponents all convert to signed zero half-float.
*/
if (d_exp < 0x3e60000000000000ULL) {
#if NPY_HALF_GENERATE_UNDERFLOW