发明授权
US5495592A System for finding and setting address portion of variable-length
character string by XOR-ing portion in number of bytes within single
instruction
失效
用于通过XOR-ing部分以单个指令中的字节数来查找和设置可变长度字符串的地址部分的系统
- 专利标题: System for finding and setting address portion of variable-length character string by XOR-ing portion in number of bytes within single instruction
- 专利标题(中): 用于通过XOR-ing部分以单个指令中的字节数来查找和设置可变长度字符串的地址部分的系统
-
申请号: US369852申请日: 1995-01-06
-
公开(公告)号: US5495592A公开(公告)日: 1996-02-27
- 发明人: David V. James , Mario D. Nemirovsky
- 申请人: David V. James , Mario D. Nemirovsky
- 申请人地址: CA Cupertino
- 专利权人: Apple Computer, Inc.
- 当前专利权人: Apple Computer, Inc.
- 当前专利权人地址: CA Cupertino
- 主分类号: G06F9/305
- IPC分类号: G06F9/305 ; G06F7/74 ; G06F9/30 ; G06F9/34 ; G06F17/30 ; G06F12/04
摘要:
The invention is an instruction for locating the address of a specific character or value within a byte string of variable length. An offset into a portion of the string is specified and the portion of the string is searched for a first occurrence of the specific character beginning at the specified offset. If the specific character is found, then the existence of the specific character is indicated and an address or offset of the specific character is saved or otherwise indicated. If the specific character is not found, then the non-existence of the specific character is indicated and a convenient address or offset for referencing the next character immediately following the portion of the string already examined is saved or otherwise indicated. The specific character can have a length of one or more bytes and can be a pre-defined fixed value or a dynamic arbitrary value. The invention can execute in a time period comparable to performing an arithmetic instruction. Moreover, the invention can be combined with other load and store instructions, so that a copy operation can be performed by invoking this instruction sequence one or more times.
公开/授权文献
- US4969686A Pivoting central armrest for motor-vehicle seat 公开/授权日:1990-11-13
信息查询