Commit 37fe3ca1 authored by Cerlane Leong's avatar Cerlane Leong 💬

p32 - not exhaustively tested

parent 7437276a
......@@ -38,10 +38,7 @@ ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
=============================================================================*/
#include <stdbool.h>
#include <stdint.h>
#include "include/softposit.h"
#include "platform.h"
#include "internals.h"
......
......@@ -39,14 +39,10 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
=============================================================================*/
#include <stdbool.h>
#include <stdint.h>
#include <stdlib.h>
#include "include/softposit.h"
#include "platform.h"
#include "internals.h"
#include "specialize.h"
posit32_t p32_div( posit32_t pA, posit32_t pB )
{
......
......@@ -39,13 +39,9 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
=============================================================================*/
#include <stdbool.h>
#include <stdint.h>
#include "include/softposit.h"
#include "platform.h"
#include "internals.h"
#include "specialize.h"
posit32_t p32_mul( posit32_t pA, posit32_t pB ){
......
......@@ -32,9 +32,6 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
=============================================================================*/
#include <stdint.h>
#include "include/softposit.h"
#include "platform.h"
#include "internals.h"
......
......@@ -39,13 +39,9 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
=============================================================================*/
#include <stdbool.h>
#include <stdint.h>
#include "include/softposit.h"
#include "platform.h"
#include "internals.h"
#include "specialize.h"
posit32_t p32_roundToInt( posit32_t pA ){
union ui32_p32 uA;
......
......@@ -34,15 +34,9 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
=============================================================================*/
#include <stdbool.h>
#include <stdint.h>
#include "include/softposit.h"
#include "platform.h"
#include "internals.h"
posit32_t p32_sub( posit32_t a, posit32_t b )
{
posit32_t p32_sub( posit32_t a, posit32_t b ) {
union ui32_p32 uA, uB, uZ;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment