about summary refs log tree commit diff
path: root/sysdeps/powerpc/fpu/s_float_bitwise.h
diff options
context:
space:
mode:
authorZack Weinberg <zackw@panix.com>2017-06-08 15:39:03 -0400
committerZack Weinberg <zackw@panix.com>2017-06-08 15:39:03 -0400
commit5046dbb4a7eba5eccfd258f92f4735c9ffc8d069 (patch)
tree4470480d904b65cf14ca524f96f79eca818c3eaf /sysdeps/powerpc/fpu/s_float_bitwise.h
parent199fc19d3aaaf57944ef036e15904febe877fc93 (diff)
downloadglibc-zack/build-layout-experiment.tar.gz
glibc-zack/build-layout-experiment.tar.xz
glibc-zack/build-layout-experiment.zip
Prepare for radical source tree reorganization. zack/build-layout-experiment
All top-level files and directories are moved into a temporary storage
directory, REORG.TODO, except for files that will certainly still
exist in their current form at top level when we're done (COPYING,
COPYING.LIB, LICENSES, NEWS, README), all old ChangeLog files (which
are moved to the new directory OldChangeLogs, instead), and the
generated file INSTALL (which is just deleted; in the new order, there
will be no generated files checked into version control).
Diffstat (limited to 'sysdeps/powerpc/fpu/s_float_bitwise.h')
-rw-r--r--sysdeps/powerpc/fpu/s_float_bitwise.h115
1 files changed, 0 insertions, 115 deletions
diff --git a/sysdeps/powerpc/fpu/s_float_bitwise.h b/sysdeps/powerpc/fpu/s_float_bitwise.h
deleted file mode 100644
index 8e63fb253b..0000000000
--- a/sysdeps/powerpc/fpu/s_float_bitwise.h
+++ /dev/null
@@ -1,115 +0,0 @@
-/* Bitwise manipulation over float. Function prototypes.
-   Copyright (C) 2011-2017 Free Software Foundation, Inc.
-   This file is part of the GNU C Library.
-   Contributed by Adhemerval Zanella <azanella@br.ibm.com>, 2011
-
-   The GNU C Library is free software; you can redistribute it and/or
-   modify it under the terms of the GNU Lesser General Public
-   License as published by the Free Software Foundation; either
-   version 2.1 of the License, or (at your option) any later version.
-
-   The GNU C Library is distributed in the hope that it will be useful,
-   but WITHOUT ANY WARRANTY; without even the implied warranty of
-   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-   Lesser General Public License for more details.
-
-   You should have received a copy of the GNU Lesser General Public
-   License along with the GNU C Library; if not, see
-   <http://www.gnu.org/licenses/>.  */
-
-#ifndef _FLOAT_BITWISE_
-#define _FLOAT_BITWISE_ 1
-
-#include <math_private.h>
-
-/* Returns (int)(num & 0x7FFFFFF0 == value) */
-static inline int
-__float_and_test28 (float num, float value)
-{
-  float ret;
-#ifdef _ARCH_PWR7
-  union {
-    int i;
-    float f;
-  } mask = { .i = 0x7ffffff0 };
-  __asm__ (
-  /* the 'f' constraint is used on mask because we just need
-   * to compare floats, not full vector */
-    "xxland %x0,%x1,%x2" : "=f" (ret) : "f" (num), "f" (mask.f)
-  );
-#else
-  int32_t inum;
-  GET_FLOAT_WORD(inum, num);
-  inum = (inum & 0x7ffffff0);
-  SET_FLOAT_WORD(ret, inum);
-#endif
-  return (ret == value);
-}
-
-/* Returns (int)(num & 0x7FFFFF00 == value) */
-static inline int
-__float_and_test24 (float num, float value)
-{
-  float ret;
-#ifdef _ARCH_PWR7
-  union {
-    int i;
-    float f;
-  } mask = { .i = 0x7fffff00 };
-  __asm__ (
-    "xxland %x0,%x1,%x2" : "=f" (ret) : "f" (num), "f" (mask.f)
-  );
-#else
-  int32_t inum;
-  GET_FLOAT_WORD(inum, num);
-  inum = (inum & 0x7fffff00);
-  SET_FLOAT_WORD(ret, inum);
-#endif
-  return (ret == value);
-}
-
-/* Returns (float)(num & 0x7F800000) */
-static inline float
-__float_and8 (float num)
-{
-  float ret;
-#ifdef _ARCH_PWR7
-  union {
-    int i;
-    float f;
-  } mask = { .i = 0x7f800000 };
-  __asm__ (
-    "xxland %x0,%x1,%x2" : "=f" (ret) : "f" (num), "f" (mask.f)
-  );
-#else
-  int32_t inum;
-  GET_FLOAT_WORD(inum, num);
-  inum = (inum & 0x7f800000);
-  SET_FLOAT_WORD(ret, inum);
-#endif
-  return ret;
-}
-
-/* Returns ((int32_t)(num & 0x7F800000) >> 23) */
-static inline int32_t
-__float_get_exp (float num)
-{
-  int32_t inum;
-#ifdef _ARCH_PWR7
-  float ret;
-  union {
-    int i;
-    float f;
-  } mask = { .i = 0x7f800000 };
-  __asm__ (
-    "xxland %x0,%x1,%x2" : "=f" (ret) : "f" (num), "f" (mask.f)
-  );
-  GET_FLOAT_WORD(inum, ret);
-#else
-  GET_FLOAT_WORD(inum, num);
-  inum = inum & 0x7f800000;
-#endif
-  return inum >> 23;
-}
-
-#endif /* s_float_bitwise.h */