| /openbsd-src/lib/libm/src/ |
| H A D | s_nan.c | 71 int bitpos; /* index into words (in bits) */ local 85 for (bitpos = 0; bitpos < 32 * num_words; bitpos += 4) { 87 for (bitpos = 32 * num_words - 4; bitpos >= 0; bitpos -= 4) { 91 words[bitpos / 32] |= _digittoint((unsigned char)s[si]) << (bitpos % 32);
|
| /openbsd-src/gnu/usr.bin/binutils-2.17/bfd/ |
| H A D | cpu-ns32k.c | 383 if (howto->rightshift > howto->bitpos) 384 check = relocation >> (howto->rightshift - howto->bitpos); 386 check = relocation << (howto->bitpos - howto->rightshift); 397 if (howto->rightshift > howto->bitpos 401 >> (howto->rightshift - howto->bitpos))); 433 if (howto->rightshift > howto->bitpos 438 >> (howto->rightshift - howto->bitpos))); 483 relocation <<= (bfd_vma) howto->bitpos; 668 if (howto->bitpos == 0) 675 check += add >> howto->bitpos; [all …]
|
| H A D | reloc.c | 841 relocation <<= (bfd_vma) howto->bitpos; in bfd_perform_relocation() 1220 relocation <<= (bfd_vma) howto->bitpos; in bfd_install_relocation() 1388 unsigned int bitpos = howto->bitpos; in _bfd_relocate_contents() local 1438 b = (x & howto->src_mask & addrmask) >> bitpos; in _bfd_relocate_contents() 1466 ss >>= bitpos; in _bfd_relocate_contents() 1515 relocation <<= (bfd_vma) bitpos; in _bfd_relocate_contents()
|
| H A D | nlm32-i386.c | 158 || rel->howto->bitpos != 0 in nlm_i386_write_import() 282 && rel->howto->bitpos == 0 in nlm_i386_mangle_relocs() 306 && rel->howto->bitpos == 0 in nlm_i386_mangle_relocs()
|
| H A D | aout-tic30.c | 436 if (howto->bitpos == 0) in tic30_aout_relocate_contents() 443 check += add >> howto->bitpos; in tic30_aout_relocate_contents() 445 signed_check += add >> howto->bitpos; in tic30_aout_relocate_contents() 447 signed_check += ((add >> howto->bitpos) | ((bfd_vma) - 1 & ~((bfd_vma) - 1 >> howto->bitpos))); in tic30_aout_relocate_contents() 483 relocation <<= (bfd_vma) howto->bitpos; in tic30_aout_relocate_contents()
|
| H A D | elf32-d10v.c | 350 val = (insn & howto->dst_mask) >> howto->bitpos << howto->rightshift; in extract_rel_addend() 357 sign = sign >> howto->bitpos << howto->rightshift; in extract_rel_addend() 371 addend = (addend >> howto->rightshift << howto->bitpos) & howto->dst_mask; in insert_rel_addend()
|
| /openbsd-src/gnu/usr.bin/binutils/bfd/ |
| H A D | cpu-ns32k.c | 385 if (howto->rightshift > howto->bitpos) 386 check = relocation >> (howto->rightshift - howto->bitpos); 388 check = relocation << (howto->bitpos - howto->rightshift); 399 if (howto->rightshift > howto->bitpos 403 >> (howto->rightshift - howto->bitpos))); 435 if (howto->rightshift > howto->bitpos 440 >> (howto->rightshift - howto->bitpos))); 485 relocation <<= (bfd_vma) howto->bitpos; 670 if (howto->bitpos == 0) 677 check += add >> howto->bitpos; [all …]
|
| H A D | reloc.c | 849 relocation <<= (bfd_vma) howto->bitpos; in bfd_perform_relocation() 1228 relocation <<= (bfd_vma) howto->bitpos; in bfd_install_relocation() 1396 unsigned int bitpos = howto->bitpos; in _bfd_relocate_contents() local 1471 b = (b & addrmask) >> bitpos; in _bfd_relocate_contents() 1503 b = (b & addrmask) >> bitpos; in _bfd_relocate_contents() 1527 b >>= bitpos; in _bfd_relocate_contents() 1549 relocation <<= (bfd_vma) bitpos; in _bfd_relocate_contents()
|
| H A D | nlm32-i386.c | 173 || rel->howto->bitpos != 0 298 && rel->howto->bitpos == 0 322 && rel->howto->bitpos == 0
|
| H A D | aout-tic30.c | 478 if (howto->bitpos == 0) 485 check += add >> howto->bitpos; 487 signed_check += add >> howto->bitpos; 489 signed_check += ((add >> howto->bitpos) | ((bfd_vma) - 1 & ~((bfd_vma) - 1 >> howto->bitpos))); 522 relocation <<= (bfd_vma) howto->bitpos;
|
| H A D | elf32-d10v.c | 376 val = (insn & howto->dst_mask) >> howto->bitpos << howto->rightshift; 383 sign = sign >> howto->bitpos << howto->rightshift; 398 addend = (addend >> howto->rightshift << howto->bitpos) & howto->dst_mask;
|
| /openbsd-src/gnu/usr.bin/gcc/gcc/ |
| H A D | stor-layout.c | 546 rli->bitpos = bitsize_zero_node; 558 bit_from_pos (offset, bitpos) in bit_from_pos() argument 559 tree offset, bitpos; in bit_from_pos() 561 return size_binop (PLUS_EXPR, bitpos, 567 byte_from_pos (offset, bitpos) in byte_from_pos() argument 568 tree offset, bitpos; in byte_from_pos() 572 size_binop (TRUNC_DIV_EXPR, bitpos, 642 print_node_brief (stderr, " bitpos", rli->bitpos, 0); 664 normalize_offset (&rli->offset, &rli->bitpos, rli->offset_align); 673 return byte_from_pos (rli->offset, rli->bitpos); [all …]
|
| H A D | expmed.c | 299 unsigned HOST_WIDE_INT bitpos = bitnum % unit; local 309 total_size -= (bitpos / BIGGEST_ALIGNMENT 345 if (bitpos == 0 410 bitpos += unit - GET_MODE_BITSIZE (GET_MODE (op0)); 416 && (BYTES_BIG_ENDIAN ? bitpos + bitsize == unit : bitpos == 0) 552 && (bitsize + bitpos > GET_MODE_BITSIZE (op_mode)))) 554 int xbitpos = bitpos; 597 bitpos = bitnum % unit; 603 store_bit_field (tempreg, bitsize, bitpos, fieldmode, orig_value, 683 store_fixed_bit_field (op0, offset, bitsize, bitpos, value); [all …]
|
| H A D | expr.c | 2572 unsigned HOST_WIDE_INT bitpos, xbitpos, big_endian_correction = 0; local 2604 for (bitpos = 0, xbitpos = big_endian_correction; 2605 bitpos < bytes * BITS_PER_UNIT; 2606 bitpos += bitsize, xbitpos += bitsize) 2618 if (bitpos % BITS_PER_WORD == 0) 2619 dst = operand_subword (tgtblk, bitpos / BITS_PER_WORD, 1, BLKmode); 2623 store_bit_field (dst, bitsize, bitpos % BITS_PER_WORD, word_mode, 4104 HOST_WIDE_INT bitsize, bitpos; local 4112 tem = get_inner_reference (to, &bitsize, &bitpos, &offset, &mode1, 4144 && (bitpos % bitsize) == 0 [all …]
|
| /openbsd-src/gnu/gcc/gcc/ |
| H A D | stor-layout.c | 538 rli->bitpos = bitsize_zero_node; in start_record_layout() 551 bit_from_pos (tree offset, tree bitpos) in bit_from_pos() argument 553 return size_binop (PLUS_EXPR, bitpos, in bit_from_pos() 560 byte_from_pos (tree offset, tree bitpos) in byte_from_pos() argument 564 size_binop (TRUNC_DIV_EXPR, bitpos, in byte_from_pos() 611 print_node_brief (stderr, " bitpos", rli->bitpos, 0); in debug_rli() 637 normalize_offset (&rli->offset, &rli->bitpos, rli->offset_align); in normalize_rli() 645 return byte_from_pos (rli->offset, rli->bitpos); in rli_size_unit_so_far() 653 return bit_from_pos (rli->offset, rli->bitpos); in rli_size_so_far() 861 DECL_FIELD_BIT_OFFSET (field) = rli->bitpos; in place_field() [all …]
|
| H A D | expmed.c | 352 unsigned HOST_WIDE_INT offset, bitpos; in store_bit_field() local 448 bitpos = bitnum % unit; in store_bit_field() 452 if (bitpos == 0 in store_bit_field() 504 bitpos += unit - GET_MODE_BITSIZE (GET_MODE (op0)); in store_bit_field() 510 && (BYTES_BIG_ENDIAN ? bitpos + bitsize == unit : bitpos == 0) in store_bit_field() 639 && (bitsize + bitpos > GET_MODE_BITSIZE (op_mode))) in store_bit_field() 643 int xbitpos = bitpos; in store_bit_field() 685 bitpos = bitnum % unit; in store_bit_field() 691 store_bit_field (tempreg, bitsize, bitpos, fieldmode, orig_value); in store_bit_field() 770 store_fixed_bit_field (op0, offset, bitsize, bitpos, value); in store_bit_field() [all …]
|
| H A D | tree-vect-generic.c | 105 tree t, tree bitsize, tree bitpos) in tree_vec_extract() argument 107 if (bitpos) in tree_vec_extract() 108 return gimplify_build3 (bsi, BIT_FIELD_REF, type, t, bitsize, bitpos); in tree_vec_extract() 115 tree b ATTRIBUTE_UNUSED, tree bitpos, tree bitsize, in do_unop() argument 118 a = tree_vec_extract (bsi, inner_type, a, bitsize, bitpos); in do_unop() 124 tree bitpos, tree bitsize, enum tree_code code) in do_binop() argument 126 a = tree_vec_extract (bsi, inner_type, a, bitsize, bitpos); in do_binop() 127 b = tree_vec_extract (bsi, inner_type, b, bitsize, bitpos); in do_binop() 146 tree bitpos ATTRIBUTE_UNUSED, tree bitsize ATTRIBUTE_UNUSED, in do_plus_minus() 157 a = tree_vec_extract (bsi, word_type, a, bitsize, bitpos); in do_plus_minus() [all …]
|
| H A D | expr.c | 2067 unsigned HOST_WIDE_INT bitpos, xbitpos, padding_correction = 0; in copy_blkmode_from_reg() local 2106 for (bitpos = 0, xbitpos = padding_correction; in copy_blkmode_from_reg() 2107 bitpos < bytes * BITS_PER_UNIT; in copy_blkmode_from_reg() 2108 bitpos += bitsize, xbitpos += bitsize) in copy_blkmode_from_reg() 2120 if (bitpos % BITS_PER_WORD == 0) in copy_blkmode_from_reg() 2121 dst = operand_subword (tgtblk, bitpos / BITS_PER_WORD, 1, BLKmode); in copy_blkmode_from_reg() 2125 store_bit_field (dst, bitsize, bitpos % BITS_PER_WORD, word_mode, in copy_blkmode_from_reg() 3880 unsigned HOST_WIDE_INT bitpos, in optimize_bitfield_assignment_op() argument 3915 str_mode = get_best_mode (bitsize, bitpos, in optimize_bitfield_assignment_op() 3921 offset1 = bitpos; in optimize_bitfield_assignment_op() [all …]
|
| /openbsd-src/gnu/usr.bin/binutils/gdb/ |
| H A D | sparc64-tdep.c | 638 char *valbuf, int element, int bitpos) in sparc64_store_floating_fields() argument 649 gdb_assert (bitpos == 0); in sparc64_store_floating_fields() 657 gdb_assert (bitpos == 0 || bitpos == 64); in sparc64_store_floating_fields() 659 regnum = SPARC64_D0_REGNUM + element + bitpos / 64; in sparc64_store_floating_fields() 660 regcache_cooked_write (regcache, regnum, valbuf + (bitpos / 8)); in sparc64_store_floating_fields() 665 gdb_assert (bitpos % 32 == 0 && bitpos >= 0 && bitpos < 128); in sparc64_store_floating_fields() 667 regnum = SPARC_F0_REGNUM + element * 2 + bitpos / 32; in sparc64_store_floating_fields() 668 regcache_cooked_write (regcache, regnum, valbuf + (bitpos / 8)); in sparc64_store_floating_fields() 678 int subpos = bitpos + TYPE_FIELD_BITPOS (type, i); in sparc64_store_floating_fields() 710 char *valbuf, int bitpos) in sparc64_extract_floating_fields() argument [all …]
|
| H A D | values.c | 436 set_internalvar_component (struct internalvar *var, int offset, int bitpos, in set_internalvar_component() argument 443 bitpos, bitsize); in set_internalvar_component() 1035 int bitpos = TYPE_FIELD_BITPOS (type, fieldno); in unpack_field_as_long() local 1040 val = extract_unsigned_integer (valaddr + bitpos / 8, sizeof (val)); in unpack_field_as_long() 1047 lsbcount = (sizeof val * 8 - bitpos % 8 - bitsize); in unpack_field_as_long() 1049 lsbcount = (bitpos % 8); in unpack_field_as_long() 1076 modify_field (char *addr, LONGEST fieldval, int bitpos, int bitsize) in modify_field() argument 1102 bitpos = sizeof (oword) * 8 - bitpos - bitsize; in modify_field() 1106 oword &= ~(((((ULONGEST) 1) << bitsize) - 1) << bitpos); in modify_field() 1108 oword &= ~((~(ULONGEST) 0) << bitpos); in modify_field() [all …]
|
| H A D | value.h | 79 int bitpos; member 223 #define VALUE_BITPOS(val) (val)->bitpos 455 int bitpos, int bitsize, 496 extern void modify_field (char *addr, LONGEST fieldval, int bitpos,
|
| /openbsd-src/gnu/usr.bin/binutils-2.17/opcodes/ |
| H A D | ia64-opc.c | 352 int bitpos[41]; in locate_opcode_ent() local 360 bitpos[currstatenum] = 40; in locate_opcode_ent() 366 int currbitnum = bitpos[currstatenum]; in locate_opcode_ent() 374 bitpos[currstatenum] = currbitnum; in locate_opcode_ent() 518 bitpos[currstatenum] = currbitnum - 1; in locate_opcode_ent()
|
| /openbsd-src/gnu/usr.bin/binutils/opcodes/ |
| H A D | ia64-opc.c | 352 int bitpos[41]; in locate_opcode_ent() local 360 bitpos[currstatenum] = 40; in locate_opcode_ent() 366 int currbitnum = bitpos[currstatenum]; in locate_opcode_ent() 374 bitpos[currstatenum] = currbitnum; in locate_opcode_ent() 518 bitpos[currstatenum] = currbitnum - 1; in locate_opcode_ent()
|
| /openbsd-src/gnu/usr.bin/binutils-2.17/binutils/ |
| H A D | debug.c | 291 unsigned int bitpos; member 310 unsigned int bitpos; member 1684 bfd_vma bitpos, bfd_boolean virtual, in debug_make_baseclass() argument 1693 b->bitpos = bitpos; in debug_make_baseclass() 1708 debug_type type, bfd_vma bitpos, bfd_vma bitsize, in debug_make_field() argument 1719 f->u.f.bitpos = bitpos; in debug_make_field() 2273 return field->u.f.bitpos; in debug_get_field_bitpos() 2540 || ! (*fns->struct_field) (fhandle, f->name, f->u.f.bitpos, in debug_write_type() 2732 if (! (*fns->struct_field) (fhandle, f->name, f->u.f.bitpos, in debug_write_class_type() 2749 if (! (*fns->class_baseclass) (fhandle, b->bitpos, b->virtual, in debug_write_class_type() [all …]
|
| /openbsd-src/gnu/usr.bin/binutils/binutils/ |
| H A D | debug.c | 290 unsigned int bitpos; member 309 unsigned int bitpos; member 1683 bfd_vma bitpos, bfd_boolean virtual, in debug_make_baseclass() argument 1692 b->bitpos = bitpos; in debug_make_baseclass() 1707 debug_type type, bfd_vma bitpos, bfd_vma bitsize, in debug_make_field() argument 1718 f->u.f.bitpos = bitpos; in debug_make_field() 2272 return field->u.f.bitpos; in debug_get_field_bitpos() 2539 || ! (*fns->struct_field) (fhandle, f->name, f->u.f.bitpos, in debug_write_type() 2731 if (! (*fns->struct_field) (fhandle, f->name, f->u.f.bitpos, in debug_write_class_type() 2748 if (! (*fns->class_baseclass) (fhandle, b->bitpos, b->virtual, in debug_write_class_type() [all …]
|