Skip to content

Conversation

@mohamed
Copy link

@mohamed mohamed commented May 23, 2019

This patch adds preprocessor facilities to enable choosing between
global state (SoftFloatv3 default) and adding a "state" parameter
to all functions. This has been discussed already by John Hauser
at: #5

This patch takes the position of enabling both options using a
preprocessor macro named "SOFTFLOAT_USE_GLOBAL_STATE". If the macro
is defined, then it uses global state as it does already. If the
macro is undefined, then it adds a state parameter which is a struct
defined in softfloat_types.h

@mohamed mohamed force-pushed the config-global-state branch 2 times, most recently from 03e3302 to 75a5272 Compare May 23, 2019 14:57
This patch adds preprocessor facilities to enable choosing between
global state (SoftFloatv3 default) and adding a "state" parameter
to all functions. This has been discussed already by John Hauser
at: ucb-bar#5

This patch takes the position of enabling both options using a
preprocessor macro named "SOFTFLOAT_USE_GLOBAL_STATE". If the macro
is defined, then it uses global state as it does already. If the
macro is undefined, then it adds a state parameter which is a struct
defined in softfloat_types.h
@mohamed mohamed force-pushed the config-global-state branch from 75a5272 to 8ae3372 Compare May 23, 2019 15:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant