- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for encodeBImmediate (0.18 sec)
-
src/cmd/link/internal/riscv64/asm.go
if err != nil { ldr.Errorf(s, "relocation does not fit in 32-bits: %d", off) } luiImm, err := riscv.EncodeUImmediate(high) if err != nil { ldr.Errorf(s, "cannot encode R_RISCV_TLS_LE LUI relocation offset for %s: %v", ldr.SymName(rs), err) } addiwImm, err := riscv.EncodeIImmediate(low) if err != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Mar 01 08:06:08 UTC 2024 - 22.8K bytes - Viewed (0) -
src/cmd/internal/obj/riscv/obj.go
return 0, err } return int64(encodeJImmediate(uint32(imm))), nil } func EncodeSImmediate(imm int64) (int64, error) { if err := immIFits(imm, 12); err != nil { return 0, err } return ((imm >> 5) << 25) | ((imm & 0x1f) << 7), nil } func EncodeUImmediate(imm int64) (int64, error) { if err := immIFits(imm, 20); err != nil { return 0, err } return imm << 12, nil }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sun Apr 07 03:32:27 UTC 2024 - 77K bytes - Viewed (0)