Date: Mon, 18 Jan 1999 22:48:45 -0800 (PST) From: Hidetoshi Shimokawa <simokawa@FreeBSD.ORG> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG Subject: cvs commit: src/usr.bin/f2c f2c.h Message-ID: <199901190648.WAA01516@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
simokawa 1999/01/18 22:48:44 PST Modified files: usr.bin/f2c f2c.h Log: Replace 'long int' with 'int' for Alpha. This change should have no effect on i386. Pointed out by: Steve Kargl <sgk@troutmask.apl.washington.edu> Quote from http://www.netlib.org/f2c/readme: NOTE: f2c.h defines several types, e.g., real, integer, doublereal. The definitions in f2c.h are suitable for most machines, but if your machine has sizeof(double) > 2*sizeof(long), you may need to adjust f2c.h appropriately. f2c assumes sizeof(doublecomplex) = 2*sizeof(doublereal) sizeof(doublereal) = sizeof(complex) sizeof(doublereal) = 2*sizeof(real) sizeof(real) = sizeof(integer) sizeof(real) = sizeof(logical) sizeof(real) = 2*sizeof(shortint) EQUIVALENCEs may not be translated correctly if these assumptions are violated. On machines, such as those using a DEC Alpha processor, on which sizeof(short) == 2, sizeof(int) == sizeof(float) == 4, and sizeof(long) == sizeof(double) == 8, it suffices to modify f2c.h by removing the first occurrence of "long " on each line containing "long ", e.g., by issuing the commands mv f2c.h f2c.h0 sed 's/long //' f2c.h0 >f2c.h On such machines, one can enable INTEGER*8 by uncommenting the typedef of longint in f2c.h, so it reads typedef long longint; by compiling libI77 with -DAllow_TYQUAD, and by adjusting libF77/makefile as described in libF77/README. Revision Changes Path 1.4 +6 -6 src/usr.bin/f2c/f2c.h To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199901190648.WAA01516>