Remove unroll pragma from stdlib (#14706)

This commit is contained in:
Juan Carlos 2020-08-26 11:51:41 -03:00 • committed by GitHub
commit d85015e922
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -651,19 +651,16 @@ proc yamlNextToken(g: var GeneralTokenizer) =
of 'x': of 'x':
inc(pos) inc(pos)
for i in 1..2: for i in 1..2:
{.unroll.}
if g.buf[pos] in hexChars: inc(pos) if g.buf[pos] in hexChars: inc(pos)
break break
of 'u': of 'u':
inc(pos) inc(pos)
for i in 1..4: for i in 1..4:
{.unroll.}
if g.buf[pos] in hexChars: inc(pos) if g.buf[pos] in hexChars: inc(pos)
break break
of 'U': of 'U':
inc(pos) inc(pos)
for i in 1..8: for i in 1..8:
{.unroll.}
if g.buf[pos] in hexChars: inc(pos) if g.buf[pos] in hexChars: inc(pos)
break break
else: inc(pos) else: inc(pos)
@ -802,7 +799,6 @@ proc yamlNextToken(g: var GeneralTokenizer) =
if pos == 0 or g.buf[pos - 1] in {'\x0A', '\x0D'}: if pos == 0 or g.buf[pos - 1] in {'\x0A', '\x0D'}:
inc(pos) inc(pos)
for i in 1..2: for i in 1..2:
{.unroll.}
if g.buf[pos] != '.': break if g.buf[pos] != '.': break
inc(pos) inc(pos)
if pos == g.start + 3: if pos == g.start + 3: