Skip to content

Commit

Permalink
Remove IEEE test for floating point values
Browse files Browse the repository at this point in the history
These tests are tun in the conf scripts, but results were actually commented out already.
Today, all systems we target support IEEE and it's likely to stay that way so these steps can be removed in an ongoing effort to simplify the installation scripts.

closes #42
  • Loading branch information
hamogu committed Dec 28, 2023
1 parent a84c48d commit d0a1845
Show file tree
Hide file tree
Showing 11 changed files with 2 additions and 293 deletions.
1 change: 0 additions & 1 deletion MANIFEST
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ jdfits/src/fitsmisc.c
jdfits/src/fitsuser.c
jdfits/src/fitswbin.c
jdfits/src/fitswrite.c
jdfits/src/ieee.c
jdfits/src/_jdfits.h
jdfits/src/jdfits.h
jdfits/src/julian.c
Expand Down
19 changes: 0 additions & 19 deletions autoconf/aclocal.m4
Original file line number Diff line number Diff line change
Expand Up @@ -342,25 +342,6 @@ fi
dnl#}}}
IEEE_CFLAGS=""
AC_DEFUN([JD_IEEE_CFLAGS], dnl#{{{
[
case "$host_cpu" in
*alpha* )
if test "$GCC" = yes
then
IEEE_CFLAGS="-mieee"
else
IEEE_CFLAGS="-ieee_with_no_inexact"
fi
;;
* )
IEEE_CFLAGS=""
esac
])
dnl#}}}
AC_DEFUN([JD_CREATE_ORULE], dnl#{{{
[
PROGRAM_OBJECT_RULES="$PROGRAM_OBJECT_RULES
Expand Down
19 changes: 0 additions & 19 deletions jdfits/autoconf/aclocal.m4
Original file line number Diff line number Diff line change
Expand Up @@ -342,25 +342,6 @@ fi
dnl#}}}
IEEE_CFLAGS=""
AC_DEFUN([JD_IEEE_CFLAGS], dnl#{{{
[
case "$host_cpu" in
*alpha* )
if test "$GCC" = yes
then
IEEE_CFLAGS="-mieee"
else
IEEE_CFLAGS="-ieee_with_no_inexact"
fi
;;
* )
IEEE_CFLAGS=""
esac
])
dnl#}}}
AC_DEFUN([JD_CREATE_ORULE], dnl#{{{
[
PROGRAM_OBJECT_RULES="$PROGRAM_OBJECT_RULES
Expand Down
1 change: 0 additions & 1 deletion jdfits/jdfits.lis
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
@src/julian.c
@src/btread.c
@src/makefits.c
@src/ieee.c
@src/copyfits.c
@src/modules.lis
@src/_jdfits.h
162 changes: 0 additions & 162 deletions jdfits/src/ieee.c

This file was deleted.

17 changes: 1 addition & 16 deletions jdfits/src/sysconf.c
Original file line number Diff line number Diff line change
Expand Up @@ -76,22 +76,7 @@ int main (int argc, char **argv)
{
fprintf (stdout, "#define NEEDS_BYTE_SWAP\n");
}

/* Now determine the floating point style */

u.f = 1.2345678f;
if (u.n == 0x3F9E0651)
{
fprintf (stdout, "#define USES_IEEE_FLOAT\n");
}
else if (u.n == 0x0651409E)
{
fprintf (stdout, "#define USES_VAX_FLOAT\n");
}
else
{
error ("Unknown floating point format. Not supported.");
}


fprintf (stdout, "#endif /* INT16_DEFINED */\n");
return 0;
Expand Down
19 changes: 0 additions & 19 deletions jdmath/autoconf/aclocal.m4
Original file line number Diff line number Diff line change
Expand Up @@ -342,25 +342,6 @@ fi
dnl#}}}
IEEE_CFLAGS=""
AC_DEFUN([JD_IEEE_CFLAGS], dnl#{{{
[
case "$host_cpu" in
*alpha* )
if test "$GCC" = yes
then
IEEE_CFLAGS="-mieee"
else
IEEE_CFLAGS="-ieee_with_no_inexact"
fi
;;
* )
IEEE_CFLAGS=""
esac
])
dnl#}}}
AC_DEFUN([JD_CREATE_ORULE], dnl#{{{
[
PROGRAM_OBJECT_RULES="$PROGRAM_OBJECT_RULES
Expand Down
4 changes: 1 addition & 3 deletions jdmath/autoconf/configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@ AC_PROG_INSTALL
AC_CANONICAL_HOST

#JD_ANSI_CC
#JD_IEEE_CFLAGS
#ELF_CFLAGS="$ELF_CFLAGS $IEEE_CFLAGS"
#CFLAGS="$CFLAGS $IEEE_CFLAGS"
#ELF_CFLAGS="$ELF_CFLAGS"


#Check these header since they cause trouble
Expand Down
16 changes: 0 additions & 16 deletions jdmath/src/sysconf.c
Original file line number Diff line number Diff line change
Expand Up @@ -77,22 +77,6 @@ int main (int argc, char **argv)
fprintf (stdout, "#define NEEDS_BYTE_SWAP\n");
}

/* Now determine the floating point style */

u.f = 1.2345678f;
if (u.n == 0x3F9E0651)
{
fprintf (stdout, "#define USES_IEEE_FLOAT\n");
}
else if (u.n == 0x0651409E)
{
fprintf (stdout, "#define USES_VAX_FLOAT\n");
}
else
{
error ("Unknown floating point format. Not supported.");
}

fprintf (stdout, "#endif /* INT16_DEFINED */\n");
return 0;
}
Expand Down
19 changes: 0 additions & 19 deletions marx/autoconf/aclocal.m4
Original file line number Diff line number Diff line change
Expand Up @@ -342,25 +342,6 @@ fi
dnl#}}}
IEEE_CFLAGS=""
AC_DEFUN([JD_IEEE_CFLAGS], dnl#{{{
[
case "$host_cpu" in
*alpha* )
if test "$GCC" = yes
then
IEEE_CFLAGS="-mieee"
else
IEEE_CFLAGS="-ieee_with_no_inexact"
fi
;;
* )
IEEE_CFLAGS=""
esac
])
dnl#}}}
AC_DEFUN([JD_CREATE_ORULE], dnl#{{{
[
PROGRAM_OBJECT_RULES="$PROGRAM_OBJECT_RULES
Expand Down
18 changes: 0 additions & 18 deletions pfile/autoconf/aclocal.m4
Original file line number Diff line number Diff line change
Expand Up @@ -342,24 +342,6 @@ fi
dnl#}}}
IEEE_CFLAGS=""
AC_DEFUN([JD_IEEE_CFLAGS], dnl#{{{
[
case "$host_cpu" in
*alpha* )
if test "$GCC" = yes
then
IEEE_CFLAGS="-mieee"
else
IEEE_CFLAGS="-ieee_with_no_inexact"
fi
;;
* )
IEEE_CFLAGS=""
esac
])
dnl#}}}
AC_DEFUN([JD_CREATE_ORULE], dnl#{{{
[
Expand Down

0 comments on commit d0a1845

Please sign in to comment.