Arithmetic shift (original) (raw)

About DBpedia

산술 시프트는 연산자 중 하나로서 특수한 2의 거듭제곱수(2, 4, 8, 16 ... 등)와 관련한 곱셈과 나눗셈을 연산할 때 사용된다....

thumbnail

Property Value
dbo:abstract In computer programming, an arithmetic shift is a shift operator, sometimes termed a signed shift (though it is not restricted to signed operands). The two basic types are the arithmetic left shift and the arithmetic right shift. For binary numbers it is a bitwise operation that shifts all of the bits of its operand; every bit in the operand is simply moved a given number of bit positions, and the vacant bit-positions are filled in. Instead of being filled with all 0s, as in logical shift, when shifting to the right, the leftmost bit (usually the sign bit in signed integer representations) is replicated to fill in all the vacant positions (this is a kind of sign extension). Some authors prefer the terms sticky right-shift and zero-fill right-shift for arithmetic and logical shifts respectively. Arithmetic shifts can be useful as efficient ways to perform multiplication or division of signed integers by powers of two. Shifting left by n bits on a signed or unsigned binary number has the effect of multiplying it by 2n. Shifting right by n bits on a two's complement signed binary number has the effect of dividing it by 2n, but it always rounds down (towards negative infinity). This is different from the way rounding is usually done in signed integer division (which rounds towards 0). This discrepancy has led to bugs in a number of compilers. For example, in the x86 instruction set, the SAR instruction (arithmetic right shift) divides a signed number by a power of two, rounding towards negative infinity. However, the IDIV instruction (signed divide) divides a signed number, rounding towards zero. So a SAR instruction cannot be substituted for an IDIV by power of two instruction nor vice versa. (en) 산술 시프트는 연산자 중 하나로서 특수한 2의 거듭제곱수(2, 4, 8, 16 ... 등)와 관련한 곱셈과 나눗셈을 연산할 때 사용된다.... (ko) Na programação de computadores, deslocamento aritmético é um operador de deslocamento que altera o numero binário, deslocando-o 'N' vezes, este podendo ser tanto feito para a esquerda como para a direita. Nestas condições, conclui-se que faz parte da lógica binária. (pt) 在程序设计中,算术移位是一种位操作,有时被称为有符号移位。它分為算术左移和算术右移。对于二进制数来说,算术移位可以移动每個數字的位置,即每個數字都能被移动,而空出的位置又被其他數字填充。当向右移动时,最左边的位置依舊保留原有位置的數值。 (zh)
dbo:thumbnail wiki-commons:Special:FilePath/Rotate_right_arithmetically.svg?width=300
dbo:wikiPageExternalLink http://h71000.www7.hp.com/doc/73FINAL/4515/4515pro_002.html%238_arithmeticshiftoperator http://www.arl.wustl.edu/~lockwood/class/cs306/books/artofasm/Chapter_6/CH06-3.html%23HEADING3-120%7Caccess-date=2007-11-28%7Carchive-url=https:/web.archive.org/web/20071123223102/http:/www.arl.wustl.edu/~lockwood/class/cs306/books/artofasm/Chapter_6/CH06-3.html%23HEADING3-120%7Carchive-date=2007-11-23%7Curl-status=dead https://gcc.gnu.org/onlinedocs/gcc-4.3.3/gcc/Integers-implementation.html%23Integers-implementation%7Cwork=GCC http://www.dtic.mil/get-tr-doc/pdf%3FAD=ADA031883%7Carchive-url=https:/web.archive.org/web/20170922201035/http:/www.dtic.mil/get-tr-doc/pdf%3FAD=ADA031883%7Curl-status=dead%7Carchive-date=September https://web.archive.org/web/20110808085326/http:/h71000.www7.hp.com/doc/73final/4515/4515pro_002.html%238_arithmeticshiftoperator
dbo:wikiPageID 40725 (xsd:integer)
dbo:wikiPageLength 15900 (xsd:nonNegativeInteger)
dbo:wikiPageRevisionID 1121633413 (xsd:integer)
dbo:wikiPageWikiLink dbr:Python_(programming_language) dbr:Ruby_(programming_language) dbr:Scheme_(programming_language) dbr:Binary_numeral_system dbr:Bitwise_operation dbr:Julia_(programming_language) dbr:VHDL dbr:Verilog dbr:Common_Lisp dbr:Rust_(programming_language) dbr:One's_complement dbr:Free_Software_Foundation dbr:GNU_Compiler_Collection dbr:Go_(programming_language) dbr:Motorola_68000_series dbr:Arithmetic_overflow dbr:Standard_ML dbr:Computer_programming dbr:Z80 dbr:Federal_Standard_1037C dbr:C++ dbr:C_(programming_language) dbr:C_Sharp_(programming_language) dbr:Two's_complement dbr:Data_General dbr:Logical_shift dbr:X86_assembly_language dbr:ActionScript dbr:Ada_(programming_language) dbr:American_National_Standards_Institute dbr:D_(programming_language) dbr:Downscaling dbc:Operators_(programming) dbr:PHP dbr:Floating-point dbr:Radix dbc:Binary_arithmetic dbr:Haskell_(programming_language) dbr:International_Organization_for_Standardization dbr:Isomorphic dbr:JavaScript dbr:Java_(programming_language) dbr:Swift_(programming_language) dbr:Digital_Equipment_Corporation dbr:Division_(mathematics) dbr:IBM dbr:Kotlin_(programming_language) dbr:OCaml dbr:OpenVMS dbr:RISC-V dbr:X86_instruction_listings dbr:Sign_extension dbr:The_Art_of_Computer_Programming dbr:Fixed-point_arithmetic dbr:Sign_bit dbr:File:Rotate_left_logically.svg dbr:File:Rotate_right_arithmetically.svg
dbp:wikiPageUsesTemplate dbt:Cite_book dbt:Cite_journal dbt:Cite_web dbt:Page_needed dbt:Refbegin dbt:Refend dbt:Reflist dbt:Sfn dbt:Short_description dbt:FS1037C
dct:subject dbc:Operators_(programming) dbc:Binary_arithmetic
gold:hypernym dbr:Operator
rdf:type dbo:Company
rdfs:comment 산술 시프트는 연산자 중 하나로서 특수한 2의 거듭제곱수(2, 4, 8, 16 ... 등)와 관련한 곱셈과 나눗셈을 연산할 때 사용된다.... (ko) Na programação de computadores, deslocamento aritmético é um operador de deslocamento que altera o numero binário, deslocando-o 'N' vezes, este podendo ser tanto feito para a esquerda como para a direita. Nestas condições, conclui-se que faz parte da lógica binária. (pt) 在程序设计中,算术移位是一种位操作,有时被称为有符号移位。它分為算术左移和算术右移。对于二进制数来说,算术移位可以移动每個數字的位置,即每個數字都能被移动,而空出的位置又被其他數字填充。当向右移动时,最左边的位置依舊保留原有位置的數值。 (zh) In computer programming, an arithmetic shift is a shift operator, sometimes termed a signed shift (though it is not restricted to signed operands). The two basic types are the arithmetic left shift and the arithmetic right shift. For binary numbers it is a bitwise operation that shifts all of the bits of its operand; every bit in the operand is simply moved a given number of bit positions, and the vacant bit-positions are filled in. Instead of being filled with all 0s, as in logical shift, when shifting to the right, the leftmost bit (usually the sign bit in signed integer representations) is replicated to fill in all the vacant positions (this is a kind of sign extension). (en)
rdfs:label Arithmetic shift (en) 산술 시프트 (ko) Deslocamento aritmético (pt) 算术移位 (zh)
owl:sameAs freebase:Arithmetic shift wikidata:Arithmetic shift dbpedia-ko:Arithmetic shift dbpedia-pt:Arithmetic shift dbpedia-ro:Arithmetic shift dbpedia-zh:Arithmetic shift https://global.dbpedia.org/id/4S8X5
prov:wasDerivedFrom wikipedia-en:Arithmetic_shift?oldid=1121633413&ns=0
foaf:depiction wiki-commons:Special:FilePath/Rotate_left_logically.svg wiki-commons:Special:FilePath/Rotate_right_arithmetically.svg
foaf:isPrimaryTopicOf wikipedia-en:Arithmetic_shift
is dbo:wikiPageDisambiguates of dbr:Shift
is dbo:wikiPageRedirects of dbr:Arithmetic_left_shift dbr:Arithmetic_right_shift
is dbo:wikiPageWikiLink of dbr:Arithmetic_left_shift dbr:Arithmetic_right_shift dbr:Verilog dbr:Motorola_68000 dbr:Motorola_68000_series dbr:Logarithm dbr:Horner's_method dbr:74181 dbr:Tiny_C_Compiler dbr:Logical_shift dbr:DEC_Alpha dbr:Floor_and_ceiling_functions dbr:P-adic_number dbr:Page_replacement_algorithm dbr:Q_(number_format) dbr:Strength_reduction dbr:ASL_(disambiguation) dbr:ASR dbr:Binary_GCD_algorithm dbr:Binary_number dbr:Bitwise_operations_in_C dbr:Booth's_multiplication_algorithm dbr:Software_portability dbr:Circular_shift dbr:Operators_in_C_and_C++ dbr:Shift_operator dbr:Word_(computer_architecture) dbr:X86_instruction_listings dbr:Sall dbr:Shift dbr:Little_Computer_3 dbr:Sign_extension dbr:Fixed-point_arithmetic
is foaf:primaryTopic of wikipedia-en:Arithmetic_shift