Import ncpfs 2.2.1

This commit is contained in:
ncpfs archive import
2026-04-28 20:39:59 +02:00
parent 0979ae6a41
commit 82706139bf
547 changed files with 176953 additions and 12604 deletions

View File

@@ -26,14 +26,14 @@
* optimize for a particular environment.
*
* Define one of the following:
* UNIT8, UNIT16, or UNIT32 - specifies size of operands for
* UNITSIZE - specifies size of operands for
* multiprecision add, subtract, shift, and initialization operations.
* Define one of the following:
* MUNIT8, MUNIT16, MUNIT32 - specified size of operands for
* MULTUNITSIZE - specified size of operands for
* multiprecision multiply and mod_mult. This must be less than or
* equal to unit size. It should be the word size for the native
* atomic multiply instruction. For a 16x16 bit multiply yielding a
* 32-bit product, MUNIT16 should be set.
* 32-bit product, MULTUNITSIZE = 16 should be set.
* Define one (or more) of the following:
* PEASANT, MERRITT, UPTON, SMITH -algorithm used for modmult. All defined
* algorithms are compiled, but the first defined name listed will be
@@ -75,12 +75,16 @@
* Environment customization. Please send any additions or corrections
* to Philip Zimmermann.
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#ifndef PORTABLE
#ifdef MSDOS
#ifndef i386 /* gcc */
#define UNIT16
#define MUNIT16
#define UNITSIZE 16
#define MULTUNITSIZE 16
#define mp_setp P_SETP
#define mp_addc P_ADDC
#define mp_subb P_SUBB
@@ -94,8 +98,8 @@
#endif /* MSDOS */
#ifdef VMS
#define UNIT32 /* use 32-bit units */
#define MUNIT32 /* not used in C code, only in assembler */
#define UNITSIZE 32 /* use 32-bit units */
#define MULTUNITSIZE 32 /* not used in C code, only in assembler */
#define UPTON
#define mp_setp p_setp
#define mp_addc p_addc
@@ -127,8 +131,8 @@
/*
* Needs r3kd.s and r3000.s (or r3000.c)
*/
#define UNIT32
#define MUNIT32
#define UNITSIZE 32
#define MULTUNITSIZE 32
#define SMITH
#define mp_dmul p_dmul
#define mp_setp p_setp
@@ -145,8 +149,8 @@
/*
* Needs 80386.S
*/
#define UNIT32
#define MUNIT32
#define UNITSIZE 32
#define MULTUNITSIZE 32
#define SMITH
#define mp_setp P_SETP
#define mp_addc P_ADDC
@@ -163,7 +167,7 @@
/*
* Needs sparc.s
*/
#define UNIT32
#define UNITSIZE 32
#define MERRITT
#define mp_setp P_SETP
#define mp_addc P_ADDC
@@ -177,7 +181,7 @@
/*
* Needs mc68020.S
*/
#define UNIT32
#define UNITSIZE 32
#define mp_setp P_SETP
#define mp_addc P_ADDC
#define mp_subb P_SUBB
@@ -185,12 +189,12 @@
#define unitfill0(r,ct) memset((void*)r, 0, (ct)*sizeof(unit))
#if defined(sun3) || defined(mc68020)
# define UPTON
# define MUNIT32
# define MULTUNITSIZE 32
# define mp_smul P_SMUL
/* # define mp_dmul P_DMUL */ /* mc68020.s has a bug in P_DMUL */
#else
# define SMITH
# define MUNIT16
# define MULTUNITSIZE 16
#endif
#define PLATFORM_SPECIFIED
#endif /* mc68000 */