aboutsummaryrefslogtreecommitdiff
path: root/std/std.zig
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2016-01-08 23:41:40 -0700
committerAndrew Kelley <superjoe30@gmail.com>2016-01-08 23:41:40 -0700
commitb7dd88ad68aab5b6bc8321431d1a53b343b2dd37 (patch)
tree78a9cd198eb94529a5841eb68c6bf57f9be21607 /std/std.zig
parent14b9cbd43c21ad2ba75b38ef5fc681c044e7662e (diff)
downloadzig-b7dd88ad68aab5b6bc8321431d1a53b343b2dd37.tar.gz
zig-b7dd88ad68aab5b6bc8321431d1a53b343b2dd37.zip
suport checked arithmetic operations via intrinsics
closes #32
Diffstat (limited to 'std/std.zig')
-rw-r--r--std/std.zig5
1 files changed, 0 insertions, 5 deletions
diff --git a/std/std.zig b/std/std.zig
index 82471748b1..2ccacc3166 100644
--- a/std/std.zig
+++ b/std/std.zig
@@ -63,10 +63,6 @@ pub fn parse_u64(buf: []u8, radix: u8, result: &u64) -> bool {
return true;
}
- x *= radix;
- x += digit;
-
- /* TODO intrinsics mul and add with overflow
// x *= radix
if (@mul_with_overflow_u64(x, radix, &x)) {
return true;
@@ -76,7 +72,6 @@ pub fn parse_u64(buf: []u8, radix: u8, result: &u64) -> bool {
if (@add_with_overflow_u64(x, digit, &x)) {
return true;
}
- */
i += 1;
}