Skip to content

Commit

Permalink
New NO_INLINE_ASM macro. Primary target for the moment is Solaris x86
Browse files Browse the repository at this point in the history
which can't stand GNU C assembler templates.
  • Loading branch information
Andy Polyakov committed Feb 15, 2000
1 parent de469ef commit 89cee61
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion crypto/bn/bn_div.c
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ int BN_div(BIGNUM *dv, BIGNUM *rem, const BIGNUM *m, const BIGNUM *d,

#else

#if !defined(NO_ASM) && !defined(PEDANTIC) && !defined(BN_DIV3W)
#if !defined(NO_ASM) && !defined(NO_INLINE_ASM) && !defined(PEDANTIC) && !defined(BN_DIV3W)
# if defined(__GNUC__) && __GNUC__>=2
# if defined(__i386)
/*
Expand Down
2 changes: 1 addition & 1 deletion crypto/bn/bn_lcl.h
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ extern "C" {
#endif
#endif

#if !defined(NO_ASM) && !defined(PEDANTIC)
#if !defined(NO_ASM) && !defined(NO_INLINE_ASM) && !defined(PEDANTIC)
/*
* BN_UMULT_HIGH section.
*
Expand Down
4 changes: 2 additions & 2 deletions crypto/md32_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@
# else
# define ROTATE(a,n) __rol(a,n)
# endif
# elif defined(__GNUC__) && __GNUC__>=2 && !defined(NO_ASM)
# elif defined(__GNUC__) && __GNUC__>=2 && !defined(NO_ASM) && !defined(NO_INLINE_ASM)
/*
* Some GNU C inline assembler templates. Note that these are
* rotates by *constant* number of bits! But that's exactly
Expand Down Expand Up @@ -222,7 +222,7 @@
* Engage compiler specific "fetch in reverse byte order"
* intrinsic function if available.
*/
# if defined(__GNUC__) && __GNUC__>=2 && !defined(NO_ASM)
# if defined(__GNUC__) && __GNUC__>=2 && !defined(NO_ASM) && !defined(NO_INLINE_ASM)
/* some GNU C inline assembler templates by <appro@fy.chalmers.se> */
# if defined(__i386) && !defined(I386_ONLY)
# define BE_FETCH32(a) ({ register unsigned int l=(a);\
Expand Down

0 comments on commit 89cee61

Please sign in to comment.