aboutsummaryrefslogtreecommitdiffstats
path: root/science/liggghts/files/patch-math__vector.h
blob: 4c96ce457e1a78e87df4563f2119acddc9ec330d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
--- math_vector.h.orig  2018-11-02 06:51:37 UTC
+++ math_vector.h
@@ -94,7 +94,7 @@ inline void vec_neg(vector &dest) {     
   dest[2] = -dest[2]; }
 
 inline void vec_norm(vector &dest) {                                 // a/|a|
-  register double f = sqrt(vec_dot(dest, dest));
+  double f = sqrt(vec_dot(dest, dest));
   dest[0] /= f;
   dest[1] /= f;
   dest[2] /= f; }
@@ -222,7 +222,7 @@ inline void form_subtr(shape &dest, form
   dest[3] -= src[3]; dest[4] -= src[4]; dest[5] -= src[5]; }
 
 inline int form_inv(form &m_inv, form &m) {                        // m^-1
-  register double det = form_det(m);
+  double det = form_det(m);
   if (fzero(det)) return 0;
   m_inv[0] = (m[1]*m[2]-m[3]*m[3])/det;
   m_inv[1] = (m[0]*m[2]-m[4]*m[4])/det;
@@ -377,7 +377,7 @@ inline void form4_unit(form4 &dest) {
   dest[0] = dest[1] = dest[2] = dest[3] = 1.0; }
 
 inline double form4_det(form4 &m) {
-  register double f = m[6]*m[7]-m[5]*m[8];
+  double f = m[6]*m[7]-m[5]*m[8];
   return m[0]*(
       m[1]*(m[2]*m[3]-m[4]*m[4])+
       m[5]*(2.0*m[4]*m[7]-m[2]*m[5])-m[3]*m[7]*m[7])+f*f+
@@ -387,7 +387,7 @@ inline double form4_det(form4 &m) {
         m[9]*(m[4]*m[4]-m[2]*m[3])); }
 
 inline int form4_inv(form4 &m_inv, form4 &m) {
-  register double det = form4_det(m);
+  double det = form4_det(m);
   if (fzero(det)) return 0;
   m_inv[0] = (m[1]*(m[2]*m[3]-m[4]*m[4])+
       m[5]*(2.0*m[4]*m[7]-m[2]*m[5])-m[3]*m[7]*m[7])/det;
c3ec6019cb2'>Chase libaspell to aspell.16.thierry2004-08-291-1/+1 * Update to 5.0.1 release:ale2004-08-235-24/+19 * Register extensions in etc/php/extensions.ini instead of etc/php.iniale2004-07-282-4/+2 * MFphp4: Fix compilation of wddx extension.ale2004-07-281-1/+4 * Remove the old-and-broken sybase (DB-lib) extension and point users toale2004-07-211-6/+0 * - Document DEFAULT_PHP_VER and BROKEN_WITH_PHPale2004-07-201-0/+2 * Comment extension_dir in sample php.ini's, since many copy the sampleale2004-07-201-0/+1 * Set default MySQL version to 4.1 for mysqli extension.ale2004-07-201-0/+1 * Fix oniguruma header path.ale2004-07-191-1/+1 * First step of the PHP mega-commit:ale2004-07-1921-3760/+694 * Update to final 5.0.0 release:ale2004-07-154-4/+16 * Install GD and MBSTRINGS header files for pdflib and mailparse extensions.ale2004-06-283-4/+45 * - Point phpize to use libtoolize13ale2004-06-252-0/+12 * - Update to 5.0.0RC3 releaseale2004-06-084-14/+5 * Sync with new bsd.autotools.mkade2004-06-051-1/+1 * Update ftp/curl to 7.12.0 and bump the shared library version in allroam2004-06-041-2/+2 * Replace explicit XFree86-4-libraries dependencies with USE_XLIB, USE_XPM, andanholt2004-05-301-1/+1 * Remove databases/postgresql-client because there can't be a -server, and havingmat2004-05-251-1/+1 * Introduce MASTER_SITE_PHP and add several more mirror sites worldwide.knu2004-05-241-8/+2 * - Add sysvmsg extension [1]ale2004-05-085-8/+31 * Update to 5.0.0RC2 release (stop packaging customized snapshots,ale2004-04-296-30/+20 * - Use USE_ICONV knobkrion2004-03-311-1/+1 * Forgot a patch in previous commit (support for DB 4.2).ale2004-03-291-13/+17 * Fix db 4.2 dependency.ale2004-03-291-1/+1 * Fix Xpm path.ale2004-03-231-1/+1 * Update to 5.0.0a6 snapshot:ale2004-03-197-38/+45 * Fix build with new freetype2 library.ale2004-03-192-1/+11 * o Bump $LIB_DEPENDS line to chase expat's shlib version.kuriyama2004-03-141-2/+2 * Fix PHP_PORT when PORTSDIR is a symlink.ale2004-03-141-1/+2 * Don't use a fully-qualified path in php.conf.ale2004-03-091-1/+3 * Add PostScript Type-1 font support for GD extension.ale2004-02-271-0/+2 * Say hello to the new "net-mgmt" category. There are probably morewollman2004-02-231-2/+2 * Update to the latest snapshot.ale2004-02-137-21/+34 * Use PTHREAD_LIBS only if OSVERSION >= 500016.ale2004-02-121-6/+7 * Move to httpd.h for apache2 autodetection (as in bsd.php.mk, forgot in myale2004-02-101-1/+1 * Fix PTHREAD_LIBS and adapt it to apache2 way.ale2004-02-091-2/+5 * Add USE_GETTEXT and bump PORTREVISION.marcus2004-02-041-2/+2 * - Add support for PTHREAD_{LIBS/CFLAGS} [1]ale2004-01-262-6/+10 * - Better handling of snmp dependency [1]ale2004-01-244-15/+47 * Now gettext 0.12.1 is gettext-old.trevor2004-01-241-1/+1 * Switch to my @FreeBSD.org email address.ale2004-01-182-2/+2 * Add MS-SQL support.ale2004-01-163-6/+13 * - Fix apache2 dependency (this was broken by the introductionale2004-01-141-1/+2 * Adapt php5 Makefile to support apache2-worker.nork2004-01-111-6/+11 * - Make fetchablepav2003-12-291-3/+3 * Add patch file which I forgot.nork2003-12-231-0/+10 * o Update to 5.0.0a4 snapshot.nork2003-12-237-99/+60 * PR: 59958dinoex2003-12-051-1/+1 * Add WITH_DEBUG knob and support for the new bsd.php.mk file.jeh2003-11-202-3/+34 * Chase libnetsnmp shlib major version number and bump ${PORTREVISION}.kuriyama2003-11-181-1/+2 * Use the new Apache bits from bsd.port.mk.marcus2003-11-071-4/+4 * Chase the libxslt shared lib version with a PORTREVISION bump.marcus2003-11-051-1/+1 * o Update to 5.0.0a3 snapshot.nork2003-10-306-96/+100 * BROKEN: Does not compilekris2003-10-281-0/+2 * Fix for the OpenSSL extensiondinoex2003-10-011-1/+1 * chase print/pdflib libversion upgradeedwin2003-09-271-1/+1 * [Maintainer Update] Port: lang/php5edwin2003-09-247-52/+48 * Bump the PORTREVISION for the ports directly affected by the gettext upgrade.marcus2003-08-271-1/+1 * Chase the libintl.so shared lib version.marcus2003-08-251-1/+1 * Fix non-default dependency on openldap2[012] which is broken by splitting.kuriyama2003-08-151-1/+1 * Fix typo: XML -> XSL.nork2003-07-171-1/+1 * Correct scripts/configure.php & Bump PORTREVISION.nork2003-07-172-9/+6 * Add php5 5.0.0.a1, PHP5 Scripting Language.nork2003-07-169-423/+277 * o Add default overload extension.nork2003-07-044-15/+34 * o Switch to libtool 1.4.nork2003-07-0310-514/+1633 * Add WANT_PHP_WEB knob, for ports that require a webnork2003-07-031-0/+12 * libtool uber-patchade2003-06-271-1/+1 * Improve SNMP support (fix openssl dependency and add net-snmp5 support).nork2003-06-252-2/+10 * o Add FriBiDi extension [1]nork2003-06-244-6/+153 * Add gif and animated-gif write support to GD extension.nork2003-06-232-0/+1421 * scripts/php_options is changed to php4_options. So it should be removed.nork2003-06-201-59/+0 * o Update to 4.3.3RC1.nork2003-06-205-29/+122 * Add Oracle7 support into PHP4.nork2003-06-084-10/+133 * Add bsd.php.mk, every port depending on PHP should include this filenork2003-06-071-0/+91 * Update to 4.3.2 release.nork2003-06-072-5/+11 * Prepare for new slave port: www/php4-cgi.nork2003-06-074-26/+49 * Add completely new port system for PHP4 (4.3.2RC4). Updated mod_php4nork2003-05-2310-0/+1171 * Remove lang/php4 which was integrated into www/mod_php4.dirk2003-01-291-19/+0 * Upgrade to 4.2.1.dirk2002-05-171-1/+1