X-Git-Url: https://git.saurik.com/apple/security.git/blobdiff_plain/80e2389990082500d76eb566d4946be3e786c3ef..d8f41ccd20de16f8ebe2ccc84d47bf1cb2b26bbb:/Security/libsecurity_cryptkit/lib/giantPortCommon.h diff --git a/Security/libsecurity_cryptkit/lib/giantPortCommon.h b/Security/libsecurity_cryptkit/lib/giantPortCommon.h new file mode 100644 index 00000000..a5d1de92 --- /dev/null +++ b/Security/libsecurity_cryptkit/lib/giantPortCommon.h @@ -0,0 +1,46 @@ +/* Copyright (c) 1998,2011,2014 Apple Inc. All Rights Reserved. + * + * NOTICE: USE OF THE MATERIALS ACCOMPANYING THIS NOTICE IS SUBJECT + * TO THE TERMS OF THE SIGNED "FAST ELLIPTIC ENCRYPTION (FEE) REFERENCE + * SOURCE CODE EVALUATION AGREEMENT" BETWEEN APPLE, INC. AND THE + * ORIGINAL LICENSEE THAT OBTAINED THESE MATERIALS FROM APPLE, + * INC. ANY USE OF THESE MATERIALS NOT PERMITTED BY SUCH AGREEMENT WILL + * EXPOSE YOU TO LIABILITY. + *************************************************************************** + + giantPortCommon.h - common header used to specify and access + platform-dependent giant digit routines. + + Revision History + ---------------- + 1 Sep 98 at Apple + Created. + +*******************************/ + +#ifndef _CRYPTKIT_GIANT_PORT_COMMON_H_ +#define _CRYPTKIT_GIANT_PORT_COMMON_H_ + +#if defined(__i386__) && defined(__GNUC__) +/* Mac OS X, Intel, Gnu compiler */ +/* This module doesn't compile yet, punt and use the + * inline C functions */ +#include "giantPort_Generic.h" + +#elif defined(__ppc__) && defined(__MACH__) +/* Mac OS X, PPC, Gnu compiler */ +#include "giantPort_PPC_Gnu.h" + +#elif defined(__ppc__ ) && defined(macintosh) + +/* Mac OS 9, PPC, Metrowerks */ +#include "giantPort_PPC.h" + +#else + +/* Others */ +#include "giantPort_Generic.h" + +#endif + +#endif /* _CRYPTKIT_GIANT_PORT_COMMON_H_ */