morphisms: remove 'return 0;' at end since it is now added by default

This commit is contained in:
Michael Sippel 2025-04-03 16:37:46 +02:00
parent 3f1397735c
commit ef819b4711
Signed by: senvas
GPG key ID: F96CF119C34B64A6
11 changed files with 42 additions and 107 deletions

View file

@ -4,31 +4,19 @@
morph_celsius_to_kelvin ()
Temperature ~ Celsius ~ ~ native.Float32
--> Temperature ~ Kelvin ~ ~ native.Float32
```
*dst = *src + 273.15;
return 0;
```
```*dst = *src + 273.15;```
morph_kelvin_to_celsius ()
Temperature ~ Kelvin ~ ~ native.Float32
--> Temperature ~ Celsius ~ ~ native.Float32
```
*dst = *src - 273.15;
return 0;
```
```*dst = *src - 273.15;```
morph_celsius_to_fahrenheit ()
Temperature ~ Celsius ~ ~ native.Float32
--> Temperature ~ Fahrenheit ~ ~ native.Float32
```
*dst = (*src * 9.0 / 5.0) + 32.0;
return 0;
```
```*dst = (*src * 9.0 / 5.0) + 32.0;```
morph_fahrenheit_to_celsius ()
Temperature ~ Fahrenheit ~ ~ native.Float32
--> Temperature ~ Celsius ~ ~ native.Float32
```
*dst = (*src - 32.0) * 5.0 / 9.0;
return 0;
```
```*dst = (*src - 32.0) * 5.0 / 9.0;```