# Fixes to divsf3 \(\#2186\) · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/c24a49a1a7a74937fca4375fe418a92c398c013f)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: c24a49a1a7a74937fca4375fe418a92c398c013f

Requested commit: c24a49a1a7a74937fca4375fe418a92c398c013f

Commit: c24a49a1a7a74937fca4375fe418a92c398c013f

Tree: a1378b37240c7272c1c3b6fc62a9ba6b331e568f

Author: vegecode

Committer: Andrew Kelley

## Message

```
Fixes to divsf3 (#2186)

* Fixes to divsf3

Embarrassingly failed to notice a section that was unchanged from where
it was copied from mulXf3.zig. The test cases for this function series
div{s,d,t}f3 are very incomplete and don't exercise all code paths.

Remove unnecessary switch from divsf3 left during development from when
I tried to make it generic to support f32, f64, and f128 in one go.

Make runtime safety dependent on whether a test is being run.

* divsf3: switch plus to minus

```

## Parents

- [aecbd1892a871a2b046ceda9058c4132cd0cb392](https://git.cafe/gitcafe/zig/commit/aecbd1892a871a2b046ceda9058c4132cd0cb392?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/c24a49a1a7a74937fca4375fe418a92c398c013f?format=markdown)
