zig/std/math
Andrew Kelley 3671582c15 syntax: functions require return type. remove ->
The purpose of this is:

 * Only one way to do things
 * Changing a function with void return type to return a possible
   error becomes a 1 character change, subtly encouraging
   people to use errors.

See #632

Here are some imperfect sed commands for performing this update:

remove arrow:

```
sed -i 's/\(\bfn\b.*\)-> /\1/g' $(find . -name "*.zig")
```

add void:

```
sed -i 's/\(\bfn\b.*\))\s*{/\1) void {/g' $(find ../ -name "*.zig")
```

Some cleanup may be necessary, but this should do the bulk of the work.
2018-01-25 04:10:11 -05:00
..
x86_64 syntax: functions require return type. remove -> 2018-01-25 04:10:11 -05:00
acos.zig syntax: functions require return type. remove -> 2018-01-25 04:10:11 -05:00
acosh.zig syntax: functions require return type. remove -> 2018-01-25 04:10:11 -05:00
asin.zig syntax: functions require return type. remove -> 2018-01-25 04:10:11 -05:00
asinh.zig syntax: functions require return type. remove -> 2018-01-25 04:10:11 -05:00
atan2.zig syntax: functions require return type. remove -> 2018-01-25 04:10:11 -05:00
atan.zig syntax: functions require return type. remove -> 2018-01-25 04:10:11 -05:00
atanh.zig syntax: functions require return type. remove -> 2018-01-25 04:10:11 -05:00
cbrt.zig syntax: functions require return type. remove -> 2018-01-25 04:10:11 -05:00
ceil.zig syntax: functions require return type. remove -> 2018-01-25 04:10:11 -05:00
copysign.zig syntax: functions require return type. remove -> 2018-01-25 04:10:11 -05:00
cos.zig syntax: functions require return type. remove -> 2018-01-25 04:10:11 -05:00
cosh.zig syntax: functions require return type. remove -> 2018-01-25 04:10:11 -05:00
exp2.zig syntax: functions require return type. remove -> 2018-01-25 04:10:11 -05:00
exp.zig syntax: functions require return type. remove -> 2018-01-25 04:10:11 -05:00
expm1.zig syntax: functions require return type. remove -> 2018-01-25 04:10:11 -05:00
expo2.zig syntax: functions require return type. remove -> 2018-01-25 04:10:11 -05:00
fabs.zig syntax: functions require return type. remove -> 2018-01-25 04:10:11 -05:00
floor.zig syntax: functions require return type. remove -> 2018-01-25 04:10:11 -05:00
fma.zig syntax: functions require return type. remove -> 2018-01-25 04:10:11 -05:00
frexp.zig syntax: functions require return type. remove -> 2018-01-25 04:10:11 -05:00
hypot.zig syntax: functions require return type. remove -> 2018-01-25 04:10:11 -05:00
ilogb.zig syntax: functions require return type. remove -> 2018-01-25 04:10:11 -05:00
index.zig syntax: functions require return type. remove -> 2018-01-25 04:10:11 -05:00
inf.zig syntax: functions require return type. remove -> 2018-01-25 04:10:11 -05:00
isfinite.zig syntax: functions require return type. remove -> 2018-01-25 04:10:11 -05:00
isinf.zig syntax: functions require return type. remove -> 2018-01-25 04:10:11 -05:00
isnan.zig syntax: functions require return type. remove -> 2018-01-25 04:10:11 -05:00
isnormal.zig syntax: functions require return type. remove -> 2018-01-25 04:10:11 -05:00
ln.zig syntax: functions require return type. remove -> 2018-01-25 04:10:11 -05:00
log1p.zig syntax: functions require return type. remove -> 2018-01-25 04:10:11 -05:00
log2.zig syntax: functions require return type. remove -> 2018-01-25 04:10:11 -05:00
log10.zig syntax: functions require return type. remove -> 2018-01-25 04:10:11 -05:00
log.zig syntax: functions require return type. remove -> 2018-01-25 04:10:11 -05:00
modf.zig syntax: functions require return type. remove -> 2018-01-25 04:10:11 -05:00
nan.zig syntax: functions require return type. remove -> 2018-01-25 04:10:11 -05:00
pow.zig syntax: functions require return type. remove -> 2018-01-25 04:10:11 -05:00
round.zig syntax: functions require return type. remove -> 2018-01-25 04:10:11 -05:00
scalbn.zig syntax: functions require return type. remove -> 2018-01-25 04:10:11 -05:00
signbit.zig syntax: functions require return type. remove -> 2018-01-25 04:10:11 -05:00
sin.zig syntax: functions require return type. remove -> 2018-01-25 04:10:11 -05:00
sinh.zig syntax: functions require return type. remove -> 2018-01-25 04:10:11 -05:00
sqrt.zig syntax: functions require return type. remove -> 2018-01-25 04:10:11 -05:00
tan.zig syntax: functions require return type. remove -> 2018-01-25 04:10:11 -05:00
tanh.zig syntax: functions require return type. remove -> 2018-01-25 04:10:11 -05:00
trunc.zig syntax: functions require return type. remove -> 2018-01-25 04:10:11 -05:00