#include "libm.h"
#include "libm_util.h"
#include "libm_new.h"
Go to the source code of this file.
◆ __amd_handle_errorf
◆ __amd_ldexp
◆ FN_PROTOTYPE_REF
◆ ldexpf()
Definition at line 40 of file ldexpf.c.
41{
44 int exponent;
48 val.u32 =
val.u32 & 0x7fffffff;
49
50 if(
val.u32 > 0x7f800000)
51 #ifdef WINDOWS
53 #else
54 {
55 if(!(
val.u32 & 0x00400000))
57 else
59 }
60 #endif
61
62 if(
val.u32 == 0x7f800000)
64
65 if((
val.u32 == 0x00000000) || (
n==0))
67
68 exponent =
val.u32 >> 23;
69
70 if(exponent == 0)
71 {
73 exponent = (
val.u32 >> 23);
76 {
79 }
80 if(exponent > 254)
81 {
84 }
85
87 val.u32 =
sign | (exponent << 23) | (
val.u32 & 0x007fffff);
90 }
91
93
95 {
98 }
99
100 if(exponent < 1)
101 {
103 val.u32 =
sign | (exponent << 23) | (
val.u32 & 0x007fffff);
106 }
107
108 if(exponent > 254)
109 {
112 }
113
114 val.u32 =
sign | (exponent << 23) | (
val.u32 & 0x007fffff);
116}
GLint GLint GLint GLint GLint x
#define __amd_handle_errorf
static const float VAL_2PMULTIPLIER_SP
static const float VAL_2PMMULTIPLIER_SP