LEFT | RIGHT |
(Both sides are equal) |
1 // Copyright 2009 The Go Authors. All rights reserved. | 1 // Copyright 2009 The Go Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style | 2 // Use of this source code is governed by a BSD-style |
3 // license that can be found in the LICENSE file. | 3 // license that can be found in the LICENSE file. |
4 | 4 |
5 #include <u.h> | 5 #include <u.h> |
6 #include <libc.h> | 6 #include <libc.h> |
7 #include "go.h" | 7 #include "go.h" |
8 #define TUP(x,y) (((x)<<16)|(y)) | 8 #define TUP(x,y) (((x)<<16)|(y)) |
9 | 9 |
10 static Val tocplx(Val); | 10 static Val tocplx(Val); |
(...skipping 1282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1293 mpmulfltflt(&ad, &rv->imag); // ad | 1293 mpmulfltflt(&ad, &rv->imag); // ad |
1294 | 1294 |
1295 mpmovefltflt(&v->real, &ac); | 1295 mpmovefltflt(&v->real, &ac); |
1296 mpaddfltflt(&v->real, &bd); // ac+bd | 1296 mpaddfltflt(&v->real, &bd); // ac+bd |
1297 mpdivfltflt(&v->real, &cc_plus_dd); // (ac+bd)/(cc+dd) | 1297 mpdivfltflt(&v->real, &cc_plus_dd); // (ac+bd)/(cc+dd) |
1298 | 1298 |
1299 mpmovefltflt(&v->imag, &bc); | 1299 mpmovefltflt(&v->imag, &bc); |
1300 mpsubfltflt(&v->imag, &ad); // bc-ad | 1300 mpsubfltflt(&v->imag, &ad); // bc-ad |
1301 mpdivfltflt(&v->imag, &cc_plus_dd); // (bc+ad)/(cc+dd) | 1301 mpdivfltflt(&v->imag, &cc_plus_dd); // (bc+ad)/(cc+dd) |
1302 } | 1302 } |
LEFT | RIGHT |