Print this page
4853 illumos-gate is not lint-clean when built with openssl 1.0


 148 /* NOTE - c is not incremented as per l2c */
 149 #define l2cn(l1,l2,c,n) { \
 150                         c+=n; \
 151                         switch (n) { \
 152                         case 8: *(--(c))=(unsigned char)(((l2)>>24L)&0xff); \
 153                         case 7: *(--(c))=(unsigned char)(((l2)>>16L)&0xff); \
 154                         case 6: *(--(c))=(unsigned char)(((l2)>> 8L)&0xff); \
 155                         case 5: *(--(c))=(unsigned char)(((l2)     )&0xff); \
 156                         case 4: *(--(c))=(unsigned char)(((l1)>>24L)&0xff); \
 157                         case 3: *(--(c))=(unsigned char)(((l1)>>16L)&0xff); \
 158                         case 2: *(--(c))=(unsigned char)(((l1)>> 8L)&0xff); \
 159                         case 1: *(--(c))=(unsigned char)(((l1)     )&0xff); \
 160                                 } \
 161                         }
 162 
 163 #if (defined(OPENSSL_SYS_WIN32) && defined(_MSC_VER)) || defined(__ICC)
 164 #define ROTATE(a,n)     (_lrotr(a,n))
 165 #elif defined(__GNUC__) && __GNUC__>=2 && !defined(__STRICT_ANSI__) && !defined(OPENSSL_NO_ASM) && !defined(OPENSSL_NO_INLINE_ASM) && !defined(PEDANTIC)
 166 # if defined(__i386) || defined(__i386__) || defined(__x86_64) || defined(__x86_64__)
 167 #  define ROTATE(a,n)   ({ register unsigned int ret;   \
 168                                 asm ("rorl %1,%0"       \
 169                                         : "=r"(ret)     \
 170                                         : "I"(n),"0"(a) \
 171                                         : "cc");        \
 172                            ret;                         \
 173                         })
 174 # endif
 175 #endif
 176 #ifndef ROTATE
 177 #define ROTATE(a,n)     (((a)>>(n))+((a)<<(32-(n))))
 178 #endif
 179 
 180 /* Don't worry about the LOAD_DATA() stuff, that is used by
 181  * fcrypt() to add it's little bit to the front */
 182 
 183 #ifdef DES_FCRYPT
 184 
 185 #define LOAD_DATA_tmp(R,S,u,t,E0,E1) \
 186         { DES_LONG tmp; LOAD_DATA(R,S,u,t,E0,E1,tmp); }
 187 
 188 #define LOAD_DATA(R,S,u,t,E0,E1,tmp) \




 148 /* NOTE - c is not incremented as per l2c */
 149 #define l2cn(l1,l2,c,n) { \
 150                         c+=n; \
 151                         switch (n) { \
 152                         case 8: *(--(c))=(unsigned char)(((l2)>>24L)&0xff); \
 153                         case 7: *(--(c))=(unsigned char)(((l2)>>16L)&0xff); \
 154                         case 6: *(--(c))=(unsigned char)(((l2)>> 8L)&0xff); \
 155                         case 5: *(--(c))=(unsigned char)(((l2)     )&0xff); \
 156                         case 4: *(--(c))=(unsigned char)(((l1)>>24L)&0xff); \
 157                         case 3: *(--(c))=(unsigned char)(((l1)>>16L)&0xff); \
 158                         case 2: *(--(c))=(unsigned char)(((l1)>> 8L)&0xff); \
 159                         case 1: *(--(c))=(unsigned char)(((l1)     )&0xff); \
 160                                 } \
 161                         }
 162 
 163 #if (defined(OPENSSL_SYS_WIN32) && defined(_MSC_VER)) || defined(__ICC)
 164 #define ROTATE(a,n)     (_lrotr(a,n))
 165 #elif defined(__GNUC__) && __GNUC__>=2 && !defined(__STRICT_ANSI__) && !defined(OPENSSL_NO_ASM) && !defined(OPENSSL_NO_INLINE_ASM) && !defined(PEDANTIC)
 166 # if defined(__i386) || defined(__i386__) || defined(__x86_64) || defined(__x86_64__)
 167 #  define ROTATE(a,n)   ({ register unsigned int ret;   \
 168                                 __asm__ ("rorl %1,%0"   \
 169                                         : "=r"(ret)     \
 170                                         : "I"(n),"0"(a) \
 171                                         : "cc");        \
 172                            ret;                         \
 173                         })
 174 # endif
 175 #endif
 176 #ifndef ROTATE
 177 #define ROTATE(a,n)     (((a)>>(n))+((a)<<(32-(n))))
 178 #endif
 179 
 180 /* Don't worry about the LOAD_DATA() stuff, that is used by
 181  * fcrypt() to add it's little bit to the front */
 182 
 183 #ifdef DES_FCRYPT
 184 
 185 #define LOAD_DATA_tmp(R,S,u,t,E0,E1) \
 186         { DES_LONG tmp; LOAD_DATA(R,S,u,t,E0,E1,tmp); }
 187 
 188 #define LOAD_DATA(R,S,u,t,E0,E1,tmp) \