# Sema: clean up zirUnaryMath · gitcafe/zig

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

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

Visibility: public

Requested revision: a028488384c599aa997ba04bbd5ed98f2172630c

Requested commit: a028488384c599aa997ba04bbd5ed98f2172630c

Commit: a028488384c599aa997ba04bbd5ed98f2172630c

Tree: d61c60e53f167ecb3c5b24235f5fa30f01fd8c23

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
Sema: clean up zirUnaryMath

 * pass air_tag instead of zir_tag
 * also pass eval function so that the branch only happens once and the
   body of zirUnaryMath is simplified
 * Value.sqrt: update to handle f80 and f128 in the normalized way that
   includes handling c_longdouble.

Semi-related change: fix incorrect sqrt builtin name for f80 in stage1.

```

## Parents

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

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