Replace mistaken "bit sign" with "sign bit"
This commit is contained in:
@@ -203,7 +203,7 @@ public class Byte private constructor() : Number(), Comparable<Byte> {
|
||||
* The resulting `Short` value represents the same numerical value as this `Byte`.
|
||||
*
|
||||
* The least significant 8 bits of the resulting `Short` value are the same as the binary representation of this `Byte` value,
|
||||
* whereas the most significant 8 bits are filled with the bit sign of this value.
|
||||
* whereas the most significant 8 bits are filled with the sign bit of this value.
|
||||
*/
|
||||
public override fun toShort(): Short
|
||||
/**
|
||||
@@ -212,7 +212,7 @@ public class Byte private constructor() : Number(), Comparable<Byte> {
|
||||
* The resulting `Int` value represents the same numerical value as this `Byte`.
|
||||
*
|
||||
* The least significant 8 bits of the resulting `Int` value are the same as the binary representation of this `Byte` value,
|
||||
* whereas the most significant 24 bits are filled with the bit sign of this value.
|
||||
* whereas the most significant 24 bits are filled with the sign bit of this value.
|
||||
*/
|
||||
public override fun toInt(): Int
|
||||
/**
|
||||
@@ -221,7 +221,7 @@ public class Byte private constructor() : Number(), Comparable<Byte> {
|
||||
* The resulting `Long` value represents the same numerical value as this `Byte`.
|
||||
*
|
||||
* The least significant 8 bits of the resulting `Long` value are the same as the binary representation of this `Byte` value,
|
||||
* whereas the most significant 56 bits are filled with the bit sign of this value.
|
||||
* whereas the most significant 56 bits are filled with the sign bit of this value.
|
||||
*/
|
||||
public override fun toLong(): Long
|
||||
/**
|
||||
@@ -441,7 +441,7 @@ public class Short private constructor() : Number(), Comparable<Short> {
|
||||
* The resulting `Int` value represents the same numerical value as this `Short`.
|
||||
*
|
||||
* The least significant 16 bits of the resulting `Int` value are the same as the binary representation of this `Short` value,
|
||||
* whereas the most significant 16 bits are filled with the bit sign of this value.
|
||||
* whereas the most significant 16 bits are filled with the sign bit of this value.
|
||||
*/
|
||||
public override fun toInt(): Int
|
||||
/**
|
||||
@@ -450,7 +450,7 @@ public class Short private constructor() : Number(), Comparable<Short> {
|
||||
* The resulting `Long` value represents the same numerical value as this `Short`.
|
||||
*
|
||||
* The least significant 16 bits of the resulting `Long` value are the same as the binary representation of this `Short` value,
|
||||
* whereas the most significant 48 bits are filled with the bit sign of this value.
|
||||
* whereas the most significant 48 bits are filled with the sign bit of this value.
|
||||
*/
|
||||
public override fun toLong(): Long
|
||||
/**
|
||||
@@ -696,7 +696,7 @@ public class Int private constructor() : Number(), Comparable<Int> {
|
||||
* The resulting `Long` value represents the same numerical value as this `Int`.
|
||||
*
|
||||
* The least significant 32 bits of the resulting `Long` value are the same as the binary representation of this `Int` value,
|
||||
* whereas the most significant 32 bits are filled with the bit sign of this value.
|
||||
* whereas the most significant 32 bits are filled with the sign bit of this value.
|
||||
*/
|
||||
public override fun toLong(): Long
|
||||
/**
|
||||
|
||||
@@ -315,7 +315,7 @@ class GeneratePrimitives(out: PrintWriter) : BuiltInsSourceGenerator(out) {
|
||||
* The resulting `$otherName` value represents the same numerical value as this `$thisName`.
|
||||
*
|
||||
* The least significant ${fromIntegral.bitSize} bits of the resulting `$otherName` value are the same as the binary representation of this `$thisName` value,
|
||||
* whereas the most significant ${toIntegral.bitSize - fromIntegral.bitSize} bits are filled with the bit sign of this value.
|
||||
* whereas the most significant ${toIntegral.bitSize - fromIntegral.bitSize} bits are filled with the sign bit of this value.
|
||||
*/
|
||||
"""
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user