changeset 11833:09e64f020b1f octave-forge

fenv: moved to a separate mercurial repo
author carandraug
date Tue, 18 Jun 2013 16:14:34 +0000
parents 176dcd8bf3b8
children b11e3e4f0f20
files main/fenv/COPYING main/fenv/DESCRIPTION main/fenv/INDEX main/fenv/Makefile main/fenv/PKG_ADD main/fenv/configure main/fenv/pre_install.m main/fenv/src/Makefile main/fenv/src/fe_system_dependent.cc main/fenv/src/fesetprec.m main/fenv/src/fesetround.m main/fenv/src/fetestenv.m main/fenv/src/system_dependent.m
diffstat 13 files changed, 0 insertions(+), 1071 deletions(-) [+]
line wrap: on
line diff
--- a/main/fenv/COPYING	Tue Jun 18 09:36:13 2013 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,337 +0,0 @@
-                    GNU GENERAL PUBLIC LICENSE
-                       Version 2, June 1991
-
- Copyright (C) 1989, 1991 Free Software Foundation, Inc. <http://fsf.org/>
- Everyone is permitted to copy and distribute verbatim copies
- of this license document, but changing it is not allowed.
-
-                            Preamble
-
-  The licenses for most software are designed to take away your
-freedom to share and change it.  By contrast, the GNU General Public
-License is intended to guarantee your freedom to share and change free
-software--to make sure the software is free for all its users.  This
-General Public License applies to most of the Free Software
-Foundation's software and to any other program whose authors commit to
-using it.  (Some other Free Software Foundation software is covered by
-the GNU Library General Public License instead.)  You can apply it to
-your programs, too.
-
-  When we speak of free software, we are referring to freedom, not
-price.  Our General Public Licenses are designed to make sure that you
-have the freedom to distribute copies of free software (and charge for
-this service if you wish), that you receive source code or can get it
-if you want it, that you can change the software or use pieces of it
-in new free programs; and that you know you can do these things.
-
-  To protect your rights, we need to make restrictions that forbid
-anyone to deny you these rights or to ask you to surrender the rights.
-These restrictions translate to certain responsibilities for you if you
-distribute copies of the software, or if you modify it.
-
-  For example, if you distribute copies of such a program, whether
-gratis or for a fee, you must give the recipients all the rights that
-you have.  You must make sure that they, too, receive or can get the
-source code.  And you must show them these terms so they know their
-rights.
-
-  We protect your rights with two steps: (1) copyright the software, and
-(2) offer you this license which gives you legal permission to copy,
-distribute and/or modify the software.
-
-  Also, for each author's protection and ours, we want to make certain
-that everyone understands that there is no warranty for this free
-software.  If the software is modified by someone else and passed on, we
-want its recipients to know that what they have is not the original, so
-that any problems introduced by others will not reflect on the original
-authors' reputations.
-
-  Finally, any free program is threatened constantly by software
-patents.  We wish to avoid the danger that redistributors of a free
-program will individually obtain patent licenses, in effect making the
-program proprietary.  To prevent this, we have made it clear that any
-patent must be licensed for everyone's free use or not licensed at all.
-
-  The precise terms and conditions for copying, distribution and
-modification follow.
-
-                    GNU GENERAL PUBLIC LICENSE
-   TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
-
-  0. This License applies to any program or other work which contains
-a notice placed by the copyright holder saying it may be distributed
-under the terms of this General Public License.  The "Program", below,
-refers to any such program or work, and a "work based on the Program"
-means either the Program or any derivative work under copyright law:
-that is to say, a work containing the Program or a portion of it,
-either verbatim or with modifications and/or translated into another
-language.  (Hereinafter, translation is included without limitation in
-the term "modification".)  Each licensee is addressed as "you".
-
-Activities other than copying, distribution and modification are not
-covered by this License; they are outside its scope.  The act of
-running the Program is not restricted, and the output from the Program
-is covered only if its contents constitute a work based on the
-Program (independent of having been made by running the Program).
-Whether that is true depends on what the Program does.
-
-  1. You may copy and distribute verbatim copies of the Program's
-source code as you receive it, in any medium, provided that you
-conspicuously and appropriately publish on each copy an appropriate
-copyright notice and disclaimer of warranty; keep intact all the
-notices that refer to this License and to the absence of any warranty;
-and give any other recipients of the Program a copy of this License
-along with the Program.
-
-You may charge a fee for the physical act of transferring a copy, and
-you may at your option offer warranty protection in exchange for a fee.
-
-  2. You may modify your copy or copies of the Program or any portion
-of it, thus forming a work based on the Program, and copy and
-distribute such modifications or work under the terms of Section 1
-above, provided that you also meet all of these conditions:
-
-    a) You must cause the modified files to carry prominent notices
-    stating that you changed the files and the date of any change.
-
-    b) You must cause any work that you distribute or publish, that in
-    whole or in part contains or is derived from the Program or any
-    part thereof, to be licensed as a whole at no charge to all third
-    parties under the terms of this License.
-
-    c) If the modified program normally reads commands interactively
-    when run, you must cause it, when started running for such
-    interactive use in the most ordinary way, to print or display an
-    announcement including an appropriate copyright notice and a
-    notice that there is no warranty (or else, saying that you provide
-    a warranty) and that users may redistribute the program under
-    these conditions, and telling the user how to view a copy of this
-    License.  (Exception: if the Program itself is interactive but
-    does not normally print such an announcement, your work based on
-    the Program is not required to print an announcement.)
-
-These requirements apply to the modified work as a whole.  If
-identifiable sections of that work are not derived from the Program,
-and can be reasonably considered independent and separate works in
-themselves, then this License, and its terms, do not apply to those
-sections when you distribute them as separate works.  But when you
-distribute the same sections as part of a whole which is a work based
-on the Program, the distribution of the whole must be on the terms of
-this License, whose permissions for other licensees extend to the
-entire whole, and thus to each and every part regardless of who wrote it.
-
-Thus, it is not the intent of this section to claim rights or contest
-your rights to work written entirely by you; rather, the intent is to
-exercise the right to control the distribution of derivative or
-collective works based on the Program.
-
-In addition, mere aggregation of another work not based on the Program
-with the Program (or with a work based on the Program) on a volume of
-a storage or distribution medium does not bring the other work under
-the scope of this License.
-
-  3. You may copy and distribute the Program (or a work based on it,
-under Section 2) in object code or executable form under the terms of
-Sections 1 and 2 above provided that you also do one of the following:
-
-    a) Accompany it with the complete corresponding machine-readable
-    source code, which must be distributed under the terms of Sections
-    1 and 2 above on a medium customarily used for software interchange; or,
-
-    b) Accompany it with a written offer, valid for at least three
-    years, to give any third party, for a charge no more than your
-    cost of physically performing source distribution, a complete
-    machine-readable copy of the corresponding source code, to be
-    distributed under the terms of Sections 1 and 2 above on a medium
-    customarily used for software interchange; or,
-
-    c) Accompany it with the information you received as to the offer
-    to distribute corresponding source code.  (This alternative is
-    allowed only for noncommercial distribution and only if you
-    received the program in object code or executable form with such
-    an offer, in accord with Subsection b above.)
-
-The source code for a work means the preferred form of the work for
-making modifications to it.  For an executable work, complete source
-code means all the source code for all modules it contains, plus any
-associated interface definition files, plus the scripts used to
-control compilation and installation of the executable.  However, as a
-special exception, the source code distributed need not include
-anything that is normally distributed (in either source or binary
-form) with the major components (compiler, kernel, and so on) of the
-operating system on which the executable runs, unless that component
-itself accompanies the executable.
-
-If distribution of executable or object code is made by offering
-access to copy from a designated place, then offering equivalent
-access to copy the source code from the same place counts as
-distribution of the source code, even though third parties are not
-compelled to copy the source along with the object code.
-
-  4. You may not copy, modify, sublicense, or distribute the Program
-except as expressly provided under this License.  Any attempt
-otherwise to copy, modify, sublicense or distribute the Program is
-void, and will automatically terminate your rights under this License.
-However, parties who have received copies, or rights, from you under
-this License will not have their licenses terminated so long as such
-parties remain in full compliance.
-
-  5. You are not required to accept this License, since you have not
-signed it.  However, nothing else grants you permission to modify or
-distribute the Program or its derivative works.  These actions are
-prohibited by law if you do not accept this License.  Therefore, by
-modifying or distributing the Program (or any work based on the
-Program), you indicate your acceptance of this License to do so, and
-all its terms and conditions for copying, distributing or modifying
-the Program or works based on it.
-
-  6. Each time you redistribute the Program (or any work based on the
-Program), the recipient automatically receives a license from the
-original licensor to copy, distribute or modify the Program subject to
-these terms and conditions.  You may not impose any further
-restrictions on the recipients' exercise of the rights granted herein.
-You are not responsible for enforcing compliance by third parties to
-this License.
-
-  7. If, as a consequence of a court judgment or allegation of patent
-infringement or for any other reason (not limited to patent issues),
-conditions are imposed on you (whether by court order, agreement or
-otherwise) that contradict the conditions of this License, they do not
-excuse you from the conditions of this License.  If you cannot
-distribute so as to satisfy simultaneously your obligations under this
-License and any other pertinent obligations, then as a consequence you
-may not distribute the Program at all.  For example, if a patent
-license would not permit royalty-free redistribution of the Program by
-all those who receive copies directly or indirectly through you, then
-the only way you could satisfy both it and this License would be to
-refrain entirely from distribution of the Program.
-
-If any portion of this section is held invalid or unenforceable under
-any particular circumstance, the balance of the section is intended to
-apply and the section as a whole is intended to apply in other
-circumstances.
-
-It is not the purpose of this section to induce you to infringe any
-patents or other property right claims or to contest validity of any
-such claims; this section has the sole purpose of protecting the
-integrity of the free software distribution system, which is
-implemented by public license practices.  Many people have made
-generous contributions to the wide range of software distributed
-through that system in reliance on consistent application of that
-system; it is up to the author/donor to decide if he or she is willing
-to distribute software through any other system and a licensee cannot
-impose that choice.
-
-This section is intended to make thoroughly clear what is believed to
-be a consequence of the rest of this License.
-
-  8. If the distribution and/or use of the Program is restricted in
-certain countries either by patents or by copyrighted interfaces, the
-original copyright holder who places the Program under this License
-may add an explicit geographical distribution limitation excluding
-those countries, so that distribution is permitted only in or among
-countries not thus excluded.  In such case, this License incorporates
-the limitation as if written in the body of this License.
-
-  9. The Free Software Foundation may publish revised and/or new versions
-of the General Public License from time to time.  Such new versions will
-be similar in spirit to the present version, but may differ in detail to
-address new problems or concerns.
-
-Each version is given a distinguishing version number.  If the Program
-specifies a version number of this License which applies to it and "any
-later version", you have the option of following the terms and conditions
-either of that version or of any later version published by the Free
-Software Foundation.  If the Program does not specify a version number of
-this License, you may choose any version ever published by the Free Software
-Foundation.
-
-  10. If you wish to incorporate parts of the Program into other free
-programs whose distribution conditions are different, write to the author
-to ask for permission.  For software which is copyrighted by the Free
-Software Foundation, write to the Free Software Foundation; we sometimes
-make exceptions for this.  Our decision will be guided by the two goals
-of preserving the free status of all derivatives of our free software and
-of promoting the sharing and reuse of software generally.
-
-                            NO WARRANTY
-
-  11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
-FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW.  EXCEPT WHEN
-OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
-PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
-OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
-MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.  THE ENTIRE RISK AS
-TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU.  SHOULD THE
-PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
-REPAIR OR CORRECTION.
-
-  12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
-WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
-REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
-INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
-OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
-TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
-YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
-PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
-POSSIBILITY OF SUCH DAMAGES.
-
-                     END OF TERMS AND CONDITIONS
-
-            How to Apply These Terms to Your New Programs
-
-  If you develop a new program, and you want it to be of the greatest
-possible use to the public, the best way to achieve this is to make it
-free software which everyone can redistribute and change under these terms.
-
-  To do so, attach the following notices to the program.  It is safest
-to attach them to the start of each source file to most effectively
-convey the exclusion of warranty; and each file should have at least
-the "copyright" line and a pointer to where the full notice is found.
-
-    <one line to give the program's name and a brief idea of what it does.>
-    Copyright (C) <year>  <name of author>
-
-    This program is free software; you can redistribute it and/or modify
-    it under the terms of the GNU General Public License as published by
-    the Free Software Foundation; either version 2 of the License, or
-    (at your option) any later version.
-
-    This program 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 General Public License for more details.
-
-    You should have received a copy of the GNU General Public License
-    along with this program; if not, see <http://www.gnu.org/licenses/>.
-
-Also add information on how to contact you by electronic and paper mail.
-
-If the program is interactive, make it output a short notice like this
-when it starts in an interactive mode:
-
-    Gnomovision version 69, Copyright (C) year name of author
-    Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
-    This is free software, and you are welcome to redistribute it
-    under certain conditions; type `show c' for details.
-
-The hypothetical commands `show w' and `show c' should show the appropriate
-parts of the General Public License.  Of course, the commands you use may
-be called something other than `show w' and `show c'; they could even be
-mouse-clicks or menu items--whatever suits your program.
-
-You should also get your employer (if you work as a programmer) or your
-school, if any, to sign a "copyright disclaimer" for the program, if
-necessary.  Here is a sample; alter the names:
-
-  Yoyodyne, Inc., hereby disclaims all copyright interest in the program
-  `Gnomovision' (which makes passes at compilers) written by James Hacker.
-
-  <signature of Ty Coon>, 1 April 1989
-  Ty Coon, President of Vice
-
-This General Public License does not permit incorporating your program into
-proprietary programs.  If your program is a subroutine library, you may
-consider it more useful to permit linking proprietary applications with the
-library.  If this is what you want to do, use the GNU Library General
-Public License instead of this License.
--- a/main/fenv/DESCRIPTION	Tue Jun 18 09:36:13 2013 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,15 +0,0 @@
-Name: fenv
-Version: 0.1.0
-Date: 2008-10-10
-Author: Grzegorz Timoszuk <gtimoszuk@gmail.com>
-Maintainer: Grzegorz Timoszuk <gtimoszuk@gmail.com>
-Title: Floating point environment
-Description: On supported architectures, change the rounding mode of the
- floating point arithmetics (to nearest, up, down, to zero) or change the
- precision of the arithmetical operations (single, double, double extended).
- Experimentally test the properties of the floating point arithmetics.
-Categories: floating point environment
-Depends: octave (>= 3.0.0)
-Autoload: yes
-License: GPL version 3
-Url: http://octave.sf.net
--- a/main/fenv/INDEX	Tue Jun 18 09:36:13 2013 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,9 +0,0 @@
-fenv >> Floating point environment
-Test floating point environment
-  fetestenv
-Change floating point environment
-  fesetround
-  fesetprec
-  fe_system_dependent
-  system_dependent
-	
--- a/main/fenv/Makefile	Tue Jun 18 09:36:13 2013 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,75 +0,0 @@
-## Generic Makefile to allow the octave-forge packages to be build and 
-## installed using "configure; make all; make install". This Makefile
-## includes the capability to install to a temporary location, and install
-## an on_uninstall.m file that prevents the user removing this package
-## with Octave's package manager. This is useful for for the distribution's
-## various package managers and is forced by defining DESTDIR and DISTPKG.
-
-PKGDIR := $(shell pwd | sed -e 's|^.*/||')
-TMPDIR ?= /tmp
-PACKAGE ?= $(TMPDIR)/$(PKGDIR).tar.gz
-PKG := $(shell echo $(PKGDIR) | sed -e 's|^\(.*\)-.*|\1|')
-
-all: build package
-
-build:
-	@if [ -e src/Makefile ]; then \
-	   $(MAKE) -C src all; \
-	fi
-
-package: build
-	@if [ -e src/Makefile ]; then \
-	  mv src/Makefile src/Makefile.disable; \
-	fi; \
-	if [ -e src/configure ]; then \
-	  mv src/configure src/configure.disable; \
-	fi; \
-	cd ..; tar -czf $(PACKAGE) $(PKGDIR); \
-
-install:
-	@cd ../; \
-	if [ "X${DISTPKG}X" != "XX" ]; then \
-	  stripcmd="unlink(pkg('local_list'));unlink(pkg('global_list'));"; \
-	fi; \
-	if [ "X$(DESTDIR)X" = "XX" ]; then \
-	  pkgdir=`octave -H -q --no-site-file --eval "warning('off','all');pkg('install','$(PACKAGE)');l=pkg('list');disp(l{cellfun(@(x)strcmp(x.name,'$(PKG)'),l)}.dir);$$stripcmd;"`; \
-	else \
-	  shareprefix=$(DESTDIR)/`octave -H -q --no-site-file --eval "disp(fullfile(OCTAVE_HOME(),'share','octave'));"`; \
-	  libexecprefix=$(DESTDIR)/`octave -H -q --no-site-file --eval "disp(fullfile(octave_config_info('libexecdir'),'octave'));"`; \
-	  octprefix=$$shareprefix/packages; \
-	  archprefix=$$libexecprefix/packages; \
-	  if [ ! -e $$octprefix ]; then \
-	    mkdir -p $$octprefix; \
-	  fi; \
-	  if [ ! -e $$archprefix ]; then \
-	    mkdir -p $$archprefix; \
-	  fi; \
-	  octave -H -q --no-site-file --eval "warning('off','all');pkg('prefix','$$octprefix','$$archprefix');pkg('global_list',fullfile('$$shareprefix','octave_packages'));pkg('local_list',fullfile('$$shareprefix','octave_packages'));pkg('install','-nodeps','-verbose','$(PACKAGE)');"; \
-	  pkgdir=`octave -H -q --no-site-file --eval "warning('off','all');pkg('prefix','$$octprefix','$$archprefix');pkg('global_list',fullfile('$$shareprefix','octave_packages'));pkg('local_list',fullfile('$$shareprefix','octave_packages'));l=pkg('list');disp(l{cellfun(@(x)strcmp(x.name,'$(PKG)'),l)}.dir);$$stripcmd;"`; \
-	fi; \
-	if [ "X${DISTPKG}X" != "XX" ]; then \
-	  if [ -e $$pkgdir/packinfo/on_uninstall.m ]; then \
-	    mv $$pkgdir/packinfo/on_uninstall.m \
-	       $$pkgdir/packinfo/on_uninstall.m.orig; \
-	  fi; \
-	  echo "function on_uninstall (desc)" > $$pkgdir/packinfo/on_uninstall.m; \
-	  echo "  error ('Can not uninstall %s installed by the $(DISTPKG) package manager', desc.name);" >> $$pkgdir/packinfo/on_uninstall.m; \
-	  echo "endfunction" >> $$pkgdir/packinfo/on_uninstall.m; \
-	  echo "#! /bin/sh -f" > $$pkgdir/packinfo/dist_admin; \
-	  echo "if [ \"\$$1\" == \"install\" ]; then" >> $$pkgdir/packinfo/dist_admin; \
-	  echo "  octave -H -q --no-site-file --eval \"pkg('rebuild');\"" >> $$pkgdir/packinfo/dist_admin; \
-	  echo "else"  >> $$pkgdir/packinfo/dist_admin; \
-	  echo "  pkgdir=\`octave -H -q --no-site-file --eval \"pkg('rebuild');l=pkg('list');disp(l{cellfun(@(x)strcmp(x.name,'$(PKG)'),l)}.dir);\"\`" >> $$pkgdir/packinfo/dist_admin; \
-	  echo "  rm \$$pkgdir/packinfo/on_uninstall.m" >> $$pkgdir/packinfo/dist_admin; \
-	  echo "  if [ -e \$$pkgdir/packinfo/on_uninstall.m.orig ]; then" >> $$pkgdir/packinfo/dist_admin; \
-	  echo "    mv \$$pkgdir/packinfo/on_uninstall.m.orig \$$pkgdir/packinfo/on_uninstall.m" >> $$pkgdir/packinfo/dist_admin; \
-	  echo "    cd \$$pkgdir/packinfo" >> $$pkgdir/packinfo/dist_admin; \
-	  echo "    octave -q -H --no-site-file --eval \"l=pkg('list');on_uninstall(l{cellfun(@(x)strcmp(x.name,'$(PKG)'),l)});\"" >> $$pkgdir/packinfo/dist_admin; \
-	  echo "  fi"  >> $$pkgdir/packinfo/dist_admin; \
-	  echo "fi"  >> $$pkgdir/packinfo/dist_admin; \
-	  chmod a+x $$pkgdir/packinfo/dist_admin; \
-	fi;
-
-clean:
-	rm $(PACKAGE)
-	$(MAKE) -C src clean
--- a/main/fenv/PKG_ADD	Tue Jun 18 09:36:13 2013 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,1 +0,0 @@
-autoload ("fe_system_dependent", fullfile (fileparts (mfilename ("fullpath")), "fe_system_dependent.oct"));
--- a/main/fenv/configure	Tue Jun 18 09:36:13 2013 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,7 +0,0 @@
-#! /bin/sh -f
-
-if [ -e src/configure ]; then
-  cd src
-  ./configure $*
-fi
-
--- a/main/fenv/pre_install.m	Tue Jun 18 09:36:13 2013 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,26 +0,0 @@
-function pre_install(desc)
-# Sets FENV_OPTS variable for the Makefile
-# If the system is detected as an x86/x86_64 machine, we define a flag which
-# is later used when compiling system_dependent.cc
-
-systemtype = computer();
-
-# Presently, we support either x86_64...
-supported = ~isempty(findstr('x86_64', systemtype));
-
-# or x86...
-# 	(Actually we only support i486DX and above, 
-# 	but in many cases the default compiler settings are for i386.
-# 	We also do believe older machines are already either dead 
-#	or at the museum.)
-supported |= strcmp("i86", systemtype([1,3,4]));
-
-file = fopen('src/configure.in','wt');
-fprintf(file,'FENV_OPTS = ');
-if (supported)
-	fprintf(file,'-DX86_PROCESSOR');
-end
-fprintf(file,'\n');
-fclose(file);
-
-endfunction
--- a/main/fenv/src/Makefile	Tue Jun 18 09:36:13 2013 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,18 +0,0 @@
-include configure.in 	# This file is automatically generated by 
-			# ../pre_install.m and sets FENV_OPTS
-			
-OCT = fe_system_dependent.oct
-SRC := $(OCT:.oct=.cc)
-
-all: $(OCT)
-fe_system_dependent: $(OCT)
-
-%.oct: %.cc configure.in Makefile
-	mkoctfile -s $< $(FENV_OPTS)
-
-
-clean:
-	rm -f *.oct *.o configure.in
-
-.PHONY: all clean
-
--- a/main/fenv/src/fe_system_dependent.cc	Tue Jun 18 09:36:13 2013 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,137 +0,0 @@
-/*
-## Copyright (C) 2008 Grzegorz Timoszuk <gtimoszuk@gmail.com>
-##
-## This program is free software; you can redistribute it and/or modify
-## it under the terms of the GNU General Public License as published by
-## the Free Software Foundation; either version 3 of the License, or
-## (at your option) any later version.
-##
-## This program 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 General Public License for more details.
-##
-## You should have received a copy of the GNU General Public License
-## along with this program; if not, see <http://www.gnu.org/licenses/>.
-##
-*/
-
-/* 
-## Author: Grzegorz Timoszuk <gtimoszuk@gmail.com>
-##
-
-## TODO: use .configure or other Octaveforge package installation procedure to determine the architecture and make system-dependent compilation of the source code, so that only x86 and x86_64 systems would compile the assembly code
-
-## Revision history: 
-##
-##	2008-10-21, Piotr Krzyzanowski <piotr.krzyzanowski@mimuw.edu.pl>
-##		Compile show_flags() code only if X86_PROCESSOR is defined
-##	2008-10-10, Piotr Krzyzanowski <piotr.krzyzanowski@mimuw.edu.pl>
-##		Code cleanup. Improvements to change_prec() function 
-##		(removal of previous side-effects dependence). 
-## 		Octave wrappers fenvset{prec,round} to 
-##		system_dependent().
-##		change_prec() now returns its exit code to system_dependent(),
-## 		which passes it by as its return value 
-##	2008-10-09, Grzegorz Timoszuk <gtimoszuk@gmail.com>
-##		Initial release
-##
-
-*/
-
-#include <octave/oct.h>
-#include <stdio.h>
-#include <string>
-#include <fenv.h>
-#include <math.h>
-
-using namespace std;
-
-#define FP87_SINGLE_PREC 	0x0000 /* single precision x87 FPU */
-#define FP87_DOUBLE_PREC 	0x0200 /* double precision x87 FPU */
-#define FP87_DOUBLEEXT_PREC 	0x0300 /* double extended precision x87 FPU */
-
-#define FP87_PREC_MASK	 	0xFCFF /* x87 FPU control word bits: 8 and 9 */
-
-//reads and prints out x86/x86_64 CPU control words for x87 and SSE
-//good for debugging
-void show_flags() {
-#ifdef X86_PROCESSOR
-    unsigned short cw;
-    unsigned int cww;
-    //x87 control word
-    asm volatile ("fstcw %0" : : "m" (cw));
-    fprintf(stderr, "x87 FPU: %#06x \n", cw);
-    //SSE control world
-    asm volatile ("stmxcsr %0" : : "m" (cww));
-    fprintf(stderr, "MXCSR: %#010x \n", cww);
-#endif
-}
-
-
-//Change the rounding mode; returns zero if successful
-int change_rounding(int rounding) {
-#pragma STDC FENV_ACCESS ON
-    return(fesetround(rounding));
-#pragma STDC FENV_ACCESS OFF
-}
-
-//Changing x86/x86_64 CPU precision for x87
-//Note: changing SSE precision is impossible
-int change_prec(short prec) {
-#ifdef X86_PROCESSOR
-	short cw;
-	asm volatile ("fstcw %0" : : "m" (cw));
-	cw &= FP87_PREC_MASK;
-	cw |= prec;
-	// show_flags();
-	asm volatile ("fldcw %0" : : "m" (cw) );
-	// show_flags();
-	return(0);
-#else
-	return(-1);
-#endif
-}
-
-
-DEFUN_DLD (fe_system_dependent, args, nargout, "Function usage\n fe_system_dependent ((\"rounding\" (\"zero\"|\"up\"|\"down\"|\"normal\")+)|(\"precision\" (\"single\"|\"double\"|\"double ext\")+)+\n")
-{
-    //main function making simple parsing of argument and 
-    //calling functions that change  rounding method or precision
-    octave_value_list retval;
-    int args_count = args.length();
-    int err = -1; //error code; err == 0 if successful
-
-    if (args_count != 2) {
-	print_usage();
-    } else {
-	if (args(0).string_value().compare("rounding") == 0) {
-	    if (args(1).string_value().compare("zero") == 0) {
-		err = change_rounding(FE_TOWARDZERO);
-	    } else if (args(1).string_value().compare("up") == 0) {
-		err = change_rounding(FE_UPWARD);
-	    } else if (args(1).string_value().compare("down") == 0) {
-		err = change_rounding(FE_DOWNWARD);
-	    } else if (args(1).string_value().compare("normal") == 0) {
-		err = change_rounding(FE_TONEAREST);
-	    } else {
-		print_usage();
-	    }
-	} else if (args(0).string_value().compare("precision") == 0) {
-	    if (args(1).string_value().compare("single") == 0) {
-		err = change_prec(FP87_SINGLE_PREC);
-	    } else if (args(1).string_value().compare("double") == 0) {
-		err = change_prec(FP87_DOUBLE_PREC);
-	    } else if (args(1).string_value().compare("double ext") == 0) {
-		err = change_prec(FP87_DOUBLEEXT_PREC);
-	    } else {
-		print_usage();
-	    }
-	} else {
-	    print_usage();
-	}
-    }
-    retval(0) = err;
-    return retval;
-}
-
--- a/main/fenv/src/fesetprec.m	Tue Jun 18 09:36:13 2013 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,133 +0,0 @@
-## Copyright (C) 2008 Piotr Krzyzanowski <piotr.krzyzanowski@mimuw.edu.pl>
-##
-## This program is free software; you can redistribute it and/or modify
-## it under the terms of the GNU General Public License as published by
-## the Free Software Foundation; either version 3 of the License, or
-## (at your option) any later version.
-##
-## This program 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 General Public License for more details.
-##
-## You should have received a copy of the GNU General Public License
-## along with this program; if not, see <http://www.gnu.org/licenses/>.
-##
-
-## -*- texinfo -*-
-## @deftypefn {Function File} {} fesetprec (@var{mode})
-## Change the precision of the floating point arithmetics. At present, @code{fesetprec} may work @strong{only} on systems with x86 or x86_64 processors. 
-##
-## Possible values of @var{mode} are 
-## @table @samp
-## @item 1 
-## @itemx 24
-## Sets the x87 FPU precision mode to single precision (24-bit significand)
-## @item 2 
-## @itemx 53
-## Sets the x87 FPU precision mode to double precision (53-bit significand)
-## @item 3 
-## @itemx 64
-## Sets the x87 FPU precision mode to double extended precision (64-bit significand)
-## @end table
-## 
-## When successful, @code{fesetprec} returns 0. It is always recommended to verify the result experimentally by calling the function @code{fetestenv}, which tests the rounding mode and the precision of the floating point arithmetics. 
-##
-## Modern processors, including x86 and x86_64 architectures, support changing certain properties of their floating point arithmetics. Here, we focus @strong{exclusively} on x86 and x86_64.
-## These processors presently feature two types of floating point processing units: the older x87 FPU and the newer SSE unit. Only x87 FPU allows changing the precision, so @code{fesetprec} applies only to those instructions which are executed by x87 FPU. @code{fesetprec} changes the precision of the four basic arithmetic operations and of the square root on x87 FPU. 
-## 
-## Since floating point operations on x86 or x86_64 may be executed either by x87 FPU or SSE units, @code{fesetprec} may affect all, some, or no Octave's operations. The rule of the thumb, however, is that 64-bit systems usually do their floating point on SSE by default, when 32-bit systems use x87 FPU. You can always check how your system reacts to changes made by @code{fesetprec} by verifying them with @code{fetestenv}.
-## 
-## It is important to know that all expressions and their intermediate results processed by Octave's interpreter are cast to temporary @code{double} variables and thus it is impossible to execute an interpreted expression in double extended precision. On the other hand, those libraries called by Octave which rely on x87 FPU will usually perform the computations using x87 FPU 80-bit registers, i.e. in double extended precision. This may lead to some subtle differences in how the precision mode affects the computations. Let's take a look at the simplest example:
-## 
-## @example
-## macheps = builtin('eps');
-## fesetprec(3);
-## x = [1, macheps/2, -1]*[1;1;1];
-## y = 1 + macheps/2 - 1;
-## @end example 
-## 
-## The built-in function @code{eps} returns the machine epsilon in @emph{double precision}. Mathematically the expressions for @code{x} and @code{y} are equivalent, but in reality they may be not. The expression for @code{x} will call a BLAS subroutine and on a 32-bit system it will most likely be executed on x87 FPU using 64-bit double extended precision - so @code{x} will be greater than zero. On the other hand, the expression for @code{y} will be executed through the interpreter and these calculations will store all intermediate results in double precision, so that @code{y} will be equal to zero. In contrast to 32-bit systems, many 64-bit systems will do all floating point on SSE - and thus both @code{x} and @code{y} will then be equal to zero.
-##
-## It is also known that some numerical libraries set their own precision modes or execute floating point operations on different units (say, they may use only the SSE unit when Octave uses exclusively the x87 FPU...). Therefore calls to such numerical libraries may also cancel changes made previously by @code{fesetprec}:
-##
-## @example
-## fesetprec(1); fesetround(0); fetestenv
-## @print{} Machine epsilon: 1.19209e-07
-## @print{} Rounding mode:   0
-## hilb(2)\ones(2,1); fetestenv
-## @print{} Machine epsilon: 2.22045e-16
-## @print{} Rounding mode:   0.5
-## @end example
-##
-## (the above test has been run on an x86 32-bit system using Octave 3.0.2 package provided along with the Fedora 9 Linux distribution).
-##
-## Changes issued by @code{fesetprec} @strong{are} reflected by Octave's function @code{eps}: calling @code{fesetprec} replaces the built-in function @code{eps} with a dispatch @code{fetestenv}. In order to perform a more detailed check of actual parameters of the floating point arithmetics, use @code{fetestenv} directly.
-## 
-## A possible application of @code{fesetprec}, following the idea by W. Kahan, is an experimental (in)stability analysis. Running some code with various settings of the floating point arithmetics may reveal some instability of the numerical algorithm being used in the code or reveal possible ill conditioning of the very problem being solved.
-## 
-## Literature
-## 
-## @enumerate 
-## @item W. Kahan, "How Futile are Mindless Assessments of Roundoff in Floating-Point Computation?", available on the Web: @indicateurl{http://www.cs.berkeley.edu/~wkahan/Mindless.pdf}.
-## @item W. Kahan, "Why I can Debug some Numerical Programs You can't", available on the Web: @indicateurl{http://www.cs.berkeley.edu/~wkahan/Stnfrd50.pdf}.
-## @item Intel 64 and IA-32 Architectures Software Developer's Manual, Volume 1: Basic Architecture, May 2007.
-## @end enumerate
-## @seealso{fetestenv, fesetround, system_dependent, eps, fe_system_dependent}
-## @end deftypefn
-
-## Author: Piotr Krzyzanowski <piotr.krzyzanowski@mimuw.edu.pl>
-##
-
-## Revision history: 
-##
-##	2008-10-10, Piotr Krzyzanowski <piotr.krzyzanowski@mimuw.edu.pl>
-##		Initial release
-##
-
-function err = fesetprec(mode)
-if (nargin ~= 1)
-	print_usage();
-end
-
-systemtype = computer();
-
-# Presently, we support either x86_64...
-supported = ~isempty(findstr('x86_64', systemtype));
-
-# ...or x86
-# 	(Actually we only support i486 and above, 
-# 	but in many cases the default compiler settings are for i386.
-# 	We also do believe i286 and older are dead or at the museum.)
-supported |= strcmp("i86", systemtype([1,3,4]));
-
-err = -2;
-if (supported && exist('system_dependent'))
-	switch mode
-	case {1, 24}
-		err = fe_system_dependent('precision','single');
-	case {2, 53}
-		err = fe_system_dependent('precision','double');
-	case {3, 64}
-		err = fe_system_dependent('precision','double ext');
-	otherwise
-		warning('Cannot set the precision mode to %g', mode);
-		usage('fesetprec (MODE), with MODE in {1, 2, 3}');
-	end
-	if (err == 0)
-		% replace original eps function with fetestenv
-		dispatch('eps', 'any'); % restore the built-in version
-		dispatch('eps', 'fetestenv', 'any'); % obscure by fetestenv
-	else 
-		warning('Problems setting precision mode %g.', mode);
-		warning('Use fetestenv() to verify.');
-	end
-else
-	warning('This system is not supported by fesetprec');
-end
-end
-%!demo
-%!  fesetprec(1);
-%!  fetestenv();
-%!  fesetprec(3);
-%!  fetestenv();
--- a/main/fenv/src/fesetround.m	Tue Jun 18 09:36:13 2013 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,119 +0,0 @@
-## Copyright (C) 2008 Piotr Krzyzanowski <piotr.krzyzanowski@mimuw.edu.pl>
-##
-## This program is free software; you can redistribute it and/or modify
-## it under the terms of the GNU General Public License as published by
-## the Free Software Foundation; either version 3 of the License, or
-## (at your option) any later version.
-##
-## This program 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 General Public License for more details.
-##
-## You should have received a copy of the GNU General Public License
-## along with this program; if not, see <http://www.gnu.org/licenses/>.
-##
-
-## -*- texinfo -*-
-## @deftypefn {Function File} {} fesetround (@var{mode})
-## Change the rounding mode of the floating point arithmetics. 
-## 
-## Following the IEEE-754 standard recommendation, modern processors, including x86 and x86_64 architectures, support changing the rounding direction of the floating point arithmetics. 
-## 
-## Possible values of @var{mode} are 
-## @table @samp
-## @item 0
-## Sets the rounding mode to @samp{towards zero}, i.e. @samp{truncate}
-## @item 0.5
-## Sets the rounding mode to @samp{nearest} (the standard mode)
-## @item Inf
-## Sets the rounding mode to @samp{up}, i.e. @samp{towards +infinity}
-## @item -Inf
-## Sets the rounding mode to @samp{down}, i.e. @samp{towards -infinity}
-## @end table
-## 
-## When successful, @code{fesetround} returns 0. It is always recommended to verify the result experimentally by calling the function @code{fetestenv}, which tests the rounding mode and the precision of the floating point arithmetics. 
-##
-## It is known that some numerical libraries may set their own rounding modes. Therefore @code{fesetround} may affect operations performed by numerical libraries called by Octave in a different way than it does the interpreted code. Calls to such numerical libraries may also cancel changes previously made by @code{fesetround}:
-##
-## @example
-## fesetprec(1); fesetround(0); fetestenv
-## @print{} Machine epsilon: 1.19209e-07
-## @print{} Rounding mode:   0
-## hilb(2)\ones(2,1); fetestenv
-## @print{} Machine epsilon: 2.22045e-16
-## @print{} Rounding mode:   0.5
-## @end example
-##
-## (the above test has been run on an x86 32-bit system using Octave 3.0.2 package provided along with the Fedora 9 Linux distribution).
-##
-## A possible application of this function, following the idea by W. Kahan, is an experimental (in)stability analysis. Running some code with various settings of the floating point arithmetics may reveal some instability of the numerical algorithm being used in the code or reveal possible ill conditioning of the very problem being solved.
-##
-## Literature
-## 
-## @enumerate 
-## @item W. Kahan, "How Futile are Mindless Assessments of Roundoff in Floating-Point Computation?", available on the Web: @indicateurl{http://www.cs.berkeley.edu/~wkahan/Mindless.pdf}.
-## @item W. Kahan, "Why I can Debug some Numerical Programs You can't", available on the Web: @indicateurl{http://www.cs.berkeley.edu/~wkahan/Stnfrd50.pdf}.
-## @item Intel 64 and IA-32 Architectures Software Developer's Manual, Volume 1: Basic Architecture, May 2007.
-## @end enumerate
-## @seealso{fetestenv, fesetprec, system_dependent, fe_system_dependent}
-## @end deftypefn
-
-## Author: Piotr Krzyzanowski <piotr.krzyzanowski@mimuw.edu.pl>
-##
-
-## Revision history: 
-##
-##	2008-10-10, Piotr Krzyzanowski <piotr.krzyzanowski@mimuw.edu.pl>
-##		Initial release
-##
-
-function err = fesetround(mode)
-if (nargin ~= 1)
-	print_usage();
-end
-err = -1;
-supported = 1;
-if supported && exist('system_dependent')
-	switch mode
-	case 0
-		err = fe_system_dependent('rounding','zero');
-	case 0.5
-		err = fe_system_dependent('rounding','normal');
-	case Inf
-		err = fe_system_dependent('rounding','up');
-	case -Inf
-		err = fe_system_dependent('rounding','down');
-	otherwise
-		warning('Cannot set the rounding mode to %g', mode);
-		usage('fesetround (MODE), with MODE in {0, 0.5, Inf, -Inf}');
-
-	end
-	if (err ~=0) 
-		warning('Problems setting rounding mode %g.', mode);
-		warning('Use fetestenv() to verify.');
-	end
-else
-	warning('This system is not supported by fesetround');
-end
-end
-%!demo
-%!  fesetround(+Inf);
-%!  test = (1 + realmin > 1)
-%!  fesetround(0.5);
-%!demo
-%!  fesetround(0.5);
-%!  test = (1 + realmin > 1)
-%!  fesetround(0.5);
-%!test 
-%!  fesetround(+Inf);
-%!  assert(1 + realmin > 1, true);
-%!  fesetround(0.5);
-%!test 
-%!  fesetround(0.5);
-%!  assert(1 + realmin > 1, false); 
-%!test 
-%!  fesetround(0);
-%!  assert(1 + realmin > 1, false); 
-%!  assert(-1 + realmin > -1, true); 
-%!  fesetround(0.5);
--- a/main/fenv/src/fetestenv.m	Tue Jun 18 09:36:13 2013 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,159 +0,0 @@
-## Copyright (C) 2008 Piotr Krzyzanowski <piotr.krzyzanowski@mimuw.edu.pl>
-##
-## This program is free software; you can redistribute it and/or modify
-## it under the terms of the GNU General Public License as published by
-## the Free Software Foundation; either version 3 of the License, or
-## (at your option) any later version.
-##
-## This program 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 General Public License for more details.
-##
-## You should have received a copy of the GNU General Public License
-## along with this program; if not, see <http://www.gnu.org/licenses/>.
-##
-
-## -*- texinfo -*-
-## @deftypefn {Function File} {} [@var{macheps}, @var{round}, @var{machepsb}, @var{roundb}] = fetestenv ()
-## Check some properties of floating point arithmetics: 
-## the rounding mode and the machine epsilon, as seen by
-## Octave's interpreted code (@var{round} and @var{macheps}, respectively) and, if requested, as seen by BLAS (@var{roundb} and @var{machepsb}, respectively). 
-##
-## The function performs a variant of the standard 
-## @display
-## 1 + @var{macheps} ~= 1
-## @end display
-## test in order to check the actual machine epsilon @var{macheps} 
-## and the present rounding mode @var{round} used in all interpreted 
-## expressions in Octave.
-##
-## As Octave interpreted code cannot achieve more than double precision,
-## and some BLAS implementations may impose their internal precision and rounding modes,
-## the user may request to check the actual rounding and precision used in BLAS calls.
-## To this end, we perform a machine epsilon/rounding mode check of the form 
-## @display
-## [1, @var{machepsb}, -1]*[1; 1; 1] ~= 0.
-## @end display
-## This Octave code results in a call to a BLAS routine, which in turn may use different floating point arithmetic settings than
-## available to Octave. 
-## Rounding mode and machine epsilon (both as seen by BLAS) are returned 
-## in @var{roundb} and @var{machepsb}, respectively.
-##
-## See the manual pages of @command{fesetprec} for more details and subtleties.
-##
-## Note that the results of this test may or may not apply to library functions called by Octave. The simplest way to verify if the function you use in Octave is affected by the change of the rounding mode or the precision, is to run your function on the same data with different settings. Small differences between various modes indicate these modes do affect the behaviour of your function. No differences mean they probably do not apply. Big differences most likely indicate either an instability of your function or ill conditioning of your problem.
-##
-##
-## @seealso{fesetround, fesetprec, system_dependent, eps, fe_system_dependent}
-## @end deftypefn
-
-## Author: Piotr Krzyzanowski <piotr.krzyzanowski@mimuw.edu.pl>
-##
-
-## Revision history: 
-##
-##	2008-10-10, Piotr Krzyzanowski <piotr.krzyzanowski@mimuw.edu.pl>
-##		Initial release
-##
-
-function [macheps, round, machepsb, roundb] = fetestenv()
-if (nargin != 0)
-	warning ("Ignoring extra arguments");
-end
-
-# first run the standard "1 + eps == 1" test, modified to accommodate 
-# various rounding modes
-x 	= [  1,  1, -1, -1];
-xeps 	= [  1, -1,  1, -1];
-do 
-	xeps = xeps ./ 2;
-	stop = [(x + xeps > x)([1,3]), (x + xeps < x)([2,4])];
-until ( ~prod(stop) )
-
-# machine eps is thus a twice as big number
-macheps = xeps(1)*2;
-
-# use an even smaller number to reveal rounding direction
-xeps = xeps ./ 2;
-stop = [(x + xeps > x)([1,3]), (x + xeps < x)([2,4])];
-
-round = sense_round(stop);
-
-if(nargout != 2)
-# Check macheps and rounding as in BLAS' routine
-# (Inspired by some discussion on the Octave's mailing list)
-
-	x 	= [  1,  1, -1, -1];
-	xeps 	= [  1, -1,  1, -1];
-	do 
-		xeps = xeps ./ 2;
-		stop = [([1,1,1]*[x; xeps; -x]>0)([1,3]), ...
-			([1,1,1]*[x; xeps; -x]<0)([2,4])];
-	until ( ~prod(stop) )
-
-	# machine eps is thus a twice as big number
-	machepsb = xeps(1)*2;
-
-	# use an even smaller number to reveal rounding direction
-	xeps = xeps ./ 2;
-	stop = [([1,1,1]*[x; xeps; -x]>0)([1,3]), ...
-		([1,1,1]*[x; xeps; -x]<0)([2,4])];
-
-	roundb = sense_round(stop);
-end
-
-if(nargout == 0)
-	printf('Interpreter:\n');
-	printf('\tMachine epsilon: %g\n', macheps);	
-	printf('\tRounding mode:   %g\n', round);	
-	printf('BLAS:\n');
-	printf('\tMachine epsilon: %g\n', machepsb);	
-	printf('\tRounding mode:   %g\n', roundb);	
-end
-
-endfunction
-
-function rnd = sense_round(stop)
-# tries to sniff the rounding mode from the sign checks 
-# of the "1+meps-1" type expressions provided in 'stop' argument
-switch stop
-case [0, 0, 0, 0]
-	# all additions/subtractions collapsed to +1 or -1; we are in the
-	# round-to-nearest mode
-	rnd = 0.5;
-case [1, 1, 0, 0]
-	# round-up mode
-	rnd = +Inf;
-case [0, 0, 1, 1]
-	# round-down mode
-	rnd = -Inf;
-case [0, 1, 1, 0]
-	# round-to-zero mode
-	rnd = 0;
-otherwise
-	# am I dreaming?
-	rnd = NaN;
-	error('Unknown rounding mode detected.');
-end
-endfunction
-%!demo
-%!  fesetround(+Inf); fesetprec(1);
-%!  fetestenv();
-%!  fesetround(0.5); fesetprec(3);
-%!demo
-%!  fesetround(0); fesetprec(3);
-%!  fetestenv();
-%!  fesetround(0.5); fesetprec(3);
-%!test 
-%!  if( fesetround(+Inf) == 0) 
-%!    [eps, round] = fetestenv();
-%!    assert(round, Inf);
-%!    fesetround(0.5);
-%!  endif
-%!test 
-%!  if( fesetround(0) == 0) 
-%!    [eps, round] = fetestenv();
-%!    assert(round, 0);
-%!    fesetround(0.5);
-%!  endif
--- a/main/fenv/src/system_dependent.m	Tue Jun 18 09:36:13 2013 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,35 +0,0 @@
-## Copyright (C) 2008 Grzegorz Timoszuk <gtimoszuk@gmail.com>
-##
-## This program is free software; you can redistribute it and/or modify
-## it under the terms of the GNU General Public License as published by
-## the Free Software Foundation; either version 3 of the License, or
-## (at your option) any later version.
-##
-## This program 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 General Public License for more details.
-##
-## You should have received a copy of the GNU General Public License
-## along with this program; if not, see <http://www.gnu.org/licenses/>.
-##
-
-## -*- texinfo -*-
-## @deftypefn {Function File} {} @var{err} = system_dependent (@var{property}, @var{value})
-## This function is intentionally left undocumented. 
-## @end deftypefn
-
-function err = system_dependent(property, value)
-err = -1;
-switch property
-# the interface for "setround" and "setprecision" follows 
-# the examples from W.Kahan's article
-# http://www.cs.berkeley.edu/~wkahan/Mindless.pdf
-case "setround"
-	err = fesetround(value);
-case "setprecision"
-	err = fesetprec(value);
-otherwise
-	err = -1;
-endswitch
-endfunction