# cbe: changes to get zig2.c compiling under msvc · gitcafe/zig

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

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

Visibility: public

Requested revision: 676e4f3824054cf39c87d008909b0e57bb9bdcc8

Requested commit: 676e4f3824054cf39c87d008909b0e57bb9bdcc8

Commit: 676e4f3824054cf39c87d008909b0e57bb9bdcc8

Tree: 5d00fe5e028d1bee54aac16303a2824053c57abf

Author: kcbanner

Committer: kcbanner

## Message

```
cbe: changes to get zig2.c compiling under msvc

- Add cpuid / getXCR0 functions for the cbe to use instead of asm blocks
- Don't cast between 128 bit types during truncation
- Fixup truncation to use functions for shifts / adds
- Fixup float casts for undefined values
- Add test for 128 bit integer truncation

```

## Parents

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

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