diff options
| author | Alex <58638691+Alex-Velez@users.noreply.github.com> | 2022-08-14 21:06:01 -0500 |
|---|---|---|
| committer | Alex <58638691+Alex-Velez@users.noreply.github.com> | 2022-08-16 19:45:44 -0400 |
| commit | 0ff8f0b5782e736f75be6f36765791164d9f0db7 (patch) | |
| tree | 6ff4e0b4a8aa1aa7d5b1a7c19fcd636d73b96b56 /tests/mir-opt/lower_array_len.array_len_raw.NormalizeArrayLen.diff | |
| parent | b8c0a01b2b651416f5e7461209ff1a93a98619e4 (diff) | |
| download | rust-0ff8f0b5782e736f75be6f36765791164d9f0db7.tar.gz rust-0ff8f0b5782e736f75be6f36765791164d9f0db7.zip | |
Update src/test/assembly/x86_64-floating-point-clamp.rs
Simple Clamp Function I thought this was more robust and easier to read. I also allowed this function to return early in order to skip the extra bound check (I'm sure the difference is negligible). I'm not sure if there was a reason for binding `self` to `x`; if so, please correct me. Simple Clamp Function for f64 I thought this was more robust and easier to read. I also allowed this function to return early in order to skip the extra bound check (I'm sure the difference is negligible). I'm not sure if there was a reason for binding `self` to `x`; if so, please correct me. Floating point clamp test f32 clamp using mut self f64 clamp using mut self Update library/core/src/num/f32.rs Update f64.rs Update x86_64-floating-point-clamp.rs Update src/test/assembly/x86_64-floating-point-clamp.rs Update x86_64-floating-point-clamp.rs Co-Authored-By: scottmcm <scottmcm@users.noreply.github.com>
Diffstat (limited to 'tests/mir-opt/lower_array_len.array_len_raw.NormalizeArrayLen.diff')
0 files changed, 0 insertions, 0 deletions
