Skip to content
Snippets Groups Projects
Commit 7c2dd8f7 authored by Oliver Sander's avatar Oliver Sander
Browse files

Remove special code for the Cray T3E

I don't think people still use that machine.
parent cf9aeb0e
No related branches found
No related tags found
1 merge request!228Fix more cppcheck findings
...@@ -1926,14 +1926,7 @@ typedef union object_with_key KEY_OBJECT; ...@@ -1926,14 +1926,7 @@ typedef union object_with_key KEY_OBJECT;
#define ControlWord(p,ce) (((UINT *)(p))[control_entries[ce].offset_in_object]) #define ControlWord(p,ce) (((UINT *)(p))[control_entries[ce].offset_in_object])
#ifndef __T3E__
#define CW_READ(p,ce) ((ControlWord(p,ce) & control_entries[ce].mask)>>control_entries[ce].offset_in_word) #define CW_READ(p,ce) ((ControlWord(p,ce) & control_entries[ce].mask)>>control_entries[ce].offset_in_word)
#endif
/* very special hack */
#ifdef __T3E__
#define CW_READ(p,ce) ((int)((ControlWord(p,ce) & control_entries[ce].mask)>>control_entries[ce].offset_in_word) )
#endif
#define CW_WRITE(p,ce,n) ControlWord(p,ce) = (ControlWord(p,ce)&control_entries[ce].xor_mask)|(((n)<<control_entries[ce].offset_in_word)&control_entries[ce].mask) #define CW_WRITE(p,ce,n) ControlWord(p,ce) = (ControlWord(p,ce)&control_entries[ce].xor_mask)|(((n)<<control_entries[ce].offset_in_word)&control_entries[ce].mask)
...@@ -1941,16 +1934,8 @@ typedef union object_with_key KEY_OBJECT; ...@@ -1941,16 +1934,8 @@ typedef union object_with_key KEY_OBJECT;
#define StaticControlWord(p,t) (((UINT *)(p))[t ## OFFSET]) #define StaticControlWord(p,t) (((UINT *)(p))[t ## OFFSET])
#define StaticControlWordMask(s) ((POW2(s ## LEN) - 1) << s ## SHIFT) #define StaticControlWordMask(s) ((POW2(s ## LEN) - 1) << s ## SHIFT)
#ifndef __T3E__
#define CW_READ_STATIC(p,s,t) \ #define CW_READ_STATIC(p,s,t) \
((StaticControlWord(p,t) & StaticControlWordMask(s)) >> s ## SHIFT) ((StaticControlWord(p,t) & StaticControlWordMask(s)) >> s ## SHIFT)
#endif
/* very special hack */
#ifdef __T3E__
#define CW_READ_STATIC(p,s,t) \
((int) ((StaticControlWord(p,t) & StaticControlWordMask(s)) >> s ## SHIFT))
#endif
#define CW_WRITE_STATIC(p,s,t,n) \ #define CW_WRITE_STATIC(p,s,t,n) \
StaticControlWord(p,t) = \ StaticControlWord(p,t) = \
......
...@@ -74,7 +74,7 @@ ...@@ -74,7 +74,7 @@
#include "fileopen.h" #include "fileopen.h"
#if defined __HP__ || __SGI__ || __T3E__ || __PARAGON__ || __DEC__ || __SUN__ || __PC__ || __LINUXPPC__ #if defined __HP__ || __SGI__ || __PARAGON__ || __DEC__ || __SUN__ || __PC__ || __LINUXPPC__
#include <dirent.h> #include <dirent.h>
#endif #endif
......
...@@ -379,9 +379,7 @@ INT NS_PREFIX RemoveEnvItem (ENVITEM *theItem) ...@@ -379,9 +379,7 @@ INT NS_PREFIX RemoveEnvItem (ENVITEM *theItem)
return(0); return(0);
} }
#ifndef __T3E__
static static
#endif
INT RemoveEnvDirContent (ENVITEM *theItem) INT RemoveEnvDirContent (ENVITEM *theItem)
{ {
ENVITEM *Item,*Next; ENVITEM *Item,*Next;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment