Use Context_Control_fp* instead of void* for fp_contexts.

Eliminate evil casts.
This commit is contained in:
Ralf Corsepius
2007-04-17 05:18:49 +00:00
parent c4881ddb67
commit 231aac4fc1
2 changed files with 6 additions and 6 deletions

View File

@@ -1036,7 +1036,7 @@ void _CPU_Context_Initialize(
*/
#define _CPU_Context_Initialize_fp( _destination ) \
{ \
*((Context_Control_fp *) *((void **) _destination)) = _CPU_Null_fp_context; \
*(*(_destination)) = _CPU_Null_fp_context; \
}
/* end of Context handler macros */
@@ -1330,7 +1330,7 @@ void _CPU_Context_restore(
* XXX document implementation including references if appropriate
*/
void _CPU_Context_save_fp(
void **fp_context_ptr
Context_Control_fp **fp_context_ptr
);
/**
@@ -1348,7 +1348,7 @@ void _CPU_Context_save_fp(
* XXX document implementation including references if appropriate
*/
void _CPU_Context_restore_fp(
void **fp_context_ptr
Context_Control_fp **fp_context_ptr
);
/**

View File

@@ -940,7 +940,7 @@ void _CPU_Context_Initialize(
#define _CPU_Context_Initialize_fp( _destination ) \
do { \
*((Context_Control_fp *) *((void **) _destination)) = _CPU_Null_fp_context; \
*(*(_destination)) = _CPU_Null_fp_context; \
} while (0)
#endif
@@ -1191,7 +1191,7 @@ void _CPU_Context_restore(
#if ( C4X_HAS_FPU == 1 )
void _CPU_Context_save_fp(
void **fp_context_ptr
Context_Control_fp **fp_context_ptr
);
#endif
@@ -1207,7 +1207,7 @@ void _CPU_Context_save_fp(
#if ( C4X_HAS_FPU == 1 )
void _CPU_Context_restore_fp(
void **fp_context_ptr
Context_Control_fp **fp_context_ptr
);
#endif