@@ -80,16 +80,16 @@ SLANG_FORCE_INLINE float F32_fmod(float a, float b) { return ::fmodf(a, b); }
80
80
SLANG_FORCE_INLINE float F32_remainder (float a, float b) { return ::remainderf (a, b); }
81
81
SLANG_FORCE_INLINE float F32_atan2 (float a, float b) { return float (::atan2 (a, b)); }
82
82
83
- SLANG_FORCE_INLINE float F32_frexp (float x, float & e)
83
+ SLANG_FORCE_INLINE float F32_frexp (float x, float * e)
84
84
{
85
85
int ei;
86
86
float m = ::frexpf (x, &ei);
87
- e = float (ei);
87
+ * e = float (ei);
88
88
return m;
89
89
}
90
- SLANG_FORCE_INLINE float F32_modf (float x, float & ip)
90
+ SLANG_FORCE_INLINE float F32_modf (float x, float * ip)
91
91
{
92
- return ::modff (x, & ip);
92
+ return ::modff (x, ip);
93
93
}
94
94
95
95
SLANG_FORCE_INLINE uint32_t F32_asuint (float f) { Union32 u; u.f = f; return u.u ; }
@@ -147,33 +147,33 @@ SLANG_FORCE_INLINE double F64_fmod(double a, double b) { return ::fmod(a, b); }
147
147
SLANG_FORCE_INLINE double F64_remainder (double a, double b) { return ::remainder (a, b); }
148
148
SLANG_FORCE_INLINE double F64_atan2 (double a, double b) { return ::atan2 (a, b); }
149
149
150
- SLANG_FORCE_INLINE double F64_frexp (double x, double & e)
150
+ SLANG_FORCE_INLINE double F64_frexp (double x, double * e)
151
151
{
152
152
int ei;
153
153
double m = ::frexp (x, &ei);
154
- e = float (ei);
154
+ * e = float (ei);
155
155
return m;
156
156
}
157
157
158
- SLANG_FORCE_INLINE double F64_modf (double x, double & ip)
158
+ SLANG_FORCE_INLINE double F64_modf (double x, double * ip)
159
159
{
160
- return ::modf (x, & ip);
160
+ return ::modf (x, ip);
161
161
}
162
162
163
- SLANG_FORCE_INLINE void F64_asuint (double d, uint32_t & low, uint32_t & hi)
163
+ SLANG_FORCE_INLINE void F64_asuint (double d, uint32_t * low, uint32_t * hi)
164
164
{
165
165
Union64 u;
166
166
u.d = d;
167
- low = uint32_t (u.u );
168
- hi = uint32_t (u.u >> 32 );
167
+ * low = uint32_t (u.u );
168
+ * hi = uint32_t (u.u >> 32 );
169
169
}
170
170
171
- SLANG_FORCE_INLINE void F64_asint (double d, int32_t & low, int32_t & hi)
171
+ SLANG_FORCE_INLINE void F64_asint (double d, int32_t * low, int32_t * hi)
172
172
{
173
173
Union64 u;
174
174
u.d = d;
175
- low = int32_t (u.u );
176
- hi = int32_t (u.u >> 32 );
175
+ * low = int32_t (u.u );
176
+ * hi = int32_t (u.u >> 32 );
177
177
}
178
178
179
179
// Ternary
0 commit comments