mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
fmt: remove redundant parenthesis in the complex infix expr (#17873)
This commit is contained in:
@@ -456,7 +456,7 @@ pub fn div_64(hi u64, lo u64, y1 u64) (u64, u64) {
|
||||
un0 := un10 & bits.mask32
|
||||
mut q1 := un32 / yn1
|
||||
mut rhat := un32 - (q1 * yn1)
|
||||
for (q1 >= bits.two32) || (q1 * yn0) > ((bits.two32 * rhat) + un1) {
|
||||
for q1 >= bits.two32 || (q1 * yn0) > ((bits.two32 * rhat) + un1) {
|
||||
q1--
|
||||
rhat += yn1
|
||||
if rhat >= bits.two32 {
|
||||
@@ -466,7 +466,7 @@ pub fn div_64(hi u64, lo u64, y1 u64) (u64, u64) {
|
||||
un21 := (un32 * bits.two32) + (un1 - (q1 * y))
|
||||
mut q0 := un21 / yn1
|
||||
rhat = un21 - q0 * yn1
|
||||
for (q0 >= bits.two32) || (q0 * yn0) > ((bits.two32 * rhat) + un0) {
|
||||
for q0 >= bits.two32 || (q0 * yn0) > ((bits.two32 * rhat) + un0) {
|
||||
q0--
|
||||
rhat += yn1
|
||||
if rhat >= bits.two32 {
|
||||
|
@@ -370,5 +370,5 @@ pub fn (c Complex) acsch() Complex {
|
||||
|
||||
// Complex Equals
|
||||
pub fn (c1 Complex) equals(c2 Complex) bool {
|
||||
return (c1.re == c2.re) && (c1.im == c2.im)
|
||||
return c1.re == c2.re && c1.im == c2.im
|
||||
}
|
||||
|
@@ -203,7 +203,7 @@ pub fn asin(x_ f64) f64 {
|
||||
// acos(x) = nan if x < -1 or x > 1
|
||||
[inline]
|
||||
pub fn acos(x f64) f64 {
|
||||
if (x < -1.0) || (x > 1.0) {
|
||||
if x < -1.0 || x > 1.0 {
|
||||
return nan()
|
||||
}
|
||||
if x > 0.5 {
|
||||
|
Reference in New Issue
Block a user