Numworks Epsilon
1.4.1
Graphing Calculator Operating System
ieee754.c
Go to the documentation of this file.
1
#include <
private/ieee754.h
>
2
#include "
external/softfloat/include/internals.h
"
3
4
uint32_t
ieee754man32
(
float
x) {
5
uint32_t
* address = (
uint32_t
*)&x;
6
return
fracF32UI
( *address );
7
}
8
9
uint8_t
ieee754exp32
(
float
x) {
10
uint32_t
* address = (
uint32_t
*)&x;
11
return
expF32UI
( *address );
12
}
13
14
uint64_t
ieee754man64
(
double
x) {
15
uint64_t
* address = (
uint64_t
*)&x;
16
return
fracF64UI
( *address );
17
}
18
19
uint16_t
ieee754exp64
(
double
x) {
20
uint64_t
* address = (
uint64_t
*)&x;
21
return
expF64UI
( *address );
22
}
ieee754man32
uint32_t ieee754man32(float x)
Definition:
ieee754.c:4
expF32UI
#define expF32UI(a)
Definition:
internals.h:105
uint16_t
unsigned short uint16_t
Definition:
stdint.h:5
uint8_t
unsigned char uint8_t
Definition:
stdint.h:4
ieee754man64
uint64_t ieee754man64(double x)
Definition:
ieee754.c:14
ieee754exp32
uint8_t ieee754exp32(float x)
Definition:
ieee754.c:9
uint32_t
unsigned int uint32_t
Definition:
stdint.h:6
uint64_t
unsigned long long uint64_t
Definition:
stdint.h:7
internals.h
fracF64UI
#define fracF64UI(a)
Definition:
internals.h:127
expF64UI
#define expF64UI(a)
Definition:
internals.h:126
ieee754exp64
uint16_t ieee754exp64(double x)
Definition:
ieee754.c:19
fracF32UI
#define fracF32UI(a)
Definition:
internals.h:106
ieee754.h
epsilon
liba
src
ieee754.c
Generated by
1.8.14