全部书籍

专业

应用 关于 Coach 登录 开始阅读

书籍暂未推出简体中文版——当前显示英文版。

Computer Science · 术语表

什么是 Sign extension?

Definition 6.11 University Computer Science — Year 1 · 第 6 章 — Strings, Structures and Files

Sign extension is the widening of a signed integer to more bits by copying its sign bit into all the new high bits, which keeps its value in two’s complement: the byte f0 read as a signed char (−16-16) becomes fffffff0, still −16-16. An unsigned value is widened by zeros instead.

在原文中阅读 →