回答編集履歴
1
精度向上
test
CHANGED
@@ -15,6 +15,10 @@
|
|
15
15
|
int32_t* k = (int32_t *)(&x);
|
16
16
|
|
17
17
|
*k = 0x5f3759df - (*k>>1);
|
18
|
+
|
19
|
+
x = x*(1.5-xh*x*x);
|
20
|
+
|
21
|
+
x = x*(1.5-xh*x*x);
|
18
22
|
|
19
23
|
x = x*(1.5-xh*x*x);
|
20
24
|
|