#include "libm.h"
#include "libm_util.h"
#include "libm_new.h"
Go to the source code of this file.
◆ __amd_handle_error
◆ __amd_ldexp
◆ FN_PROTOTYPE_REF
◆ ldexp()
Definition at line 40 of file ldexp.c.
41{
44 int exponent;
48 val.u32[1] =
val.u32[1] & 0x7fffffff;
49
50 if (
val.u64 > 0x7ff0000000000000)
51 #ifdef WINDOWS
53 #else
54 {
55 if(!(
val.u64 & 0x0008000000000000))
57 else
59 }
60 #endif
61
62 if(
val.u64 == 0x7ff0000000000000)
64
65 if((
val.u64 == 0x0000000000000000) || (
n==0))
67
68 exponent =
val.u32[1] >> 20;
69
70 if(exponent == 0)
71 {
73 exponent =
val.u32[1] >> 20;
76 {
78 val.u32[0] = 0x00000000;
80 }
81 if(exponent > 2046)
82 {
84 val.u32[0] = 0x00000000;
86 }
87
89 val.u32[1] =
sign | (exponent << 20) | (
val.u32[1] & 0x000fffff);
92 }
93
95
97 {
99 val.u32[0] = 0x00000000;
101 }
102
103 if(exponent < 1)
104 {
106 val.u32[1] =
sign | (exponent << 20) | (
val.u32[1] & 0x000fffff);
109 }
110
111 if(exponent > 2046)
112 {
113 val.u32[1] =
sign | 0x7ff00000;
114 val.u32[0] = 0x00000000;
116 }
117
118 val.u32[1] =
sign | (exponent << 20) | (
val.u32[1] & 0x000fffff);
120}
GLint GLint GLint GLint GLint x
#define __amd_handle_error
static const double VAL_2PMULTIPLIER_DP
static const double VAL_2PMMULTIPLIER_DP