Skip to content
Snippets Groups Projects
Commit 4d4b9727 authored by Ezekiel Dohmen's avatar Ezekiel Dohmen
Browse files

Removing inlineMath.c file in favor of defining all functions inline in the header

parent c2598b5b
No related branches found
No related tags found
2 merge requests!439RCG 5.0 release fro deb 10,!367Build Reorganization Total
......@@ -31,7 +31,6 @@ endif
# Add all kernel common object files
COMMON_OBJ_FILES := $(MODEL_NAME)_core.o
COMMON_OBJ_FILES += src/drv/crc.o
COMMON_OBJ_FILES += src/fe/inlineMath.o
COMMON_OBJ_FILES += src/fe/moduleLoad.o
COMMON_OBJ_FILES += src/fe/moduleLoadCommon.o
COMMON_OBJ_FILES += src/fe/print_io_info.o
......
......@@ -27,7 +27,6 @@ list(APPEND COMMON_SRC_LIST "${CMAKE_CURRENT_SOURCE_DIR}/${MODEL_NAME}_core.c"
"${CMAKE_CURRENT_SOURCE_DIR}/src/fe/print_io_info.c"
"${CMAKE_CURRENT_SOURCE_DIR}/src/include/controller.c"
"${CMAKE_CURRENT_SOURCE_DIR}/src/include/controllerko.c"
"${CMAKE_CURRENT_SOURCE_DIR}/src/fe/inlineMath.c"
"${CMAKE_CURRENT_SOURCE_DIR}/src/drv/crc.c"
"${CMAKE_CURRENT_SOURCE_DIR}/src/include/drv/fm10Gen.c"
"${CMAKE_CURRENT_SOURCE_DIR}/src/include/drv/epicsXfer.c"
......
//#define LIGO_INLINE
#include "inlineMath.h"
/* Set FZ and DAZ bits, disabling underflows and denorms
* This fixes long execution times caused by 0.0 inputs to filter modules.
* See the inlineMath.h header file for more information on the bits we are
* setting
* */
void
fz_daz( void )
{
write_mxcsr( read_mxcsr( ) | 1 | 1 << 15 );
}
......@@ -206,8 +206,17 @@ write_mxcsr( unsigned long long val )
asm( "ldmxcsr %0" ::"m"( val ) );
}
/* Start function prototypes for inlineMath.c */
void fz_daz( void );
/* Set FZ and DAZ bits, disabling underflows and denorms
* This fixes long execution times caused by 0.0 inputs to filter modules.
* See the inlineMath.h header file for more information on the bits we are
* setting
* */
LIGO_INLINE void
fz_daz( void )
{
write_mxcsr( read_mxcsr( ) | 1 | 1 << 15 );
}
#ifdef __cplusplus
}
......
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